Skip to documentation

Design system / Sources & standards

Current repository source

generated.css

src/theming/utilities/generated.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.

/*
 * Tailwind v4 theme bridge.
 *
 * This file maps primitive and semantic tokens into the Tailwind theme
 * so the existing utility class contract keeps working (bg-primary,
 * text-muted-foreground, p-4, rounded-md, etc.).
 */

@theme inline {
  /* Saved-result border cue: three seconds, using existing motion primitives. */
  --animate-success-border: success-border calc(var(--cxh-duration-slower) * 6) var(--cxh-ease-out) forwards;
  /*
   * Spacing multiplier. With html { font-size: 62.5% } (1rem = 10px),
   * --cxh-space-4 is 0.4rem = 4px. Tailwind generates utilities as
   * calc(var(--spacing) * N), so p-4 = 16px, p-8 = 32px, etc.
   */
  --spacing: var(--cxh-space-4);
  --container-content: var(--cxh-container-content);

  @keyframes success-border {
    from { opacity: 1; }
    to { opacity: 0; }
  }

  /* Active Tailwind text utilities mapped to the fluid minor-third scale. */
  --text-xs: var(--cxh-type-size-xs);
  --text-xs--line-height: var(--cxh-type-line-height-label);
  --text-sm: var(--cxh-type-size-sm);
  --text-sm--line-height: var(--cxh-type-line-height-body);
  --text-base: var(--cxh-type-size-md);
  --text-base--line-height: var(--cxh-type-line-height-body);
  --text-md: var(--cxh-type-size-md);
  --text-md--line-height: var(--cxh-type-line-height-body);
  --text-lg: var(--cxh-type-size-lg);
  --text-lg--line-height: var(--cxh-type-line-height-title);
  --text-xl: var(--cxh-type-size-xl);
  --text-xl--line-height: var(--cxh-type-line-height-title);
  --text-2xl: var(--cxh-type-size-2xl);
  --text-2xl--line-height: var(--cxh-type-line-height-heading);
  --text-3xl: var(--cxh-type-size-3xl);
  --text-3xl--line-height: var(--cxh-type-line-height-heading);
  --text-4xl: var(--cxh-type-size-4xl);
  --text-4xl--line-height: var(--cxh-type-line-height-heading);
  --text-5xl: var(--cxh-type-size-5xl);
  --text-5xl--line-height: var(--cxh-type-line-height-heading);
  --text-6xl: var(--cxh-type-size-jumbo);
  --text-6xl--line-height: var(--cxh-type-line-height-heading);
  --text-jumbo: var(--cxh-type-size-jumbo);
  --text-jumbo--line-height: var(--cxh-type-line-height-heading);

  /* Independent reading rhythm, composed with any fluid text role/size. */
  --leading-compact: var(--reading-rhythm-tight);
  --leading-prose: var(--reading-rhythm-loose);

  /* Semantic family choice; no separate monospace size scale. */
  --font-monospace-accent: var(--font-family-monospace-accent);

  /* Eyebrow emphasis also composes with explicit size/family/rhythm overrides. */
  --font-weight-eyebrow: var(--text-eyebrow--font-weight);
  --tracking-eyebrow: var(--letter-spacing-eyebrow);

  /* Visual depth; these aliases remain independently overrideable by scope. */
  --shadow-elevation-flat: var(--elevation-flat);
  --shadow-elevation-raised: var(--elevation-raised);
  --shadow-elevation-floating: var(--elevation-floating);
  --shadow-elevation-overlay: var(--elevation-overlay);

  /* Radius — constrained 0/2/4/8/16 grid */
  --radius-none: var(--cxh-radius-none);
  --radius-sm: var(--cxh-radius-sm);
  --radius-md: var(--cxh-radius-md);
  --radius-lg: var(--cxh-radius-lg);
  --radius-xl: var(--cxh-radius-xl);
  --radius-2xl: var(--cxh-radius-2xl);
  --radius-3xl: var(--cxh-radius-3xl);
  --radius-full: var(--cxh-radius-full);

  /*
   * Standard shadcn color utilities.
   * These names are part of the shadcn component contract and must not
   * change without migrating components.
   */
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);

  /* Extended semantic color utilities */
  --color-success: var(--success);
  --color-success-foreground: var(--success-foreground);
  --color-success-muted: var(--success-muted);
  --color-success-muted-foreground: var(--success-muted-foreground);
  --color-warning: var(--warning);
  --color-warning-foreground: var(--warning-foreground);
  --color-warning-muted: var(--warning-muted);
  --color-warning-muted-foreground: var(--warning-muted-foreground);
  --color-info: var(--info);
  --color-info-foreground: var(--info-foreground);
  --color-info-muted: var(--info-muted);
  --color-info-muted-foreground: var(--info-muted-foreground);
  --color-info-border: var(--info-border);
  --color-surface-raised: var(--surface-raised);
  --color-surface-overlay: var(--surface-overlay);
  --color-surface-sunken: var(--surface-sunken);
  --color-text-muted: var(--text-muted);
  --color-text-link: var(--text-link);
  --color-navigation-hover: var(--navigation-hover);
  --color-navigation-selected: var(--navigation-selected);
  --color-text-navigation: var(--text-navigation);
  --color-text-navigation-hover: var(--text-navigation-hover);
  --color-text-navigation-selected: var(--text-navigation-selected);
  --color-border-focus: var(--border-focus);

  /* Chart palette */
  --color-chart-1: var(--chart-1);
  --color-chart-2: var(--chart-2);
  --color-chart-3: var(--chart-3);
  --color-chart-4: var(--chart-4);
  --color-chart-5: var(--chart-5);

  /* Sidebar */
  --color-sidebar: var(--sidebar);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-ring: var(--sidebar-ring);
}

/* Enable class-based dark mode (Tailwind v4 defaults to prefers-color-scheme). */
@custom-variant dark (&:is(.dark *));

@layer base {
  /* 1rem = 10px, making rem values easy to reason about (1.6rem = 16px). */
  html {
    font-size: 62.5%;
  }

  * {
    @apply border-border outline-ring/50;
  }

  body {
    @apply bg-background text-foreground;
  }
}
All sources and standards
Current components and theme tokens. Fictional example data. Source views refresh on deployment; authors maintain contract notes.