Anarchy is a shadcn/ui theme built around a muted deep pink primary color (#3f2733) with muted pink accents (#c1aeb8). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep pink primary (#3f2733) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #11030ablack | #ffffffwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #0d0208black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #11030ablack | #ffffffwhite |
| Primary | #3f2733darkslategray | #3f2733darkslategray |
| Primary foreground | #d8c0ccthistle | #d8c0ccthistle |
| Secondary | #cecacclightgrey | #181114black |
| Secondary foreground | #353133darkslategray | #bba0addarkgray |
| Muted | #e7d5degainsboro | #2a1821black |
| Muted foreground | #484245darkslategray | #bdb7basilver |
| Accent | #c1aeb8silver | #2f1e26darkslategray |
| Accent foreground | #231b1fblack | #cdb1bfsilver |
| Destructive | #d3450dchocolate | #f04f0forangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3f2733darkslategray | #3f2733darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.16:1 | AAA |
| Text on card | 19.96:1 | AAA |
| Primary button | 7.94:1 | AAA |
| Secondary button | 7.91:1 | AAA |
| Muted text | 6.98:1 | AA |
| Accent | 8.03:1 | AAA |
| Destructive | 4.53:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.94:1 | AAA |
| Secondary button | 7.74:1 | AAA |
| Muted text | 8.49:1 | AAA |
| Accent | 7.98:1 | AAA |
| Destructive | 3.61:1 | AA Large |
Paste this into your globals.css to use Anarchy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.133 0.034 347.412);
--muted: oklch(0.89 0.023 345.807);
--muted-foreground: oklch(0.386 0.009 345.724);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.133 0.034 347.412);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.119 0.03 345.459);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.307 0.04 348.293);
--primary-foreground: oklch(0.832 0.031 346.083);
--secondary: oklch(0.843 0.004 345.267);
--secondary-foreground: oklch(0.319 0.005 345.555);
--accent: oklch(0.77 0.025 345.964);
--accent-foreground: oklch(0.232 0.014 346.7);
--destructive: oklch(0.587 0.187 37.861);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.307 0.04 348.293);
--chart-1: oklch(0.307 0.04 348.293);
--chart-2: oklch(0.843 0.004 345.267);
--chart-3: oklch(0.77 0.025 345.964);
--chart-4: oklch(0.867 0.003 345.245);
--chart-5: oklch(0.306 0.045 348.706);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.237 0.032 348.457);
--muted-foreground: oklch(0.786 0.007 345.384);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.307 0.04 348.293);
--primary-foreground: oklch(0.832 0.031 346.083);
--secondary: oklch(0.188 0.013 346.902);
--secondary-foreground: oklch(0.733 0.038 346.436);
--accent: oklch(0.259 0.03 347.953);
--accent-foreground: oklch(0.789 0.037 346.337);
--destructive: oklch(0.645 0.207 37.69);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.307 0.04 348.293);
--chart-1: oklch(0.307 0.04 348.293);
--chart-2: oklch(0.188 0.013 346.902);
--chart-3: oklch(0.259 0.03 347.953);
--chart-4: oklch(0.22 0.018 347.121);
--chart-5: oklch(0.306 0.045 348.706);
}