1. Docs
  2. Theme Convention

Theme Convention

Provides color token knowledge and usage guidelines.

We follow a simple convention for colors: the background variable sets the component's background color, while the foreground variable sets the text color on that background.

Variable list

Here's a list of variables you can customize:

Background

Use background for the body background and foreground for the text color.

Loading...

Card

Use background for the card's background and foreground for the card's text color.

Loading...

Popover

Use background for the popover's background and foreground for the popover's text color.

Loading...

Other

You can set the border, ring color, and default border radius.

Loading...

Primary

Use for primary action buttons or elements.

Loading...

Secondary

Use for secondary action buttons or elements with lower impact.

Loading...

Error

Use for error messages or elements indicating an error state.

Loading...

Default

This is a default palette used across various use cases, as described below.

Loading...