Skip to content

Theming System

The Nexical styling system is a Semantic Abstraction Layer built on top of Tailwind CSS. It decouples design intent from visual implementation.

  1. Strict Separation: Components MUST NOT define colors/borders locally. Use semantic utilities (e.g., surface-panel).
  2. Single Source of Truth: src/styles/theme.base.css.
  3. Theme Modules: Customize by overriding CSS variables, not utility classes.

Themes control the look by modifying properties like:

  • --primary: Core brand color.
  • --background: Main page background.
  • --surface-panel: Card background.

AI Models and Developers must use these standardized utilities:

  • text-heading-xl: Main titles.
  • text-body: Standard text.
  • text-subtle: Muted metadata.
  • surface-panel: Standard card/panel.
  • container-page-content: Main content wrapper.
  • btn-primary: Main CTA.
  • btn-ghost: Minimal interaction.
  • btn-icon: Standard icon button.
  • feedback-error-card: Error alerts.
  • badge-primary: Important indicators.