Replies: 1 comment 2 replies
-
Does this help https://tailwindcss.com/docs/customizing-colors#using-css-variables to add dark theme css-variables // main.css
... example above
.dark {
--theme-color-1: 15, 19, 26;
--theme-color-2: 128, 51, 63;
} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have declared the CSS varaibles in a selector, like this:
The CSS variables are not declared in the
:root
selector.And, there is a JS file contains these custom theme colors, the JS will create and inject a
<style/>
tag with above CSS varaibles.What's the best way to create tailwindCSS theme colors from above CSS varaibles?
Beta Was this translation helpful? Give feedback.
All reactions