A mode-aware colors plugin to style both light and dark modes with a single class #9874
JavierM42
started this conversation in
Show and tell
Replies: 2 comments 1 reply
-
so is there any performance drawback? |
Beta Was this translation helpful? Give feedback.
1 reply
-
I really like this concept. I'm pretty frustrated by the level of repetitious verbosity required to specify light/dark variants everywhere... having a more elegant way of expressing this is a welcome change |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I always found the
dark:
modifier a bit clunky when I have a separate light and dark color palette.With the plugin,
bg-primary
can be used instead ofbg-primary-light dark:bg-primary-dark
.https://github.com/JavierM42/tailwind-mode-aware-colors/
Any ideas are welcome!
Beta Was this translation helpful? Give feedback.
All reactions