Add --bg-* to the theme namespace #18308
Closed
torleifhalseth
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
This already exists as the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In our team, we define theme variables that are specific for background and text. That way, we don't want to use the
--color-*
namespace because then you will be able to use the colour variables for both bg and text. The text scope is solved using the--text-*
namespace, but we are missing the--bg-*
namespace to scope these background-specific colours.Adding/exposing the
--bg-*
namespace would be amazing. What are your thoughts on this?I created a simple demo with some of our variables https://play.tailwindcss.com/dxB4JAFz1Z?file=css
Beta Was this translation helpful? Give feedback.
All reactions