shadcn/ui theme · dark original

Midnight SaaS

A deep navy product palette with an electric blue primary — the default look of modern dashboards and developer tools.

darksaasblue

Install

npx shadcn@latest add https://csscreme.com/r/midnight-saas.json

Requires a project with shadcn/ui set up. Prefer to paste? The CSS variables are below.

Partial install

Live preview

Revenue

Last 30 days across all workspaces.

Total

$48,210+12.4%

Active

1,204+3.1%

Churn

0.8%-0.2%

Tokens

:root {
  --background: oklch(98.8% 0.001 286.4);
  --foreground: oklch(25.5% 0.021 260.6);
  --card: oklch(97.3% 0.002 247.8);
  --card-foreground: oklch(25.5% 0.021 260.6);
  --popover: oklch(97.3% 0.002 247.8);
  --popover-foreground: oklch(25.5% 0.021 260.6);
  --primary: oklch(61.9% 0.184 265.4);
  --primary-foreground: oklch(15.2% 0.009 285.3);
  --secondary: oklch(97.9% 0.002 247.8);
  --secondary-foreground: oklch(25.5% 0.021 260.6);
  --muted: oklch(97.9% 0.002 247.8);
  --muted-foreground: oklch(53.4% 0.010 264.5);
  --accent: oklch(64.9% 0.211 294.8);
  --accent-foreground: oklch(15.2% 0.009 285.3);
  --destructive: oklch(62.6% 0.193 23.0);
  --destructive-foreground: oklch(15.2% 0.009 285.3);
  --border: oklch(83.6% 0.004 271.4);
  --input: oklch(83.6% 0.004 271.4);
  --ring: oklch(61.9% 0.184 265.4);
  --chart-1: oklch(61.9% 0.184 265.4);
  --chart-2: oklch(64.9% 0.211 294.8);
  --chart-3: oklch(58.9% 0.232 296.1);
  --chart-4: oklch(86.1% 0.127 200.7);
  --chart-5: oklch(62.8% 0.193 279.6);
  --sidebar: oklch(98.2% 0.002 247.8);
  --sidebar-foreground: oklch(25.5% 0.021 260.6);
  --sidebar-primary: oklch(61.9% 0.184 265.4);
  --sidebar-primary-foreground: oklch(15.2% 0.009 285.3);
  --sidebar-accent: oklch(97.9% 0.002 247.8);
  --sidebar-accent-foreground: oklch(25.5% 0.021 260.6);
  --sidebar-border: oklch(83.6% 0.004 271.4);
  --sidebar-ring: oklch(61.9% 0.184 265.4);
  --radius: 12px;
  --shadow-2xs: 0 1px 2px 0px rgb(29 35 45 / 0.05);
  --shadow-xs: 0 1px 3px 0px rgb(29 35 45 / 0.06);
  --shadow-sm: 0 1px 3px 0px rgb(29 35 45 / 0.08), 0 1px 2px -1px rgb(29 35 45 / 0.08);
  --shadow-md: 0 4px 6px -1px rgb(29 35 45 / 0.09), 0 2px 4px -2px rgb(29 35 45 / 0.09);
  --shadow-lg: 0 10px 15px -3px rgb(29 35 45 / 0.1), 0 4px 6px -4px rgb(29 35 45 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(29 35 45 / 0.12), 0 8px 10px -6px rgb(29 35 45 / 0.12);
  --shadow-2xl: 0 25px 50px -12px rgb(29 35 45 / 0.22);
  --spacing: 4px;
}

.dark {
  --background: oklch(17.7% 0.034 269.6);
  --foreground: oklch(94.8% 0.016 262.8);
  --card: oklch(25.6% 0.043 268.1);
  --card-foreground: oklch(94.8% 0.016 262.8);
  --popover: oklch(25.6% 0.043 268.1);
  --popover-foreground: oklch(94.8% 0.016 262.8);
  --primary: oklch(61.9% 0.184 265.4);
  --primary-foreground: oklch(15.2% 0.009 285.3);
  --secondary: oklch(23.0% 0.040 268.5);
  --secondary-foreground: oklch(94.8% 0.016 262.8);
  --muted: oklch(23.0% 0.040 268.5);
  --muted-foreground: oklch(66.2% 0.030 265.3);
  --accent: oklch(64.9% 0.211 294.8);
  --accent-foreground: oklch(15.2% 0.009 285.3);
  --destructive: oklch(62.6% 0.193 23.0);
  --destructive-foreground: oklch(15.2% 0.009 285.3);
  --border: oklch(33.1% 0.031 269.5);
  --input: oklch(33.1% 0.031 269.5);
  --ring: oklch(61.9% 0.184 265.4);
  --chart-1: oklch(61.9% 0.184 265.4);
  --chart-2: oklch(64.9% 0.211 294.8);
  --chart-3: oklch(58.9% 0.232 296.1);
  --chart-4: oklch(86.1% 0.127 200.7);
  --chart-5: oklch(62.8% 0.193 279.6);
  --sidebar: oklch(21.8% 0.039 269.7);
  --sidebar-foreground: oklch(94.8% 0.016 262.8);
  --sidebar-primary: oklch(61.9% 0.184 265.4);
  --sidebar-primary-foreground: oklch(15.2% 0.009 285.3);
  --sidebar-accent: oklch(23.0% 0.040 268.5);
  --sidebar-accent-foreground: oklch(94.8% 0.016 262.8);
  --sidebar-border: oklch(33.1% 0.031 269.5);
  --sidebar-ring: oklch(61.9% 0.184 265.4);
  --shadow-2xs: 0 1px 2px 0px rgb(232 238 249 / 0.16);
  --shadow-xs: 0 1px 3px 0px rgb(232 238 249 / 0.18);
  --shadow-sm: 0 1px 3px 0px rgb(232 238 249 / 0.22), 0 1px 2px -1px rgb(232 238 249 / 0.22);
  --shadow-md: 0 4px 6px -1px rgb(232 238 249 / 0.26), 0 2px 4px -2px rgb(232 238 249 / 0.26);
  --shadow-lg: 0 10px 15px -3px rgb(232 238 249 / 0.3), 0 4px 6px -4px rgb(232 238 249 / 0.3);
  --shadow-xl: 0 20px 25px -5px rgb(232 238 249 / 0.34), 0 8px 10px -6px rgb(232 238 249 / 0.34);
  --shadow-2xl: 0 25px 50px -12px rgb(232 238 249 / 0.45);
}

Tailwind v4

@theme inline {
  --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);
  --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);
  --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);
  --radius: var(--radius);
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --shadow-2xs: var(--shadow-2xs);
  --shadow-xs: var(--shadow-xs);
  --shadow-sm: var(--shadow-sm);
  --shadow-md: var(--shadow-md);
  --shadow-lg: var(--shadow-lg);
  --shadow-xl: var(--shadow-xl);
  --shadow-2xl: var(--shadow-2xl);
  --spacing: var(--spacing);
}

Colors are OKLCH. Contrast is checked in both modes: foreground on background, on cards, and button labels on the primary fill.

DESIGN.md for AI agents

Design context for Cursor, Claude Code, Codex, v0 or Lovable. Paste it in before you ask for UI, or commit it at your repo root as DESIGN.md. Every colour, ratio and rule below is computed from this theme, not written by hand, so the agent can be held to it.

curl -o DESIGN.md https://csscreme.com/d/midnight-saas.md
The file
# DESIGN.md — Midnight SaaS

> Design context for AI coding agents. Paste this file into Cursor, Claude Code, Codex, v0 or Lovable
> before asking for UI, or commit it at your repo root as `DESIGN.md`.

- **Source:** [Midnight SaaS on CSS Crème](https://csscreme.com/themes/midnight-saas)
- **Default mode:** dark
- **Tags:** dark, saas, blue
- **Install as a real shadcn/ui theme:** `npx shadcn@latest add https://csscreme.com/r/midnight-saas.json`
- **Fingerprint:** `fnv1a-2ccd2879` — a hash of the token set below. It changes only when a token changes.
- **Verify this copy:** call the MCP tool `verify_design_md` with `{ "id": "midnight-saas", "fingerprint": "fnv1a-2ccd2879" }`
  at `https://csscreme.com/mcp`, or refetch https://csscreme.com/d/midnight-saas.md. A stale copy is worse than none: an agent will follow it faithfully.
- **Also available as:** [DTCG tokens](https://csscreme.com/d/midnight-saas.tokens.json) for Tokens Studio / Figma Variables · [agent rules block](https://csscreme.com/d/midnight-saas.rules.md) for CLAUDE.md, AGENTS.md or .cursor/rules

A deep navy product palette with an electric blue primary — the default look of modern dashboards and developer tools.

---

## Semantic color roles

Six roles carry the identity. Everything else in this file is derived from them.

| Role | Hex | OKLCH | Use it for |
| --- | --- | --- | --- |
| `bg` | `#0B1020` | `oklch(17.7% 0.034 269.6)` | page background |
| `surface` | `#1A2238` | `oklch(25.6% 0.043 268.1)` | cards, panels, popovers |
| `primary` | `#4F7DF3` | `oklch(61.9% 0.184 265.4)` | brand actions: primary buttons, links, focus rings |
| `accent` | `#9B6BFF` | `oklch(64.9% 0.211 294.8)` | secondary emphasis only, never a second primary |
| `text` | `#E8EEF9` | `oklch(94.8% 0.016 262.8)` | body and heading text |
| `muted` | `#8A93A6` | `oklch(66.2% 0.030 265.3)` | secondary text, borders, disabled states |

## Full token set (shadcn/ui, both modes)

Colors are OKLCH (Tailwind v4 / shadcn native). Brand colors are identical in both modes by design:
only the neutrals move, and they keep their hue, so light and dark read as the same design system.

| Token | Light | Dark |
| --- | --- | --- |
| `--background` | `oklch(98.8% 0.001 286.4)` | `oklch(17.7% 0.034 269.6)` |
| `--foreground` | `oklch(25.5% 0.021 260.6)` | `oklch(94.8% 0.016 262.8)` |
| `--card` | `oklch(97.3% 0.002 247.8)` | `oklch(25.6% 0.043 268.1)` |
| `--card-foreground` | `oklch(25.5% 0.021 260.6)` | `oklch(94.8% 0.016 262.8)` |
| `--popover` | `oklch(97.3% 0.002 247.8)` | `oklch(25.6% 0.043 268.1)` |
| `--popover-foreground` | `oklch(25.5% 0.021 260.6)` | `oklch(94.8% 0.016 262.8)` |
| `--primary` | `oklch(61.9% 0.184 265.4)` | `oklch(61.9% 0.184 265.4)` |
| `--primary-foreground` | `oklch(15.2% 0.009 285.3)` | `oklch(15.2% 0.009 285.3)` |
| `--secondary` | `oklch(97.9% 0.002 247.8)` | `oklch(23.0% 0.040 268.5)` |
| `--secondary-foreground` | `oklch(25.5% 0.021 260.6)` | `oklch(94.8% 0.016 262.8)` |
| `--muted` | `oklch(97.9% 0.002 247.8)` | `oklch(23.0% 0.040 268.5)` |
| `--muted-foreground` | `oklch(53.4% 0.010 264.5)` | `oklch(66.2% 0.030 265.3)` |
| `--accent` | `oklch(64.9% 0.211 294.8)` | `oklch(64.9% 0.211 294.8)` |
| `--accent-foreground` | `oklch(15.2% 0.009 285.3)` | `oklch(15.2% 0.009 285.3)` |
| `--destructive` | `oklch(62.6% 0.193 23.0)` | `oklch(62.6% 0.193 23.0)` |
| `--destructive-foreground` | `oklch(15.2% 0.009 285.3)` | `oklch(15.2% 0.009 285.3)` |
| `--border` | `oklch(83.6% 0.004 271.4)` | `oklch(33.1% 0.031 269.5)` |
| `--input` | `oklch(83.6% 0.004 271.4)` | `oklch(33.1% 0.031 269.5)` |
| `--ring` | `oklch(61.9% 0.184 265.4)` | `oklch(61.9% 0.184 265.4)` |
| `--chart-1` | `oklch(61.9% 0.184 265.4)` | `oklch(61.9% 0.184 265.4)` |
| `--chart-2` | `oklch(64.9% 0.211 294.8)` | `oklch(64.9% 0.211 294.8)` |
| `--chart-3` | `oklch(58.9% 0.232 296.1)` | `oklch(58.9% 0.232 296.1)` |
| `--chart-4` | `oklch(86.1% 0.127 200.7)` | `oklch(86.1% 0.127 200.7)` |
| `--chart-5` | `oklch(62.8% 0.193 279.6)` | `oklch(62.8% 0.193 279.6)` |
| `--sidebar` | `oklch(98.2% 0.002 247.8)` | `oklch(21.8% 0.039 269.7)` |
| `--sidebar-foreground` | `oklch(25.5% 0.021 260.6)` | `oklch(94.8% 0.016 262.8)` |
| `--sidebar-primary` | `oklch(61.9% 0.184 265.4)` | `oklch(61.9% 0.184 265.4)` |
| `--sidebar-primary-foreground` | `oklch(15.2% 0.009 285.3)` | `oklch(15.2% 0.009 285.3)` |
| `--sidebar-accent` | `oklch(97.9% 0.002 247.8)` | `oklch(23.0% 0.040 268.5)` |
| `--sidebar-accent-foreground` | `oklch(25.5% 0.021 260.6)` | `oklch(94.8% 0.016 262.8)` |
| `--sidebar-border` | `oklch(83.6% 0.004 271.4)` | `oklch(33.1% 0.031 269.5)` |
| `--sidebar-ring` | `oklch(61.9% 0.184 265.4)` | `oklch(61.9% 0.184 265.4)` |

**What is measured and what is derived.** The six roles are the source. `chart-*` and `sidebar-*` follow
fixed rules over them (chart-1 = primary, chart-2 = accent, chart-3/4 = primary rotated ±40°, chart-5 = the
primary–accent midpoint; sidebar maps onto surface, border and primary). `shadow-*` is the foreground
colour at a fixed opacity per step. None of those is a measurement, and an agent should treat them as
defaults it may override, unlike the six roles, which it may not.

## Typography

- **Headings:** Inter
- **Body:** Inter

## Shape and rhythm

- **Radius:** `12px` (the `--radius` token; derive smaller/larger from it, do not invent new values)
- **Spacing scale:** 4px base · 4 / 8 / 12 / 16 / 24 / 32 / 48

## Contrast, measured

Computed from the tokens above in dark mode, not asserted. Ratios are WCAG 2.1 relative luminance.

| Pair | Foreground | Background | Ratio | Verdict |
| --- | --- | --- | --- | --- |
| Body text on page background | `#E8EEF9` | `#0B1020` | 16.25:1 | AAA |
| Body text on card | `#E8EEF9` | `#1A2238` | 13.56:1 | AAA |
| Muted text on page background | `#8A93A6` | `#0B1020` | 6.13:1 | AA |
| Button label on primary | `#0b0b0f` | `#4F7DF3` | 5.2:1 | AA |
| Button label on accent | `#0b0b0f` | `#9B6BFF` | 5.56:1 | AA |

## Rules for the agent

These are constraints, not suggestions. Each one is checkable against the tables above.

1. **Use only the tokens listed here.** Do not introduce a hex value that is not in the token table. If
   you need an in-between shade, mix two existing tokens rather than inventing a new hue.
2. **`#4F7DF3` (primary) is the only call-to-action color.** One primary action per view. `accent`
   is for secondary emphasis and must never be styled as a second primary button.
3. **Never restyle brand colors between light and dark.** Only neutrals change mode. A theme whose
   primary shifts between modes is a different theme.
4. **Respect the radius token.** Every corner derives from `12px`. Mixed radii across a view is
   the most common tell of generated UI.
5. **Stay on the spacing scale.** 4px base · 4 / 8 / 12 / 16 / 24 / 32 / 48. No arbitrary pixel values.
6. **Do not drop below the contrast ratios above.** If a combination you need is not in the contrast
   table, compute it before shipping it. Text under 4.5:1 fails AA.
7. **Headings in Inter, body in Inter.** Do not add a third family.
8. **Use the semantic role, not the raw color.** Write `var(--primary)`, never `#4F7DF3`, so the
   theme stays swappable.

## CSS variables

Paste into `globals.css`:

```css
:root {
  --background: oklch(98.8% 0.001 286.4);
  --foreground: oklch(25.5% 0.021 260.6);
  --card: oklch(97.3% 0.002 247.8);
  --card-foreground: oklch(25.5% 0.021 260.6);
  --popover: oklch(97.3% 0.002 247.8);
  --popover-foreground: oklch(25.5% 0.021 260.6);
  --primary: oklch(61.9% 0.184 265.4);
  --primary-foreground: oklch(15.2% 0.009 285.3);
  --secondary: oklch(97.9% 0.002 247.8);
  --secondary-foreground: oklch(25.5% 0.021 260.6);
  --muted: oklch(97.9% 0.002 247.8);
  --muted-foreground: oklch(53.4% 0.010 264.5);
  --accent: oklch(64.9% 0.211 294.8);
  --accent-foreground: oklch(15.2% 0.009 285.3);
  --destructive: oklch(62.6% 0.193 23.0);
  --destructive-foreground: oklch(15.2% 0.009 285.3);
  --border: oklch(83.6% 0.004 271.4);
  --input: oklch(83.6% 0.004 271.4);
  --ring: oklch(61.9% 0.184 265.4);
  --chart-1: oklch(61.9% 0.184 265.4);
  --chart-2: oklch(64.9% 0.211 294.8);
  --chart-3: oklch(58.9% 0.232 296.1);
  --chart-4: oklch(86.1% 0.127 200.7);
  --chart-5: oklch(62.8% 0.193 279.6);
  --sidebar: oklch(98.2% 0.002 247.8);
  --sidebar-foreground: oklch(25.5% 0.021 260.6);
  --sidebar-primary: oklch(61.9% 0.184 265.4);
  --sidebar-primary-foreground: oklch(15.2% 0.009 285.3);
  --sidebar-accent: oklch(97.9% 0.002 247.8);
  --sidebar-accent-foreground: oklch(25.5% 0.021 260.6);
  --sidebar-border: oklch(83.6% 0.004 271.4);
  --sidebar-ring: oklch(61.9% 0.184 265.4);
  --radius: 12px;
  --shadow-2xs: 0 1px 2px 0px rgb(29 35 45 / 0.05);
  --shadow-xs: 0 1px 3px 0px rgb(29 35 45 / 0.06);
  --shadow-sm: 0 1px 3px 0px rgb(29 35 45 / 0.08), 0 1px 2px -1px rgb(29 35 45 / 0.08);
  --shadow-md: 0 4px 6px -1px rgb(29 35 45 / 0.09), 0 2px 4px -2px rgb(29 35 45 / 0.09);
  --shadow-lg: 0 10px 15px -3px rgb(29 35 45 / 0.1), 0 4px 6px -4px rgb(29 35 45 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(29 35 45 / 0.12), 0 8px 10px -6px rgb(29 35 45 / 0.12);
  --shadow-2xl: 0 25px 50px -12px rgb(29 35 45 / 0.22);
  --spacing: 4px;
}

.dark {
  --background: oklch(17.7% 0.034 269.6);
  --foreground: oklch(94.8% 0.016 262.8);
  --card: oklch(25.6% 0.043 268.1);
  --card-foreground: oklch(94.8% 0.016 262.8);
  --popover: oklch(25.6% 0.043 268.1);
  --popover-foreground: oklch(94.8% 0.016 262.8);
  --primary: oklch(61.9% 0.184 265.4);
  --primary-foreground: oklch(15.2% 0.009 285.3);
  --secondary: oklch(23.0% 0.040 268.5);
  --secondary-foreground: oklch(94.8% 0.016 262.8);
  --muted: oklch(23.0% 0.040 268.5);
  --muted-foreground: oklch(66.2% 0.030 265.3);
  --accent: oklch(64.9% 0.211 294.8);
  --accent-foreground: oklch(15.2% 0.009 285.3);
  --destructive: oklch(62.6% 0.193 23.0);
  --destructive-foreground: oklch(15.2% 0.009 285.3);
  --border: oklch(33.1% 0.031 269.5);
  --input: oklch(33.1% 0.031 269.5);
  --ring: oklch(61.9% 0.184 265.4);
  --chart-1: oklch(61.9% 0.184 265.4);
  --chart-2: oklch(64.9% 0.211 294.8);
  --chart-3: oklch(58.9% 0.232 296.1);
  --chart-4: oklch(86.1% 0.127 200.7);
  --chart-5: oklch(62.8% 0.193 279.6);
  --sidebar: oklch(21.8% 0.039 269.7);
  --sidebar-foreground: oklch(94.8% 0.016 262.8);
  --sidebar-primary: oklch(61.9% 0.184 265.4);
  --sidebar-primary-foreground: oklch(15.2% 0.009 285.3);
  --sidebar-accent: oklch(23.0% 0.040 268.5);
  --sidebar-accent-foreground: oklch(94.8% 0.016 262.8);
  --sidebar-border: oklch(33.1% 0.031 269.5);
  --sidebar-ring: oklch(61.9% 0.184 265.4);
  --shadow-2xs: 0 1px 2px 0px rgb(232 238 249 / 0.16);
  --shadow-xs: 0 1px 3px 0px rgb(232 238 249 / 0.18);
  --shadow-sm: 0 1px 3px 0px rgb(232 238 249 / 0.22), 0 1px 2px -1px rgb(232 238 249 / 0.22);
  --shadow-md: 0 4px 6px -1px rgb(232 238 249 / 0.26), 0 2px 4px -2px rgb(232 238 249 / 0.26);
  --shadow-lg: 0 10px 15px -3px rgb(232 238 249 / 0.3), 0 4px 6px -4px rgb(232 238 249 / 0.3);
  --shadow-xl: 0 20px 25px -5px rgb(232 238 249 / 0.34), 0 8px 10px -6px rgb(232 238 249 / 0.34);
  --shadow-2xl: 0 25px 50px -12px rgb(232 238 249 / 0.45);
}
```

Tailwind v4 maps them into utilities:

```css
@theme inline {
  --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);
  --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);
  --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);
  --radius: var(--radius);
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --shadow-2xs: var(--shadow-2xs);
  --shadow-xs: var(--shadow-xs);
  --shadow-sm: var(--shadow-sm);
  --shadow-md: var(--shadow-md);
  --shadow-lg: var(--shadow-lg);
  --shadow-xl: var(--shadow-xl);
  --shadow-2xl: var(--shadow-2xl);
  --spacing: var(--spacing);
}
```

---

Generated by [CSS Crème](https://csscreme.com) — curated web design, decoded so you can build it.
Every value above is computed from the palette, not written by hand.

Or link an agent straight at /d/midnight-saas.md — it is served as text/markdown with CORS open, so a tool can fetch it directly.

Fingerprint fnv1a-2ccd2879 Hash of the token set. Changes only when a token changes. An agent holding this file can ask the MCP verify_design_md whether its copy is still current.
DTCG tokens /d/midnight-saas.tokens.json W3C Design Tokens format. Import into Tokens Studio or Figma Variables without retyping a hex.
Agent rules /d/midnight-saas.rules.md A block for CLAUDE.md, AGENTS.md or .cursor/rules that makes every session read DESIGN.md before touching UI.

Every pair, measured dark mode

The DESIGN.md prints the five pairs an agent will actually produce. This is the whole grid: each token as text on each token as background, WCAG 2.1 ratio and verdict. No summary score, because a single number would hide the one pair that fails.

backgroundcardsecondaryprimaryaccentdestructiveforegroundmuted-foreground
background 1.2fail 1.12fail 5.01AA 5.36AA 4.84AA 16.25AAA 6.13AA
card 1.2fail 1.07fail 4.18AA large 4.47AA large 4.03AA large 13.56AAA 5.12AA
secondary 1.12fail 1.07fail 4.48AA large 4.79AA 4.32AA large 14.53AAA 5.48AA
primary 5.01AA 4.18AA large 4.48AA large 1.07fail 1.04fail 3.24AA large 1.22fail
accent 5.36AA 4.47AA large 4.79AA 1.07fail 1.11fail 3.03AA large 1.15fail
destructive 4.84AA 4.03AA large 4.32AA large 1.04fail 1.11fail 3.36AA large 1.27fail
foreground 16.25AAA 13.56AAA 14.53AAA 3.24AA large 3.03AA large 3.36AA large 2.65fail
muted-foreground 6.13AA 5.12AA 5.48AA 1.22fail 1.15fail 1.27fail 2.65fail

Rows are the text colour, columns the background. AAA is 7:1 or better, AA 4.5:1, AA large 3:1.

Where this came from

Themes here aren't randomised swatches — they start life as a palette in our design layer, studied against real interfaces. See the Midnight SaaS palette for the full role breakdown, font pairing and spacing scale, or browse the showcase and breakdowns the palettes are drawn from.

Font pairing Inter headings · Inter body  ·  Radius 12px

Related themes