Skip to content

how to register class var in uno #3761

Answered by schelmo
manyuemeiquqi asked this question in Q&A
Discussion options

You must be logged in to vote

in the docs there is the explanation why your example is not working:
https://unocss.dev/guide/extracting#safelist

Due the fact that UnoCSS works in build time using static extraction, at the compile time it can't possibility know all the combination of the utilities then. For that, you can configure the safelist option.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by manyuemeiquqi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants