Conspirator is a shadcn/ui theme built around a near-black primary color (#20231f) with near-black accents (#1f2320). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the near-black primary (#20231f) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfcwhite | #000000black |
| Foreground | #061203black | #f9fcf8mintcream |
| Card | #f9fbf8mintcream | #030303black |
| Card foreground | #050d02black | #fcfdfbsnow |
| Popover | #fcfdfcwhite | #000000black |
| Popover foreground | #061203black | #f9fcf8mintcream |
| Primary | #20231fblack | #20231fblack |
| Primary foreground | #b8beb6silver | #b8beb6silver |
| Secondary | #22231fblack | #22231fblack |
| Secondary foreground | #bcbeb6silver | #bcbeb6silver |
| Muted | #e1e6d6gainsboro | #252919black |
| Muted foreground | #575757dimgray | #a8a8a8darkgray |
| Accent | #1f2320black | #1f2320black |
| Accent foreground | #b6beb8silver | #b6beb8silver |
| Destructive | #a73e01saddlebrown | #fe6b16darkorange |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #20231fblack | #20231fblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.82:1 | AAA |
| Text on card | 19.01:1 | AAA |
| Primary button | 8.37:1 | AAA |
| Secondary button | 8.40:1 | AAA |
| Muted text | 5.68:1 | AA |
| Accent | 8.35:1 | AAA |
| Destructive | 6.28:1 | AA |
| Text on background | 20.30:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 8.37:1 | AAA |
| Secondary button | 8.40:1 | AAA |
| Muted text | 6.24:1 | AA |
| Accent | 8.35:1 | AAA |
| Destructive | 7.31:1 | AAA |
Paste this into your globals.css to use Conspirator in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 138.891);
--foreground: oklch(0.163 0.037 137.366);
--muted: oklch(0.917 0.023 119.729);
--muted-foreground: oklch(0.456 0 180);
--popover: oklch(0.993 0.002 138.891);
--popover-foreground: oklch(0.163 0.037 137.366);
--card: oklch(0.987 0.005 138.892);
--card-foreground: oklch(0.145 0.032 136.864);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.252 0.009 138.905);
--primary-foreground: oklch(0.795 0.014 138.897);
--secondary: oklch(0.254 0.007 119.812);
--secondary-foreground: oklch(0.798 0.012 119.557);
--accent: oklch(0.252 0.008 154.605);
--accent-foreground: oklch(0.794 0.012 154.905);
--destructive: oklch(0.505 0.151 42.339);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.252 0.009 138.905);
--chart-1: oklch(0.252 0.009 138.905);
--chart-2: oklch(0.254 0.007 119.812);
--chart-3: oklch(0.252 0.008 154.605);
--chart-4: oklch(0.287 0.009 119.841);
--chart-5: oklch(0.254 0.013 138.913);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.987 0.006 138.893);
--muted: oklch(0.273 0.03 121.251);
--muted-foreground: oklch(0.733 0 180);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.987 0.006 138.893);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.994 0.003 138.892);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.252 0.009 138.905);
--primary-foreground: oklch(0.795 0.014 138.897);
--secondary: oklch(0.254 0.007 119.812);
--secondary-foreground: oklch(0.798 0.012 119.557);
--accent: oklch(0.252 0.008 154.605);
--accent-foreground: oklch(0.794 0.012 154.905);
--destructive: oklch(0.701 0.198 43.861);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.252 0.009 138.905);
--chart-1: oklch(0.252 0.009 138.905);
--chart-2: oklch(0.254 0.007 119.812);
--chart-3: oklch(0.252 0.008 154.605);
--chart-4: oklch(0.287 0.009 119.841);
--chart-5: oklch(0.254 0.013 138.913);
}