Colors

Each color is displayed in both light and dark themes. The color on the left represents the light theme, while the one on the right corresponds to the dark theme.

For a given design token, the color theme is automatically determined by your application's color scheme. Grapes uses the light-dark function for this. If this function is not supported, Grapes will fallback to the light scheme automatically.

Background

Primary

background-primary-default

background-primary-hover

background-primary-pressed

background-primary-selected

background-primary-disabled

background-primary-readonly

background-primary-brand-default

background-primary-brand-hover

background-primary-brand-pressed

background-primary-info-default

background-primary-info-hover

background-primary-info-pressed

background-primary-success-default

background-primary-success-hover

background-primary-success-pressed

background-primary-warning-default

background-primary-warning-hover

background-primary-warning-pressed

background-primary-alert-default

background-primary-alert-hover

background-primary-alert-pressed

Secondary

background-secondary-default

background-secondary-brand-default

background-secondary-brand-hover

background-secondary-brand-pressed

background-secondary-info-default

background-secondary-info-hover

background-secondary-info-pressed

background-secondary-success-default

background-secondary-success-hover

background-secondary-success-pressed

background-secondary-warning-default

background-secondary-warning-hover

background-secondary-warning-pressed

background-secondary-alert-default

background-secondary-alert-hover

background-secondary-alert-pressed

Tertiary

background-tertiary-default

Complementary

background-complementary-default

background-complementary-hover

background-complementary-pressed

background-complementary-disabled

Decorative

background-decorative-apricot

background-decorative-blue

background-decorative-carbon

background-decorative-emerald

background-decorative-forest

background-decorative-grolive

background-decorative-lemon

background-decorative-ocean

background-decorative-peach

background-decorative-pink

background-decorative-purple

background-decorative-raspberry

Content

content-primary

content-secondary-bg-primary

content-secondary-bg-secondary

content-brand-default

content-info-default

content-success-default

content-warning-default

content-alert-default

content-selected

content-brand-hover

content-brand-pressed

content-disabled

content-complementary

content-decorative-icon

content-decorative-apricot

content-decorative-blue

content-decorative-carbon

content-decorative-emerald

content-decorative-forest

content-decorative-grolive

content-decorative-lemon

content-decorative-ocean

content-decorative-peach

content-decorative-pink

content-decorative-purple

content-decorative-raspberry

Border

border-border-default

border-border-hover

border-border-selected

border-border-info

border-border-success

border-border-warning

border-border-alert


Usage in CSS

Whenever you want to apply this style, you can use the corresponding variable.

.myClass {
  color: var(--grapes-color-content-primary);
}

Usage with TailwindCSS

Whenever you want to use a color from Grapes with TailwindCSS, you can use the corresponding keys.

Example:

