Add a light
variant
#1164
nijikokun
started this conversation in
Feature Requests
Replies: 0 comments
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.
-
Currently, you can only target
dark
theme through class names which can create problems when you want to do important specificity overrides, a solution to this is to create alight
variant which allows you to specify which theme and the!important
specificity gets applied only that theme. This is useful when writing custom components and dealing with prose overrides.See this stackoverflow issue about how to add light variants.
Beta Was this translation helpful? Give feedback.
All reactions