-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cssVarName无法改掉format后缀 #3
Comments
const colors = Object.fromEntries(Object.keys(themeColors).map(e => { |
这里将一个themeColor分成两个css变量是为了让unocss识别出它的颜色格式,从而可以直接使用unocss内的透明度设定,例如 |
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
生成的css var 里 有 -hsl or -rgb, 能不能去掉, 现在无法通过caaVarName生成自己想要的... 多谢
比如 hsla(var(--un-palette-primary-color-hsl)
The text was updated successfully, but these errors were encountered: