Dark Matter (by Particle) is a shadcn/ui theme built around a near-white primary color (#ffffff) with vivid deep blue accents (#004875). The light mode uses a blue-tinted background (#001929). Dark mode keeps the near-white primary (#ffffff) on a blue-tinted background (#001929).
| Token | Light | Dark |
|---|---|---|
| Background | #001929black | #001929black |
| Foreground | #bababasilver | #bababasilver |
| Card | #00131fblack | #00131fblack |
| Card foreground | #c7c7c7silver | #c7c7c7silver |
| Popover | #00101ablack | #00101ablack |
| Popover foreground | #d4d4d4lightgrey | #d4d4d4lightgrey |
| Primary | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #404040darkslategray | #404040darkslategray |
| Secondary foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Muted | #22272bdarkslategray | #22272bdarkslategray |
| Muted foreground | #9ba8b0darkgray | #9ba8b0darkgray |
| Accent | #004875midnightblue | #004875midnightblue |
| Accent foreground | #a8deffpaleturquoise | #a8deffpaleturquoise |
| Destructive | #e4300corangered | #e4300corangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #03283fmidnightblue | #03283fmidnightblue |
| Input | #04314emidnightblue | #04314emidnightblue |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 9.23:1 | AAA |
| Text on card | 11.17:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 6.17:1 | AA |
| Accent | 6.63:1 | AA |
| Destructive | 4.45:1 | AA Large |
| Text on background | 9.23:1 | AAA |
| Text on card | 11.17:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 6.17:1 | AA |
| Accent | 6.63:1 | AA |
| Destructive | 4.45:1 | AA Large |
Paste this into your globals.css to use Dark Matter (by Particle) in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.203 0.045 238.21);
--foreground: oklch(0.789 0 171.254);
--muted: oklch(0.27 0.01 235.1);
--muted-foreground: oklch(0.725 0.019 234.899);
--popover: oklch(0.162 0.033 233.003);
--popover-foreground: oklch(0.869 0 165.964);
--card: oklch(0.176 0.037 235.194);
--card-foreground: oklch(0.829 0 180);
--border: oklch(0.266 0.059 241.482);
--input: oklch(0.302 0.069 242.494);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.389 0.098 245.058);
--accent-foreground: oklch(0.874 0.072 235.958);
--destructive: oklch(0.596 0.218 32.288);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.389 0.098 245.058);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.203 0.045 238.21);
--foreground: oklch(0.789 0 171.254);
--muted: oklch(0.27 0.01 235.1);
--muted-foreground: oklch(0.725 0.019 234.899);
--popover: oklch(0.162 0.033 233.003);
--popover-foreground: oklch(0.869 0 165.964);
--card: oklch(0.176 0.037 235.194);
--card-foreground: oklch(0.829 0 180);
--border: oklch(0.266 0.059 241.482);
--input: oklch(0.302 0.069 242.494);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.389 0.098 245.058);
--accent-foreground: oklch(0.874 0.072 235.958);
--destructive: oklch(0.596 0.218 32.288);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.389 0.098 245.058);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}