/* Generated by site/scripts/generate-tokens.ts — do not edit.
 *
 * The dark palette, taken from tui/src/styles/theme.ts so the docs and the
 * terminal cannot disagree about what a diff or a warning looks like.
 *
 * Regenerate with:  bun run docs:tokens
 */

@media (prefers-color-scheme: dark) {
  :root {
    --doc-bg: #0a0a0a;
    --doc-surface: #0d0d0d; /* the landing page's --bg, one step off bgBase */
    --doc-raised: #171717; /* code blocks, cards, table headers */
    --doc-sunken: #262626;
    --doc-text: #e5e5e5;
    --doc-text-2: #a3a3a3;
    --doc-faint: #737373;
    --doc-strong: #ffffff;
    --doc-line: #262626;
    --doc-line-2: #404040;
    --doc-accent: #ACA3EC;
    --doc-accent-quiet: #818cf8;
    --doc-note: #404040;
    --doc-tip: #ACA3EC;
    --doc-warning: #fbbf24;
    --doc-danger: #f87171;
    --doc-diff-add: #7dd3fc;
    --doc-diff-remove: #f0a6bb;
    --doc-diff-add-bg: #16293d;
    --doc-diff-remove-bg: #3a1e2b;
    --doc-code-text: #eeeeee;
    --doc-code-heading: #9d7cd8;
    --doc-code-string: #7fd88f;
    --doc-code-keyword: #f5a742;
    --doc-code-comment: #737373;
    --doc-code-link: #fab283;
  }
}

/* The toggle has to win in both directions: a reader who forces dark inside a
   light OS gets dark, and one who forces light inside a dark OS gets the
   authored light values back (tokens.css re-states those under [data-theme="light"]). */
:root[data-theme="dark"] {
  --doc-bg: #0a0a0a;
  --doc-surface: #0d0d0d; /* the landing page's --bg, one step off bgBase */
  --doc-raised: #171717; /* code blocks, cards, table headers */
  --doc-sunken: #262626;
  --doc-text: #e5e5e5;
  --doc-text-2: #a3a3a3;
  --doc-faint: #737373;
  --doc-strong: #ffffff;
  --doc-line: #262626;
  --doc-line-2: #404040;
  --doc-accent: #ACA3EC;
  --doc-accent-quiet: #818cf8;
  --doc-note: #404040;
  --doc-tip: #ACA3EC;
  --doc-warning: #fbbf24;
  --doc-danger: #f87171;
  --doc-diff-add: #7dd3fc;
  --doc-diff-remove: #f0a6bb;
  --doc-diff-add-bg: #16293d;
  --doc-diff-remove-bg: #3a1e2b;
  --doc-code-text: #eeeeee;
  --doc-code-heading: #9d7cd8;
  --doc-code-string: #7fd88f;
  --doc-code-keyword: #f5a742;
  --doc-code-comment: #737373;
  --doc-code-link: #fab283;
}
