You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We want to utilize unocss as colors token manager and apply colors via theme() directive.
However, there is an issue with generating the token for color which is only used in theme and never more.
What we expect
What we got
Additional moment
This token begins to work if this color is mentioned inside atomic class. For example, after I gave bg-button-primary to a random element (or even mention in the comment) --un-preset-theme-colors-button-primary variable becomes generated
Little UPD: nesting doesn't matter, as occurs. Second button has color because the class 'bg-primary' was present
The text was updated successfully, but these errors were encountered:
Version
0.14.1
Reproduction repo (check
uno.config
andsrc/App.vue
)GH: https://github.com/AndreyYolkin/uno-nested-theme-keys
CSB: https://codesandbox.io/p/devbox/github/AndreyYolkin/uno-nested-theme-keys
Description
We want to utilize unocss as colors token manager and apply colors via theme() directive.
However, there is an issue with generating the token for color which is only used in theme and never more.
What we expect
What we got
Additional moment
This token begins to work if this color is mentioned inside atomic class. For example, after I gave bg-button-primary to a random element (or even mention in the comment)
--un-preset-theme-colors-button-primary
variable becomes generatedLittle UPD: nesting doesn't matter, as occurs. Second button has color because the class 'bg-primary' was present
The text was updated successfully, but these errors were encountered: