Skip to main content
We use CSS variables for styling. This allows you to easily change the colors of components without having to update class names.

Convention

We use a simple background and foreground convention for colors. The background variable is used for the background color of the component and the foreground variable is used for the text color.
The background suffix is omitted when the variable is used for the background color of the component.
Given the following CSS variables:
The background color of the following component will be var(--primary) and the foreground color will be var(--primary-foreground).

List of variables

Here’s the list of variables available for customization:
src/routes/layout.css

Adding new colors

To add new colors, you need to add them to your CSS file.
src/routes/layout.css
You can now use the warning utility class in your components.

Other color formats

See the Tailwind CSS documentation for more information on using colors in Tailwind CSS.

Base Colors

For reference, here’s a list of the base colors that are available.

Neutral

src/routes/layout.css

Stone

src/routes/layout.css

Zinc

src/routes/layout.css

Gray

src/routes/layout.css

Slate

src/routes/layout.css