Skip to main content

CSS Variables Reference

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
#ffffff
Main background color
--color-foreground
#23272e
Main text color
--color-border
#f6f7f9
Border color
--color-input
#d5d9e2
Input field color
--color-ring
#1a73e8
Focus ring color

Colors - Components

VariableValue(s)Description
--color-card
#ffffff
Card background color
--color-card-foreground
#1c1c1c
Card text color
--color-popover
#ffffff
Popover background color
--color-popover-foreground
#1c1c1c
Popover text color
--color-backdrop
rgba(0, 0, 0, 0.4)
Semi-transparent backdrop color

Colors - Interactive

VariableValue(s)Description
--color-primary
#0084ff
Primary color
--color-primary-hover
#0056ff
Primary color hover state
--color-primary-active
#0040bf
Primary color active state
--color-primary-foreground
#ffffff
Text color on primary background
--color-secondary
#526077
Secondary color
--color-secondary-hover
#434e61
Secondary color hover state
--color-secondary-active
#3a4252
Secondary color active state
--color-secondary-foreground
#ffffff
Text color on secondary background
--color-muted
#f6f7f9
Muted state color
--color-muted-foreground
#8695aa
Muted text color
--color-accent
#f2f2f2
Accent color
--color-accent-foreground
#1c1c1c
Text color on accent background

Colors - Status

VariableValue(s)Description
--color-destructive
#ff2a1d
Color for destructive actions
--color-destructive-hover
#c8180d
Destructive hover state
--color-destructive-active
#a5180f
Destructive active state
--color-destructive-disable
#ffc8c5
Destructive disabled state
--color-destructive-foreground
#ffffff
Text on destructive background
--color-alert
#ff2a1d
Alert color
--color-success
#2ed73f
Success color
--color-highlight
#fff7ab
Highlight 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
#fff9
Background color for expanded references on hover
--ast-input-bg
white
,
#f8f8f8
Background color for chat input area
--ast-secondary-bg
#ffeab9
Secondary 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
#0084ff
Primary color for interactive elements
--color-primary-hover
#0056ff
Hover state for primary interactive elements
--color-primary-foreground
#ffffff
Text color on primary background
--color-muted
#f6f7f9
Background color for muted elements
--color-accent-foreground
#1c1c1c
Text color on accent background