-
Notifications
You must be signed in to change notification settings - Fork 12
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
Using Custom Variable with unocss theme colors #73
Comments
|
@Dunqing I will try to create a minimal reproduction. The issue occurs when trying to use a color from CSS that hasn't been previously used in classes:
Since colors.light.500 is not used in any classes, the color is not generated. However, when the same color is used in classes, it works correctly. my uno.config.ts file
|
Can you create a minimal reproduction by stackblitz. Using |
I encountered the same issue with Astro and UnoCSS. Minimal reproduction in stackblitz, https://stackblitz.com/edit/withastro-astro-kyyfdc?file=uno.config.ts. Commands:
The |
I also encountered this problem |
i face one situation :
in css file :root { --swal-bg: theme('colors.light.100'); }
runtime result is :
--swal-bg: rgb(var(--un-preset-theme-colors-light-100));
but it's not worked.
The text was updated successfully, but these errors were encountered: