Skip to documentation

Design system / Sources & standards

Current repository source

core.css

src/theming/semantics/core.css

This view contains the escaped source read during the deployment build. Code and policy text are unchanged. Markdown is shown as source, not rendered as a document. A new deployment refreshes the content.

:root {
  /*
   * Core semantic tokens — shadcn-compatible variable contract.
   * These names must remain stable because shadcn/base components
   * rely on them (bg-primary, text-muted-foreground, border-border, etc.).
   */
  --background: var(--cxh-color-neutral-0);
  --foreground: var(--cxh-color-neutral-950);

  --card: var(--cxh-color-neutral-0);
  --card-foreground: var(--cxh-color-neutral-950);

  --popover: var(--cxh-color-neutral-0);
  --popover-foreground: var(--cxh-color-neutral-950);

  --primary: var(--cxh-color-neutral-900);
  --primary-foreground: var(--cxh-color-neutral-0);

  --secondary: var(--cxh-color-neutral-100);
  --secondary-foreground: var(--cxh-color-neutral-900);

  --muted: var(--cxh-color-neutral-100);
  --muted-foreground: var(--cxh-color-neutral-500);

  --accent: var(--cxh-color-neutral-100);
  --accent-foreground: var(--cxh-color-neutral-900);

  --destructive: var(--cxh-color-red-600);
  --destructive-foreground: var(--cxh-color-neutral-0);

  --border: var(--cxh-color-neutral-200);
  --input: var(--cxh-color-neutral-200);
  --ring: var(--cxh-color-neutral-400);

  --radius: var(--cxh-radius-md);
}

.dark {
  --background: var(--cxh-color-charcoal-canvas);
  --foreground: var(--cxh-color-neutral-50);

  --card: var(--cxh-color-charcoal-raised);
  --card-foreground: var(--cxh-color-neutral-50);

  --popover: var(--cxh-color-charcoal-raised);
  --popover-foreground: var(--cxh-color-neutral-50);

  --primary: var(--cxh-color-neutral-50);
  --primary-foreground: var(--cxh-color-neutral-900);

  --secondary: var(--cxh-color-neutral-800);
  --secondary-foreground: var(--cxh-color-neutral-50);

  --muted: var(--cxh-color-neutral-800);
  --muted-foreground: var(--cxh-color-neutral-400);

  --accent: var(--cxh-color-neutral-800);
  --accent-foreground: var(--cxh-color-neutral-50);

  --destructive: var(--cxh-color-red-500);
  --destructive-foreground: var(--cxh-color-neutral-0);

  --border: var(--cxh-color-neutral-alpha-100);
  --input: var(--cxh-color-neutral-alpha-150);
  --ring: var(--cxh-color-neutral-500);
}
All sources and standards
Current components and theme tokens. Fictional example data. Source views refresh on deployment; authors maintain contract notes.