Active is a shadcn/ui theme built around a neutral gray primary color (#858585) with muted red accents (#cbafaf). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#858585) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #150505black | #faf5f5whitesmoke |
| Card | #ffffffwhite | #000000black |
| Card foreground | #150505black | #faf5f5whitesmoke |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #150505black | #faf5f5whitesmoke |
| Primary | #858585gray | #858585gray |
| Primary foreground | #000000black | #000000black |
| Secondary | #d9cecelightgrey | #372f2fdarkslategray |
| Secondary foreground | #423333darkslategray | #d0c8c8lightgrey |
| Muted | #ebd6d6gainsboro | #291414black |
| Muted foreground | #4a4040darkslategray | #bfb5b5silver |
| Accent | #cbafafsilver | #4b3a3adarkslategray |
| Accent foreground | #2b1c1cblack | #e0d7d7gainsboro |
| Destructive | #682103maroon | #f96c2ftomato |
| Destructive foreground | #fcbca1lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #858585gray | #858585gray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.89:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 5.66:1 | AA |
| Secondary button | 7.80:1 | AAA |
| Muted text | 7.20:1 | AAA |
| Accent | 7.98:1 | AAA |
| Destructive | 7.09:1 | AAA |
| Text on background | 19.44:1 | AAA |
| Text on card | 19.44:1 | AAA |
| Primary button | 5.66:1 | AA |
| Secondary button | 7.91:1 | AAA |
| Muted text | 8.69:1 | AAA |
| Accent | 7.59:1 | AAA |
| Destructive | 7.18:1 | AAA |
Paste this into your globals.css to use Active in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.143 0.032 22.004);
--muted: oklch(0.893 0.023 17.593);
--muted-foreground: oklch(0.381 0.013 17.751);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.143 0.032 22.004);
--card: oklch(1 0 180);
--card-foreground: oklch(0.143 0.032 22.004);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.615 0 180);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.861 0.013 17.4);
--secondary-foreground: oklch(0.338 0.022 18.302);
--accent: oklch(0.777 0.032 17.869);
--accent-foreground: oklch(0.246 0.024 18.912);
--destructive: oklch(0.355 0.108 39.98);
--destructive-foreground: oklch(0.848 0.083 44.227);
--ring: oklch(0.615 0 180);
--chart-1: oklch(0.615 0 180);
--chart-2: oklch(0.861 0.013 17.4);
--chart-3: oklch(0.777 0.032 17.869);
--chart-4: oklch(0.886 0.01 17.35);
--chart-5: oklch(0.609 0.009 17.401);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.974 0.005 17.241);
--muted: oklch(0.222 0.034 20.173);
--muted-foreground: oklch(0.782 0.011 17.391);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.974 0.005 17.241);
--card: oklch(0 0 0);
--card-foreground: oklch(0.974 0.005 17.241);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.615 0 180);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.315 0.01 17.715);
--secondary-foreground: oklch(0.84 0.008 17.315);
--accent: oklch(0.366 0.024 18.332);
--accent-foreground: oklch(0.886 0.01 17.35);
--destructive: oklch(0.695 0.187 41.334);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.615 0 180);
--chart-1: oklch(0.615 0 180);
--chart-2: oklch(0.315 0.01 17.715);
--chart-3: oklch(0.366 0.024 18.332);
--chart-4: oklch(0.344 0.012 17.732);
--chart-5: oklch(0.609 0.009 17.401);
}