Dictator is a shadcn/ui theme built around a muted red primary color (#5c4a47) with muted orange accents (#5c5547). The light mode uses a neutral background (#fefbfb). Dark mode keeps the muted red primary (#5c4a47) on a red-tinted background (#0b0605).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #0b0605black |
| Foreground | #040101black | #fbf9f9snow |
| Card | #fefbfbsnow | #0b0605black |
| Card foreground | #040101black | #fbf9f9snow |
| Popover | #fefbfbsnow | #0b0605black |
| Popover foreground | #040101black | #fbf9f9snow |
| Primary | #5c4a47darkolivegreen | #5c4a47darkolivegreen |
| Primary foreground | #ede9e8linen | #ede9e8linen |
| Secondary | #5c474edimgray | #5c474edimgray |
| Secondary foreground | #ede8ealinen | #ede8ealinen |
| Muted | #ecdfe4gainsboro | #201318black |
| Muted foreground | #47393edarkslategray | #c6b8bdsilver |
| Accent | #5c5547darkolivegreen | #5c5547darkolivegreen |
| Accent foreground | #edebe8linen | #edebe8linen |
| Destructive | #cd1e0efirebrick | #ee2311orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5c4a47darkolivegreen | #5c4a47darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.25:1 | AAA |
| Text on card | 20.25:1 | AAA |
| Primary button | 6.87:1 | AA |
| Secondary button | 7.01:1 | AAA |
| Muted text | 8.45:1 | AAA |
| Accent | 6.21:1 | AA |
| Destructive | 5.53:1 | AA |
| Text on background | 19.25:1 | AAA |
| Text on card | 19.25:1 | AAA |
| Primary button | 6.87:1 | AA |
| Secondary button | 7.01:1 | AAA |
| Muted text | 9.40:1 | AAA |
| Accent | 6.21:1 | AA |
| Destructive | 4.28:1 | AA Large |
Paste this into your globals.css to use Dictator in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 29.477);
--foreground: oklch(0.086 0.013 36.321);
--muted: oklch(0.916 0.014 354.026);
--muted-foreground: oklch(0.36 0.021 355.212);
--popover: oklch(0.991 0.003 29.477);
--popover-foreground: oklch(0.086 0.013 36.321);
--card: oklch(0.991 0.003 29.477);
--card-foreground: oklch(0.086 0.013 36.321);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.427 0.025 29.793);
--primary-foreground: oklch(0.937 0.005 29.486);
--secondary: oklch(0.423 0.031 355.597);
--secondary-foreground: oklch(0.935 0.006 353.765);
--accent: oklch(0.452 0.024 82.981);
--accent-foreground: oklch(0.942 0.005 83.06);
--destructive: oklch(0.543 0.208 30.093);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.427 0.025 29.793);
--chart-1: oklch(0.427 0.025 29.793);
--chart-2: oklch(0.423 0.031 355.597);
--chart-3: oklch(0.452 0.024 82.981);
--chart-4: oklch(0.45 0.033 355.623);
--chart-5: oklch(0.426 0.031 29.91);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.011 33.117);
--foreground: oklch(0.984 0.001 29.473);
--muted: oklch(0.206 0.022 356.422);
--muted-foreground: oklch(0.796 0.017 354.189);
--popover: oklch(0.127 0.011 33.117);
--popover-foreground: oklch(0.984 0.001 29.473);
--card: oklch(0.127 0.011 33.117);
--card-foreground: oklch(0.984 0.001 29.473);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.427 0.025 29.793);
--primary-foreground: oklch(0.937 0.005 29.486);
--secondary: oklch(0.423 0.031 355.597);
--secondary-foreground: oklch(0.935 0.006 353.765);
--accent: oklch(0.452 0.024 82.981);
--accent-foreground: oklch(0.942 0.005 83.06);
--destructive: oklch(0.608 0.234 30.09);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.427 0.025 29.793);
--chart-1: oklch(0.427 0.025 29.793);
--chart-2: oklch(0.423 0.031 355.597);
--chart-3: oklch(0.452 0.024 82.981);
--chart-4: oklch(0.45 0.033 355.623);
--chart-5: oklch(0.426 0.031 29.91);
}