TailwindCSS classNameCSS equivalent
bg-background-primary-default
var(--grapes-color-background-primary-default)
bg-background-primary-hover
var(--grapes-color-background-primary-hover)
bg-background-primary-pressed
var(--grapes-color-background-primary-pressed)
bg-background-primary-selected
var(--grapes-color-background-primary-selected)
bg-background-primary-disabled
var(--grapes-color-background-primary-disabled)
bg-background-primary-readonly
var(--grapes-color-background-primary-readonly)
bg-background-secondary-default
var(--grapes-color-background-secondary-default)
bg-background-secondary-hover
var(--grapes-color-background-secondary-hover)
bg-background-tertiary-default
var(--grapes-color-background-tertiary-default)
bg-background-complementary-default
var(--grapes-color-background-complementary-default)
bg-background-complementary-hover
var(--grapes-color-background-complementary-hover)
bg-background-complementary-pressed
var(--grapes-color-background-complementary-pressed)
bg-background-complementary-disabled
var(--grapes-color-background-complementary-disabled)
bg-background-primary-brand-default
var(--grapes-color-background-primary-brand-default)
bg-background-primary-brand-hover
var(--grapes-color-background-primary-brand-hover)
bg-background-primary-brand-pressed
var(--grapes-color-background-primary-brand-pressed)
bg-background-primary-info-default
var(--grapes-color-background-primary-info-default)
bg-background-primary-info-hover
var(--grapes-color-background-primary-info-hover)
bg-background-primary-info-pressed
var(--grapes-color-background-primary-info-pressed)
bg-background-primary-success-default
var(--grapes-color-background-primary-success-default)
bg-background-primary-success-hover
var(--grapes-color-background-primary-success-hover)
bg-background-primary-success-pressed
var(--grapes-color-background-primary-success-pressed)
bg-background-primary-warning-default
var(--grapes-color-background-primary-warning-default)
bg-background-primary-warning-hover
var(--grapes-color-background-primary-warning-hover)
bg-background-primary-warning-pressed
var(--grapes-color-background-primary-warning-pressed)
bg-background-primary-alert-default
var(--grapes-color-background-primary-alert-default)
bg-background-primary-alert-hover
var(--grapes-color-background-primary-alert-hover)
bg-background-primary-alert-pressed
var(--grapes-color-background-primary-alert-pressed)
bg-background-secondary-brand-default
var(--grapes-color-background-secondary-brand-default)
bg-background-secondary-brand-hover
var(--grapes-color-background-secondary-brand-hover)
bg-background-secondary-brand-pressed
var(--grapes-color-background-secondary-brand-pressed)
bg-background-secondary-info-default
var(--grapes-color-background-secondary-info-default)
bg-background-secondary-info-hover
var(--grapes-color-background-secondary-info-hover)
bg-background-secondary-info-pressed
var(--grapes-color-background-secondary-info-pressed)
bg-background-secondary-success-default
var(--grapes-color-background-secondary-success-default)
bg-background-secondary-success-hover
var(--grapes-color-background-secondary-success-hover)
bg-background-secondary-success-pressed
var(--grapes-color-background-secondary-success-pressed)
bg-background-secondary-warning-default
var(--grapes-color-background-secondary-warning-default)
bg-background-secondary-warning-hover
var(--grapes-color-background-secondary-warning-hover)
bg-background-secondary-warning-pressed
var(--grapes-color-background-secondary-warning-pressed)
bg-background-secondary-alert-default
var(--grapes-color-background-secondary-alert-default)
bg-background-secondary-alert-hover
var(--grapes-color-background-secondary-alert-hover)
bg-background-secondary-alert-pressed
var(--grapes-color-background-secondary-alert-pressed)
bg-background-decorative-apricot
var(--grapes-color-background-decorative-apricot)
bg-background-decorative-blue
var(--grapes-color-background-decorative-blue)
bg-background-decorative-carbon
var(--grapes-color-background-decorative-carbon)
bg-background-decorative-emerald
var(--grapes-color-background-decorative-emerald)
bg-background-decorative-forest
var(--grapes-color-background-decorative-forest)
bg-background-decorative-grolive
var(--grapes-color-background-decorative-grolive)
bg-background-decorative-lemon
var(--grapes-color-background-decorative-lemon)
bg-background-decorative-ocean
var(--grapes-color-background-decorative-ocean)
bg-background-decorative-peach
var(--grapes-color-background-decorative-peach)
bg-background-decorative-pink
var(--grapes-color-background-decorative-pink)
bg-background-decorative-purple
var(--grapes-color-background-decorative-purple)
bg-background-decorative-raspberry
var(--grapes-color-background-decorative-raspberry)
text-content-primary
var(--grapes-color-content-primary)
text-content-secondary-bg-primary
var(--grapes-color-content-secondary-bg-primary)
text-content-secondary-bg-secondary
var(--grapes-color-content-secondary-bg-secondary)
text-content-decorative-icon
var(--grapes-color-content-decorative-icon)
text-content-complementary
var(--grapes-color-content-complementary)
text-content-selected
var(--grapes-color-content-selected)
text-content-disabled
var(--grapes-color-content-disabled)
text-content-brand-default
var(--grapes-color-content-brand-default)
text-content-brand-hover
var(--grapes-color-content-brand-hover)
text-content-brand-pressed
var(--grapes-color-content-brand-pressed)
text-content-info-default
var(--grapes-color-content-info-default)
text-content-success-default
var(--grapes-color-content-success-default)
text-content-warning-default
var(--grapes-color-content-warning-default)
text-content-alert-default
var(--grapes-color-content-alert-default)
text-content-decorative-apricot
var(--grapes-color-content-decorative-apricot)
text-content-decorative-blue
var(--grapes-color-content-decorative-blue)
text-content-decorative-carbon
var(--grapes-color-content-decorative-carbon)
text-content-decorative-emerald
var(--grapes-color-content-decorative-emerald)
text-content-decorative-forest
var(--grapes-color-content-decorative-forest)
text-content-decorative-grolive
var(--grapes-color-content-decorative-grolive)
text-content-decorative-lemon
var(--grapes-color-content-decorative-lemon)
text-content-decorative-ocean
var(--grapes-color-content-decorative-ocean)
text-content-decorative-peach
var(--grapes-color-content-decorative-peach)
text-content-decorative-pink
var(--grapes-color-content-decorative-pink)
text-content-decorative-purple
var(--grapes-color-content-decorative-purple)
text-content-decorative-raspberry
var(--grapes-color-content-decorative-raspberry)
border-border-default
var(--grapes-color-border-default)
border-border-complementary
var(--grapes-color-border-complementary)
border-border-hover
var(--grapes-color-border-hover)
border-border-selected
var(--grapes-color-border-selected)
border-border-info
var(--grapes-color-border-info)
border-border-success
var(--grapes-color-border-success)
border-border-warning
var(--grapes-color-border-warning)
border-border-alert
var(--grapes-color-border-alert)

See documentation from TailwindCSS: https://tailwindcss.com/docs/text-color.