Class Reference

Colors

Class Reference

Colors

Text, background and border color utilities.

How to use

Use color-* for text, bg-* for surfaces and border-* for border colors. A border color does not create a border by itself: also choose a border width and style.

Responsive behavior

Color classes do not define breakpoints. Light/dark pairing follows the active design system and theme implementation; fixed neutral colors remain fixed.

Visual reference

Live examples use the installed class styles and your current design variables. Large examples can be scrolled; responsive classes follow the browser width. Border-color samples use a 4px solid border to make the color visible; these classes set the color only.

.color-primarycolor: var(--color-primary)

The quick brown fox jumps over the lazy dog, showing how this text color looks in a longer sentence that stays on one line and truncates neatly when it reaches the edge of the preview container.

.color-secondarycolor: var(--color-secondary)

The quick brown fox jumps over the lazy dog, showing how this text color looks in a longer sentence that stays on one line and truncates neatly when it reaches the edge of the preview container.

.color-tertiarycolor: var(--color-tertiary)

The quick brown fox jumps over the lazy dog, showing how this text color looks in a longer sentence that stays on one line and truncates neatly when it reaches the edge of the preview container.

.color-accentcolor: var(--color-accent)

The quick brown fox jumps over the lazy dog, showing how this text color looks in a longer sentence that stays on one line and truncates neatly when it reaches the edge of the preview container.

.color-primary-darkcolor: var(--color-primary-dark)

The quick brown fox jumps over the lazy dog, showing how this text color looks in a longer sentence that stays on one line and truncates neatly when it reaches the edge of the preview container.

.color-secondary-darkcolor: var(--color-secondary-dark)

The quick brown fox jumps over the lazy dog, showing how this text color looks in a longer sentence that stays on one line and truncates neatly when it reaches the edge of the preview container.

.color-tertiary-darkcolor: var(--color-tertiary-dark)

The quick brown fox jumps over the lazy dog, showing how this text color looks in a longer sentence that stays on one line and truncates neatly when it reaches the edge of the preview container.

.color-accent-darkcolor: var(--color-accent-dark)

The quick brown fox jumps over the lazy dog, showing how this text color looks in a longer sentence that stays on one line and truncates neatly when it reaches the edge of the preview container.

.color-primary-lightcolor: var(--color-primary-light)

The quick brown fox jumps over the lazy dog, showing how this text color looks in a longer sentence that stays on one line and truncates neatly when it reaches the edge of the preview container.

.color-secondary-lightcolor: var(--color-secondary-light)

The quick brown fox jumps over the lazy dog, showing how this text color looks in a longer sentence that stays on one line and truncates neatly when it reaches the edge of the preview container.

.color-tertiary-lightcolor: var(--color-tertiary-light)

The quick brown fox jumps over the lazy dog, showing how this text color looks in a longer sentence that stays on one line and truncates neatly when it reaches the edge of the preview container.

.color-accent-lightcolor: var(--color-accent-light)

The quick brown fox jumps over the lazy dog, showing how this text color looks in a longer sentence that stays on one line and truncates neatly when it reaches the edge of the preview container.

.color-heading-darkcolor: var(--color-heading-dark)

The quick brown fox jumps over the lazy dog, showing how this text color looks in a longer sentence that stays on one line and truncates neatly when it reaches the edge of the preview container.

.color-body-darkcolor: var(--color-body-dark)

The quick brown fox jumps over the lazy dog, showing how this text color looks in a longer sentence that stays on one line and truncates neatly when it reaches the edge of the preview container.

.color-heading-lightcolor: var(--color-heading-light)

The quick brown fox jumps over the lazy dog, showing how this text color looks in a longer sentence that stays on one line and truncates neatly when it reaches the edge of the preview container.

.color-body-lightcolor: var(--color-body-light)

The quick brown fox jumps over the lazy dog, showing how this text color looks in a longer sentence that stays on one line and truncates neatly when it reaches the edge of the preview container.

.color-neutral-whitecolor: var(--color-neutral-white)

The quick brown fox jumps over the lazy dog, showing how this text color looks in a longer sentence that stays on one line and truncates neatly when it reaches the edge of the preview container.

.color-neutral-lightgraycolor: var(--color-neutral-lightgray)

The quick brown fox jumps over the lazy dog, showing how this text color looks in a longer sentence that stays on one line and truncates neatly when it reaches the edge of the preview container.

.color-neutral-blackcolor: var(--color-neutral-black)

The quick brown fox jumps over the lazy dog, showing how this text color looks in a longer sentence that stays on one line and truncates neatly when it reaches the edge of the preview container.

.color-neutral-darkgraycolor: var(--color-neutral-darkgray)

The quick brown fox jumps over the lazy dog, showing how this text color looks in a longer sentence that stays on one line and truncates neatly when it reaches the edge of the preview container.

.color-successcolor: var(--color-success)

The quick brown fox jumps over the lazy dog, showing how this text color looks in a longer sentence that stays on one line and truncates neatly when it reaches the edge of the preview container.

.color-warningcolor: var(--color-warning)

The quick brown fox jumps over the lazy dog, showing how this text color looks in a longer sentence that stays on one line and truncates neatly when it reaches the edge of the preview container.

.color-errorcolor: var(--color-error)

The quick brown fox jumps over the lazy dog, showing how this text color looks in a longer sentence that stays on one line and truncates neatly when it reaches the edge of the preview container.

.color-infocolor: var(--color-info)

The quick brown fox jumps over the lazy dog, showing how this text color looks in a longer sentence that stays on one line and truncates neatly when it reaches the edge of the preview container.

