Colors

CSS variables and Tailwind classes for Cubitt color tokens.

Cubitt colors are semantic CSS custom properties exposed through Tailwind classes. This page is a token reference. For surface behavior, nesting, and provider setup, see Surface System.

Surfaces

TokenClassLight valueDark value
--surface-1bg-surface-1oklch(99.600% 0 0)oklch(20.463% 0 0)
--surface-2bg-surface-2oklch(98.700% 0.002 106.47)oklch(23.503% 0 0)
--surface-3bg-surface-3oklch(97.831% 0.004 106.47)oklch(26.448% 0 0)
--surface-4bg-surface-4oklch(94.886% 0.0054 95.1)oklch(29.313% 0 0)
--surface-5bg-surface-5oklch(94.831% 0.0054 95.1)oklch(32.109% 0 0)
--surface-6bg-surface-6oklch(91.886% 0.0068 97.36)oklch(34.846% 0 0)
--surface-7bg-surface-7oklch(91.831% 0.0068 97.36)oklch(37.530% 0 0)
--surface-8bg-surface-8oklch(88.886% 0.0068 97.36)oklch(40.167% 0 0)
surface-1
surface-2
surface-3
surface-4
surface-5
surface-6
surface-7
surface-8

Foreground

TokenClassLight valueDark value
--fg-1text-fg-1oklch(26.308% 0.0127 100.51)oklch(0.9348 0.0011 17.18)
--fg-2text-fg-2oklch(57.494% 0.0082 101.51)oklch(0.6334 0.0046 91.47)
--fg-3text-fg-3oklch(71.444% 0.0066 102.54)oklch(0.4825 0.0068 84.58)
Foreground 1
text-fg-1
Foreground 2
text-fg-2
Foreground 3
text-fg-3

Borders

TokenClassValue
--border-1border-border-1oklch(from var(--fg-1) l c h / 0.04)
--border-2border-border-2oklch(from var(--fg-1) l c h / 0.049)
--border-3border-border-3oklch(from var(--fg-1) l c h / 0.098)
--border-4border-border-4oklch(from var(--fg-1) l c h / 0.05)
--border-5border-border-5oklch(from var(--fg-1) l c h / 0.1)
--border-6border-border-6oklch(from var(--fg-1) l c h / 0.052)
--border-7border-border-7oklch(from var(--fg-1) l c h / 0.104)
--border-8border-border-8oklch(from var(--fg-1) l c h / 0.109)

Brand

Brand tokens are provided by the active brand class, such as .mobius or .tilt, on the root element.

brand-bg-* is for filled and soft brand backgrounds. brand-fg-* is for brand text, icons, borders, and rings. The old --brand-1, --brand-2, and --brand-3 variables temporarily alias to --brand-bg-1, --brand-bg-2, and --brand-bg-3.

Brand Backgrounds

TokenCommon classMobius lightMobius darkTilt lightTilt dark
--brand-bg-1bg-brand-bg-1oklch(0.4391 0.0373 133.69)oklch(45.5% 0.0373 145)oklch(0.3421 0.0428 266.06)oklch(31.5% 0.0428 266.06)
--brand-bg-2bg-brand-bg-2oklch(88.441% 0.01432 162.814)oklch(0.3 0.015 160)oklch(0.6083 0.0966 265.73)oklch(0.5228 0.1317 254.93)
--brand-bg-3bg-brand-bg-3oklch(94.7% 0.0041 145.39)oklch(24.2% 0.0061 165.453)oklch(94.7% 0.0048 277.76)oklch(24.8% 0.018 259.73)

Brand Foregrounds

TokenCommon classMobius lightMobius darkTilt lightTilt dark
--brand-fg-1text-brand-fg-1oklch(0.4391 0.0373 133.69)oklch(63.3% 0.05 160.653)oklch(0.3421 0.0428 266.06)oklch(63.3% 0.135 254.93)
--brand-fg-2text-brand-fg-2oklch(88.441% 0.01432 162.814)oklch(0.3 0.015 160)oklch(0.6083 0.0966 265.73)oklch(0.5228 0.1317 254.93)
--brand-fg-3text-brand-fg-3oklch(94.7% 0.0041 145.39)oklch(24.2% 0.0061 165.453)oklch(94.7% 0.0048 277.76)oklch(24.8% 0.018 259.73)

Semantic Colors

Semantic color families use 1 for strong text/icons, 2 for lines or secondary emphasis, and 3 for soft backgrounds.

FamilyStrongSecondaryBackground
Successtext-success-1border-success-2bg-success-3
Warningtext-warning-1border-warning-2bg-warning-3
Cautiontext-caution-1border-caution-2bg-caution-3
Infotext-info-1border-info-2bg-info-3
Destructivetext-destructive-1border-destructive-2bg-destructive-3
Accenttext-accent-1border-accent-2bg-accent-3
Success
bg-success-3 text-success-1
Warning
bg-warning-3 text-warning-1
Caution
bg-caution-3 text-caution-1
Info
bg-info-3 text-info-1
Destructive
bg-destructive-3 text-destructive-1
Accent
bg-accent-3 text-accent-1

CSS Variables

.panel {
  background: var(--surface-3);
  border: 1px solid var(--border-3);
  color: var(--fg-1);
}

.popover {
  background: var(--surface-5);
  border: 1px solid var(--border-5);
  box-shadow: var(--shadow-surface-5);
}

On this page