Colors

Foundational color tokens for backgrounds, borders, text and charts.

bg-background
bg-secondary
bg-tertiary
bg-quaternary
bg-surface
bg-surface-inverted
bg-elevated
text-primary
text-secondary
text-tertiary
text-quaternary
border-primary
border-primary-solid
border-secondary
border-secondary-solid
border-inverted
text-brand-primary
text-brand-primary-hover
text-brand-secondary
text-brand-secondary-solid
text-brand-foreground
text-brand-inverted
destructive
warning
ring

Overview

All colors in the Rogo design system are defined as CSS custom properties and mapped to Tailwind utility classes. Colors automatically adapt between light and dark modes. Always use semantic tokens rather than raw color values.

Backgrounds

Background colors define the layered surfaces of the interface. Use increasingly darker backgrounds to create visual hierarchy and depth.

CSS VariableTailwind ClassUsage
--background-primarybg-primaryDefault app background. Use for body background and large zones.
--background-secondarybg-secondarySubtle background differentiation. Use for alternate sections or hover states.
--background-tertiarybg-tertiaryHover states or when more differentiation is needed.
--background-quaternarybg-quaternaryStrongest background differentiation. Use sparingly.

Surfaces

Surface colors are for elevated UI elements that sit above the background layers.

CSS VariableTailwind ClassUsage
--surfacebg-surfaceElevated surfaces like popovers, menus, dropdowns, and cards.
--surface-invertedbg-surface-invertedDark background surfaces like tooltips or inverted UI sections.

Elevated

CSS VariableTailwind ClassUsage
--elevatedbg-elevatedSubtle elevation effect. Semi-transparent overlay for hover states on dark backgrounds.

Text

Text colors provide hierarchy for typography. Use primary for important content and progressively lighter variants for supporting text.

CSS VariableTailwind ClassUsage
--text-primarytext-primaryPrimary, emphasized text. Use for headers, bold text, and important content.
--text-secondarytext-secondaryDefault content body text. Use for paragraphs and standard UI text.
--text-tertiarytext-tertiaryLower emphasis text. Use for captions, labels, and supporting content.
--text-quaternarytext-quaternarySubtle, light text. Use for placeholders, disclaimers, and disabled states.
--text-primary-invertedtext-invertedPrimary text on inverted/dark surfaces.
--text-secondary-invertedtext-inverted-secondarySecondary body or lower emphasis text on inverted surfaces.

Borders

Border colors define the edges of UI elements. Use alpha variants by default for better blending, solid variants when transparency causes issues.

CSS VariableTailwind ClassUsage
--border-primaryborder-primaryStandard border color. Uses alpha transparency for natural blending.
--border-primary-solidborder-primary-solidStandard border as a solid color. Use when alpha causes visual issues.
--border-secondaryborder-secondaryStronger border for inputs, focused elements. Uses alpha transparency.
--border-secondary-solidborder-secondary-solidStronger border as a solid color. Use when alpha causes visual issues.
--border-invertedborder-invertedBorder on inverted/dark surfaces.

Brand

Brand colors represent Rogo's identity. Use for primary actions, links, and branded elements.

CSS VariableTailwind ClassUsage
--brand-primarybg-brand-primary, text-brand-primaryPrimary brand color. Use for primary buttons, links, and key actions.
--brand-primary-hoverbg-brand-primary-hover, text-brand-primary-hoverHover state for primary brand elements.
--brand-secondarybg-brand-secondary, text-brand-secondaryLighter brand color using opacity. Use for subtle brand accents and backgrounds.
--brand-secondary-solidbg-brand-secondary-solidLighter brand color as a solid. Use when alpha causes visual issues.
--brand-foregroundtext-brand-foregroundForeground color for elements on brand backgrounds. Use for text/icons on brand buttons.
--brand-invertedbg-brand-invertedModified brand color for use on inverted/dark surfaces.

Charts

Chart colors are used for data visualization. Use in sequence for multi-series charts.

CSS VariableTailwind ClassUsage
--chart-1text-chart-1, bg-chart-1First chart color in the sequence. Green.
--chart-2text-chart-2, bg-chart-2Second chart color. Blue.
--chart-3text-chart-3, bg-chart-3Third chart color. Orange.
--chart-4text-chart-4, bg-chart-4Fourth chart color. Dark teal.
--chart-5text-chart-5, bg-chart-5Fifth chart color. Mauve.

Notifications

Semantic colors for system feedback and alerts.

CSS VariableTailwind ClassUsage
--destructivebg-destructive, text-destructiveDestructive actions, errors, and critical warnings. Red.
--warningbg-warning, text-warningWarning states and caution indicators. Amber.

Usage Guidelines

Do

  • Use semantic color tokens (bg-primary, text-secondary) instead of raw values
  • Layer backgrounds to create depth: bg-primarybg-secondarybg-tertiary
  • Use text-primary for headings, text-secondary for body, text-tertiary for captions
  • Use border-primary for subtle dividers, border-secondary for input borders
  • Use brand colors sparingly for primary actions and key UI elements

Don't

  • Don't use hardcoded colors like bg-stone-500 or #135b44
  • Don't use text colors for backgrounds or vice versa
  • Don't mix light mode colors on dark surfaces (use inverted variants)
  • Don't use brand colors for large background areas
  • Don't use more than 5 chart colors in a single visualization
© 2026 Rogo Technologies Inc.