mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-23 16:30:45 +01:00
feat(module): define default color shades (#3916)
This commit is contained in:
@@ -369,7 +369,11 @@ Nuxt UI automatically creates a CSS variable for each color alias you define whi
|
||||
::
|
||||
|
||||
::note
|
||||
You can use these variables in classes like `text-(--ui-primary)`, it will automatically adapt to the current color scheme.
|
||||
You can use these variables in your Tailwind CSS classes in two ways:
|
||||
- Using CSS variable syntax: `text-(--ui-primary)` or `bg-(--ui-primary)`
|
||||
- Using color alias: `text-primary` or `bg-primary`
|
||||
|
||||
Both approaches will automatically adapt to the current color scheme, ensuring consistent styling across light and dark modes.
|
||||
::
|
||||
|
||||
::tip
|
||||
|
||||
Reference in New Issue
Block a user