Color my <body> tag
#3079
-
I want to set a color on my tag but it doesn't work when I set the bg-dark-900 class on the body tag since it's in the index.html (I'm using CRA). Can I some how grab a certain color from Tailwind using CSS-variables so that I can write in in my index.css? I tried background-color: var(--color-grey-900) but without any luck :( |
Beta Was this translation helpful? Give feedback.
Answered by
chr-ge
Dec 13, 2020
Replies: 1 comment 2 replies
-
If you follow the Tailwindcss CRA guide, you should be able to use tailwind classes in the <body class="bg-grey-900">
...
</body> |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
simonswiss
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you follow the Tailwindcss CRA guide, you should be able to use tailwind classes in the
index.html
file with no issues.