← Back to Design System

Colors

The Quantum Design System color palette provides consistency across applications while supporting both light and dark themes. Colors are implemented as CSS variables for easy theming and customization.

Brand Colors

Core brand colors remain consistent across light and dark themes. These colors define the visual identity of the Quantum platform.

Theme Colors - Background

Background colors provide depth and hierarchy to interfaces. These automatically adjust between light and dark themes.

Theme Colors - Text

Text colors ensure proper contrast and readability across themes.

Theme Colors - Borders

Border colors define boundaries and separations between elements.

Theme Colors - Accents & Semantics

Accent and semantic colors communicate meaning and provide visual feedback.

Component-Specific Colors

These colors are specifically designed for certain components or interactive elements.

Usage Guidelines

Color Accessibility

When using colors in your interfaces, ensure they meet WCAG 2.1 AA standards:

Theme Compatibility

Always use the CSS variables instead of hardcoded color values to ensure proper theme switching:

/* Incorrect */
.my-element {
  background-color: #FFFFFF;
  color: #333333;
}

/* Correct */
.my-element {
  background-color: var(--theme-background-primary);
  color: var(--theme-text-primary);
}

Best Practices

  • Use semantic colors rather than brand colors directly when possible
  • Limit accent colors to important interactive elements
  • Maintain sufficient contrast between text and backgrounds
  • Don't rely solely on color to convey meaning (use icons or text as well)
  • Test your designs in both light and dark themes