Classification is a shadcn/ui theme built around a near-black primary color (#050406) with muted light violet accents (#d2c5d8). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the near-black primary (#050406) on a neutral background (#030104).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #030104black |
| Foreground | #030104black | #faf9fbghostwhite |
| Card | #fdfbfewhite | #030104black |
| Card foreground | #030104black | #faf9fbghostwhite |
| Popover | #fdfbfewhite | #030104black |
| Popover foreground | #030104black | #faf9fbghostwhite |
| Primary | #050406black | #050406black |
| Primary foreground | #a589b3darkgray | #a589b3darkgray |
| Secondary | #e2dde4gainsboro | #1a191ablack |
| Secondary foreground | #4a404fdarkslategray | #b3b2b3darkgray |
| Muted | #ede3f3lavender | #170c1cblack |
| Muted foreground | #695c70dimgray | #9c8fa3darkgray |
| Accent | #d2c5d8thistle | #322d34darkslategray |
| Accent foreground | #392b40darkslategray | #cbc6cdlightgrey |
| Destructive | #690f02maroon | #fc4c31tomato |
| Destructive foreground | #feaca0lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #050406black | #050406black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.22:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 6.64:1 | AA |
| Secondary button | 7.33:1 | AAA |
| Muted text | 5.00:1 | AA |
| Accent | 7.97:1 | AAA |
| Destructive | 6.92:1 | AA |
| Text on background | 19.79:1 | AAA |
| Text on card | 19.79:1 | AAA |
| Primary button | 6.64:1 | AA |
| Secondary button | 8.28:1 | AAA |
| Muted text | 6.19:1 | AA |
| Accent | 8.01:1 | AAA |
| Destructive | 3.37:1 | AA Large |
Paste this into your globals.css to use Classification in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 314.809);
--foreground: oklch(0.083 0.018 316.67);
--muted: oklch(0.928 0.024 314.701);
--muted-foreground: oklch(0.494 0.036 314.474);
--popover: oklch(0.991 0.004 314.809);
--popover-foreground: oklch(0.083 0.018 316.67);
--card: oklch(0.991 0.004 314.809);
--card-foreground: oklch(0.083 0.018 316.67);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.112 0.009 315.528);
--primary-foreground: oklch(0.67 0.069 314.32);
--secondary: oklch(0.903 0.01 314.772);
--secondary-foreground: oklch(0.387 0.029 314.457);
--accent: oklch(0.839 0.03 314.653);
--accent-foreground: oklch(0.314 0.042 314.164);
--destructive: oklch(0.338 0.125 32.173);
--destructive-foreground: oklch(0.82 0.098 29.007);
--ring: oklch(0.112 0.009 315.528);
--chart-1: oklch(0.112 0.009 315.528);
--chart-2: oklch(0.903 0.01 314.772);
--chart-3: oklch(0.839 0.03 314.653);
--chart-4: oklch(0.928 0.008 314.787);
--chart-5: oklch(0.111 0.01 315.628);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.083 0.017 316.632);
--foreground: oklch(0.984 0.002 314.816);
--muted: oklch(0.18 0.035 313.803);
--muted-foreground: oklch(0.668 0.033 314.584);
--popover: oklch(0.083 0.017 316.632);
--popover-foreground: oklch(0.984 0.002 314.816);
--card: oklch(0.083 0.017 316.632);
--card-foreground: oklch(0.984 0.002 314.816);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.112 0.009 315.528);
--primary-foreground: oklch(0.67 0.069 314.32);
--secondary: oklch(0.215 0.001 314.802);
--secondary-foreground: oklch(0.764 0.002 314.812);
--accent: oklch(0.305 0.014 314.612);
--accent-foreground: oklch(0.832 0.012 314.759);
--destructive: oklch(0.664 0.216 31.626);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.112 0.009 315.528);
--chart-1: oklch(0.112 0.009 315.528);
--chart-2: oklch(0.215 0.001 314.802);
--chart-3: oklch(0.305 0.014 314.612);
--chart-4: oklch(0.248 0.001 314.799);
--chart-5: oklch(0.111 0.01 315.628);
}