Skip to main content

Theme-Independent Variables

This file contains the CSS custom properties that are shared across both light and dark themes. These live in variables.css and are available all the time regardless of the current theme.

info

These tokens are intentionally minimal - add new shared tokens here when they are broadly useful across components.

Typography

VariableValueUsage
--font-sans'Segoe UI', Tahoma, Geneva, Verdana, sans-serifDefault sans-serif font

Spacing

VariableValueUsage
--spacing-xs4pxExtra small spacing
--spacing-sm8pxSmall spacing
--spacing-md16pxMedium spacing (default)
--spacing-lg24pxLarge spacing
--spacing-xl32pxExtra large spacing

Border radius

VariableValueUsage
--radius-sm4pxSmall rounded corners
--radius-md8pxMedium rounded corners

Z-index layers

VariableValueUsage
--navbar-menu-backdrop-z-index99Backdrop overlay behind mobile menu
--navbar-menu-z-index100NavBar and mobile dropdown menu
Stacking Context

Use these z-index variables to ensure consistent stacking behavior across components. The navbar menu sits above the backdrop, which in turn sits above all other page content.