.color-success-lightcolor: var(--color-success-light)

The quick brown fox jumps over the lazy dog, showing how this text color looks in a longer sentence that stays on one line and truncates neatly when it reaches the edge of the preview container.

.color-warning-lightcolor: var(--color-warning-light)

The quick brown fox jumps over the lazy dog, showing how this text color looks in a longer sentence that stays on one line and truncates neatly when it reaches the edge of the preview container.

.color-error-lightcolor: var(--color-error-light)

The quick brown fox jumps over the lazy dog, showing how this text color looks in a longer sentence that stays on one line and truncates neatly when it reaches the edge of the preview container.

.color-info-lightcolor: var(--color-info-light)

The quick brown fox jumps over the lazy dog, showing how this text color looks in a longer sentence that stays on one line and truncates neatly when it reaches the edge of the preview container.

.color-transparentcolor: var(--color-transparent)

The quick brown fox jumps over the lazy dog, showing how this text color looks in a longer sentence that stays on one line and truncates neatly when it reaches the edge of the preview container.

.color-inheritcolor: inherit

The quick brown fox jumps over the lazy dog, showing how this text color looks in a longer sentence that stays on one line and truncates neatly when it reaches the edge of the preview container.

.bg-primarybackground-color: var(--color-primary)
.bg-secondarybackground-color: var(--color-secondary)
.bg-tertiarybackground-color: var(--color-tertiary)
.bg-accentbackground-color: var(--color-accent)
.bg-primary-darkbackground-color: var(--color-primary-dark)
.bg-secondary-darkbackground-color: var(--color-secondary-dark)
.bg-tertiary-darkbackground-color: var(--color-tertiary-dark)
.bg-accent-darkbackground-color: var(--color-accent-dark)
.bg-primary-lightbackground-color: var(--color-primary-light)
.bg-secondary-lightbackground-color: var(--color-secondary-light)
.bg-tertiary-lightbackground-color: var(--color-tertiary-light)
.bg-accent-lightbackground-color: var(--color-accent-light)
.bg-lightbackground-color: var(--color-background-light)
.bg-lighterbackground-color: var(--color-background-lighter)
.bg-darkbackground-color: var(--color-background-dark)
.bg-darkerbackground-color: var(--color-background-darker)
.bg-surface-lightbackground-color: var(--color-surface-light)
.bg-surface-lighterbackground-color: var(--color-surface-lighter)
.bg-surface-darkbackground-color: var(--color-surface-dark)
.bg-surface-darkerbackground-color: var(--color-surface-darker)
.bg-neutral-whitebackground-color: var(--color-neutral-white)
.bg-neutral-lightgraybackground-color: var(--color-neutral-lightgray)
.bg-neutral-blackbackground-color: var(--color-neutral-black)
.bg-neutral-darkgraybackground-color: var(--color-neutral-darkgray)
.bg-successbackground-color: var(--color-success)
.bg-warningbackground-color: var(--color-warning)
.bg-errorbackground-color: var(--color-error)
.bg-infobackground-color: var(--color-info)
.bg-success-lightbackground-color: var(--color-success-light)
.bg-warning-lightbackground-color: var(--color-warning-light)
.bg-error-lightbackground-color: var(--color-error-light)
.bg-info-lightbackground-color: var(--color-info-light)
.bg-transparentbackground-color: var(--color-transparent)
.bg-overlaybackground-color: var(--color-overlay)
.bg-backdropbackground-color: var(--color-backdrop)
.bg-glassbackground-color: var(--color-glass)
.border-primaryborder-color: var(--color-primary)
Border color
.border-secondaryborder-color: var(--color-secondary)
Border color
.border-tertiaryborder-color: var(--color-tertiary)
Border color
.border-accentborder-color: var(--color-accent)
Border color
.border-primary-darkborder-color: var(--color-primary-dark)
Border color
.border-secondary-darkborder-color: var(--color-secondary-dark)
Border color
.border-tertiary-darkborder-color: var(--color-tertiary-dark)
Border color
.border-accent-darkborder-color: var(--color-accent-dark)
Border color
.border-primary-lightborder-color: var(--color-primary-light)
Border color
.border-secondary-lightborder-color: var(--color-secondary-light)
Border color
.border-tertiary-lightborder-color: var(--color-tertiary-light)
Border color
.border-accent-lightborder-color: var(--color-accent-light)
Border color
.border-lightborder-color: var(--color-border-light)
Border color
.border-lighterborder-color: var(--color-border-lighter)
Border color
.border-darkborder-color: var(--color-border-dark)
Border color
.border-darkerborder-color: var(--color-border-darker)
Border color
.border-neutral-whiteborder-color: var(--color-neutral-white)
Border color
.border-neutral-lightgrayborder-color: var(--color-neutral-lightgray)
Border color
.border-neutral-blackborder-color: var(--color-neutral-black)
Border color
.border-neutral-darkgrayborder-color: var(--color-neutral-darkgray)
Border color
.border-successborder-color: var(--color-success)
Border color
.border-warningborder-color: var(--color-warning)
Border color
.border-errorborder-color: var(--color-error)
Border color
.border-infoborder-color: var(--color-info)
Border color
.border-success-lightborder-color: var(--color-success-light)
Border color
.border-warning-lightborder-color: var(--color-warning-light)
Border color
.border-error-lightborder-color: var(--color-error-light)
Border color
.border-info-lightborder-color: var(--color-info-light)
Border color
.border-transparentborder-color: var(--color-transparent)
Border color
.border-currentborder-color: currentColor
Border color
NextSizeExplore size classes and how to use them.