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.
Core brand colors remain consistent across light and dark themes. These colors define the visual identity of the Quantum platform.
Background colors provide depth and hierarchy to interfaces. These automatically adjust between light and dark themes.
Text colors ensure proper contrast and readability across themes.
Border colors define boundaries and separations between elements.
Accent and semantic colors communicate meaning and provide visual feedback.
These colors are specifically designed for certain components or interactive elements.
When using colors in your interfaces, ensure they meet WCAG 2.1 AA standards:
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);
}