Skip to main content

CSS Variables Reference

Overview

CSS variables (also known as custom properties) are a powerful feature of CSS that allow you to define reusable values throughout your stylesheets. They enable you to create a consistent design system and make it easier to manage and update your styles.

Variables

Typography

VariableValue(s)Description
--font-display'Segoe UI', 'SF Pro Text', 'Aria', 'sans-serif'Main display font family
--text-xxs0.625remExtra small text size

Layout & Stacking

VariableValue(s)Description
--zindex-filter100Z-index level for filters
--zindex-backdrop1000Z-index level for modal backdrop
--zindex-drawer2000Z-index level for side drawers
--zindex-tooltip3000Z-index level for tooltips
--cdk-z-index-overlay5000Z-index for CDK overlays
--panel-max-height100%Maximum panel height

Branding

VariableValue(s)Description
--logo-smallurl('assets/logo/small.svg')Path to small logo
--logo-largeurl('assets/logo/large.svg')Path to large logo
--logo-alt-text'Sinequa logo'Alternative text for logo

Colors - Base

VariableValue(s)Description
--color-background#ffffffMain background color
--color-foreground#23272eMain text color
--color-border#f6f7f9Border color
--color-input#d5d9e2Input field color
--color-ring#1a73e8Focus ring color

Colors - Components

VariableValue(s)Description
--color-card#ffffffCard background color
--color-card-foreground#1c1c1cCard text color
--color-popover#ffffffPopover background color
--color-popover-foreground#1c1c1cPopover text color
--color-backdroprgba(0, 0, 0, 0.4)Semi-transparent backdrop color

Colors - Interactive

VariableValue(s)Description
--color-primary#0084ffPrimary color
--color-primary-hover#0056ffPrimary color hover state
--color-primary-active#0040bfPrimary color active state
--color-primary-foreground#ffffffText color on primary background
--color-secondary#526077Secondary color
--color-secondary-hover#434e61Secondary color hover state
--color-secondary-active#3a4252Secondary color active state
--color-secondary-foreground#ffffffText color on secondary background
--color-muted#f6f7f9Muted state color
--color-muted-foreground#8695aaMuted text color
--color-accent#f2f2f2Accent color
--color-accent-foreground#1c1c1cText color on accent background

Colors - Status

VariableValue(s)Description
--color-destructive#ff2a1dColor for destructive actions
--color-destructive-hover#c8180dDestructive hover state
--color-destructive-active#a5180fDestructive active state
--color-destructive-disable#ffc8c5Destructive disabled state
--color-destructive-foreground#ffffffText on destructive background
--color-alert#ff2a1dAlert color
--color-success#2ed73fSuccess color
--color-highlight#fff7abHighlight color

Effects

VariableValue(s)Description
--drawer-box-shadow-10px 0px 10px rgba(0, 0, 0, 0.1)Shadow for side drawers
--shadow-dropdown6px 4px 20px 0px rgba(0, 0, 0, 0.2)Shadow for dropdowns
--shadow-article4px 4px 12px 0px rgba(0, 0, 0, 0.15)Shadow for articles
--backdroprgba(0, 0, 0, 0.4)Modal backdrop color
--backdrop-filterblur(2px)Blur effect for modal backdrop
--animate-progressprogress 5s linear infiniteProgress bar animation

Chat Variables

VariableValue(s)Description
--ast-reference-expanded-hover-bg#fff9Background color for expanded references on hover
--ast-input-bgwhite, #f8f8f8Background color for chat input area
--ast-secondary-bg#ffeab9Secondary background color for assistant messages
--ast-user-font-weight600Font weight for user messages
--ast-primary-bgwhitePrimary background color for chat messages
--ast-size-31.5remBase size for chat elements
--text-xxs0.625remExtra small text size for chat interface
--zindex-drawer-chat2500Z-index for chat drawer
--color-primary#0084ffPrimary color for interactive elements
--color-primary-hover#0056ffHover state for primary interactive elements
--color-primary-foreground#ffffffText color on primary background
--color-muted#f6f7f9Background color for muted elements
--color-accent-foreground#1c1c1cText color on accent background