Skip to main content
Global CSS variables are the foundation of the BEEQ theme system. They cover brand colors, neutrals, typography, spacing, radius, shadows, and strokes. On top of these base variables, semantic tokens map each value to a specific role in the UI — backgrounds, text, borders, icons, UI elements, and interactive states — and automatically adapt to light and dark mode.
Base variables are the foundation of your theme and should be set at the root level for global consistency. See the Custom Theme page for details on overriding them.

Base theme variables

Base variables define the raw design values for your theme. They are set once at the root level and consumed by the declarative color variables above them.

Brand & accent colors

Your primary brand identity and the secondary highlight color.

State colors

Used to convey meaning in the UI for actions and states such as success, danger, warning, and info.

Neutral colors

The neutral color scale provides a range of grays for backgrounds, borders, and text.
BEEQ also provides an extensive primitive color palette — blue, coral, cyan, gold, green, indigo, iris, lime, magenta, orange, purple, red, sky, teal, volcano, and yellow (each with 10 shades, 100–1000). Use these when defining brand and accent tokens in a custom theme.See the Colors page for the full palette and guidance on usage.

Data visualization colors

For charts and graphs — 12 distinct colors.

Typography

Typography variables define font family, sizes, weights, and line heights.
See also the Typography page for the full type system.

Spacing

The spacing scale provides consistent spacing units for margins, paddings, and gaps. It is based on a 4px grid.
See also the Spacing page for the full spacing system.

Border radius

The border radius scale defines corner rounding for UI elements.
See also the Radius page for full usage guidance.

Box shadow

The box shadow scale provides elevation effects for UI elements.
See also the Shadows page for elevation guidance.

Stroke

The stroke width scale defines standard border widths.
See also the Stroke page for border usage guidance.

Declarative color variables

Semantic tokens are used throughout the components and change based on the theme mode (light/dark). Always prefer these over primitive values.

Background colors

Used for various background surfaces such as pages, cards, and panels.

Icon colors

Used for SVG icons and graphical elements.

Border colors

Used for borders and outlines around UI elements.

Text colors

Used for typography and text elements.

UI colors

Used for small UI elements like buttons, tags, and badges.

State colors

Used for interactive states like hover and active. They blend with a base color using the CSS color-mix() function for better visual feedback.

Next steps

Component CSS variables

Explore the CSS variables exposed by each BEEQ component for targeted, scoped customization.

Custom Theme

Follow the step-by-step guide to create and apply a fully custom theme to your app.