Colors
If you're using Tailwind CSS, you can install the @qui/tailwind-plugin package to make each of these variables available as Tailwind classes.
Semantic
Semantic colors are commonly used to convey a specific status to the user.
CSS Variable
--q-semantic-primary
Tailwind Class
*-semantic-primary
Value
Color
CSS Variable
--q-semantic-secondary
Tailwind Class
*-semantic-secondary
Value
Color
CSS Variable
--q-semantic-negative
Tailwind Class
*-semantic-negative
Value
Color
CSS Variable
--q-semantic-warning
Tailwind Class
*-semantic-warning
Value
Color
CSS Variable
--q-semantic-positive
Tailwind Class
*-semantic-positive
Value
Color
CSS Variable
--q-semantic-neutral
Tailwind Class
*-semantic-neutral
Value
Color
Text
Black text inverts to white when switched to dark mode. Text link and error tokens change to a lighter shade to ensure that small text has a contrast ratio of 4.5:1 or greater when used on a dark background.
CSS Variable
--q-text-1-primary
Tailwind Class
text-primary
Value
Color
CSS Variable
--q-text-1-secondary
Tailwind Class
text-secondary
Value
Color
CSS Variable
--q-text-1-disabled
Tailwind Class
text-disabled
Value
Color
CSS Variable
--q-text-2-primary
Tailwind Class
text-contrast-primary
Value
Color
CSS Variable
--q-text-2-secondary
Tailwind Class
text-contrast-secondary
Value
Color
CSS Variable
--q-text-2-disabled
Tailwind Class
text-contrast-disabled
Value
Color
CSS Variable
--q-text-link
Tailwind Class
text-link
Value
Color
CSS Variable
--q-text-error
Tailwind Class
text-error
Value
Color
Background
Backgrounds are commonly used as colors for your app's surfaces, such as cards, pages, and menus.
CSS Variable
--q-background-1
Tailwind Class
bg-1
Value
Color
CSS Variable
--q-background-2
Tailwind Class
bg-2
Value
Color
CSS Variable
--q-background-3
Tailwind Class
bg-3
Value
Color
CSS Variable
--q-background-4
Tailwind Class
bg-4
Value
Color
CSS Variable
--q-background-1-contrast
Tailwind Class
bg-contrast-1
Value
Color
CSS Variable
--q-background-2-contrast
Tailwind Class
bg-contrast-2
Value
Color
CSS Variable
--q-background-3-contrast
Tailwind Class
bg-contrast-3
Value
Color
CSS Variable
--q-background-4-contrast
Tailwind Class
bg-contrast-4
Value
Color
Foreground
Similar to text color tokens, foreground token colors invert when switched to dark mode. Foreground colors are mainly used for black & white icons but can be used for illustrations or any graphical elements that should invert when toggled between modes.
CSS Variable
--q-foreground-1-primary
Tailwind Class
foreground-primary
Value
Color
CSS Variable
--q-foreground-1-secondary
Tailwind Class
foreground-secondary
Value
Color
CSS Variable
--q-foreground-1-disabled
Tailwind Class
foreground-disabled
Value
Color
CSS Variable
--q-foreground-2-primary
Tailwind Class
foreground-contrast-primary
Value
Color
CSS Variable
--q-foreground-2-secondary
Tailwind Class
foreground-contrast-secondary
Value
Color
CSS Variable
--q-foreground-2-disabled
Tailwind Class
foreground-contrast-disabled
Value
Color
Borders
Borders are lines that bring clarity to a layout by grouping and dividing content. They are used to divide text or components such as table rows, action button groups, and components within a panel.
CSS Variable
--q-border-1-default
Tailwind Class
border-default
Value
Color
CSS Variable
--q-border-1-subtle
Tailwind Class
border-subtle
Value
Color
CSS Variable
--q-border-1-strong
Tailwind Class
border-strong
Value
Color
CSS Variable
--q-border-2-default
Tailwind Class
border-contrast-default
Value
Color
CSS Variable
--q-border-2-subtle
Tailwind Class
border-contrast-subtle
Value
Color
CSS Variable
--q-border-2-strong
Tailwind Class
border-contrast-strong
Value
Color
CSS Variable
--q-border-focus
Tailwind Class
border-focus
Value
Color