Open AhmedTirhmert opened 5 days ago
i am use unocss, so you have to custom your colors in uno.config.ts.
add this code to uno.config.ts, but in unocss for custom colors in dark and light mode, you have to add new preset.
theme: { colors: { 'warning': 'hsl(38 92% 50%)', 'warning-foreground': 'hsl(48 96% 89%)', }, },
As shown in the setup below after following the docs for customizing the template
globals.css
file for custom variables/colorscomponents.json
path to theglobals.css
that contains the variablesBut when using the
warning
color in theindex.vue
file it doesn't workPS: I also tried to extend the tailwind config without using variables and yet it still doesn't work