Deputy is a shadcn/ui theme built around a near-black primary color (#030500) with near-black accents (#010500). The light mode uses a neutral background (#fafdf6). Dark mode keeps the near-black primary (#030500) on a neutral background (#050803).
| Token | Light | Dark |
|---|---|---|
| Background | #fafdf6mintcream | #050803black |
| Foreground | #030401black | #fafaf9snow |
| Card | #f8fdf2ivory | #080b04black |
| Card foreground | #000000black | #fcfdfcwhite |
| Popover | #fafdf6mintcream | #050803black |
| Popover foreground | #030401black | #fafaf9snow |
| Primary | #030500black | #030500black |
| Primary foreground | #71be13olivedrab | #71be13olivedrab |
| Secondary | #050400black | #050400black |
| Secondary foreground | #beb613goldenrod | #beb613goldenrod |
| Muted | #e5e5e0gainsboro | #1f1e1ablack |
| Muted foreground | #52524cdarkslategray | #b3b3addarkgray |
| Accent | #010500black | #010500black |
| Accent foreground | #1bbe13limegreen | #1bbe13limegreen |
| Destructive | #9d1301darkred | #fe472ftomato |
| Destructive foreground | #ffd7d1bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #030500black | #030500black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.07:1 | AAA |
| Text on card | 20.27:1 | AAA |
| Primary button | 8.86:1 | AAA |
| Secondary button | 9.64:1 | AAA |
| Muted text | 6.23:1 | AA |
| Accent | 8.24:1 | AAA |
| Destructive | 6.27:1 | AA |
| Text on background | 19.31:1 | AAA |
| Text on card | 19.40:1 | AAA |
| Primary button | 8.86:1 | AAA |
| Secondary button | 9.64:1 | AAA |
| Muted text | 7.90:1 | AAA |
| Accent | 8.24:1 | AAA |
| Destructive | 3.41:1 | AA Large |
Paste this into your globals.css to use Deputy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.01 126.556);
--foreground: oklch(0.101 0.016 125.483);
--muted: oklch(0.921 0.006 104.091);
--muted-foreground: oklch(0.437 0.01 104.344);
--popover: oklch(0.991 0.01 126.556);
--popover-foreground: oklch(0.101 0.016 125.483);
--card: oklch(0.986 0.015 126.621);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.105 0.022 125.14);
--primary-foreground: oklch(0.724 0.199 132.879);
--secondary: oklch(0.108 0.02 107.522);
--secondary-foreground: oklch(0.758 0.159 106.124);
--accent: oklch(0.099 0.027 141.61);
--accent-foreground: oklch(0.698 0.23 142.303);
--destructive: oklch(0.445 0.172 31.061);
--destructive-foreground: oklch(0.911 0.046 26.855);
--ring: oklch(0.105 0.022 125.14);
--chart-1: oklch(0.105 0.022 125.14);
--chart-2: oklch(0.108 0.02 107.522);
--chart-3: oklch(0.099 0.027 141.61);
--chart-4: oklch(0.177 0.033 106.945);
--chart-5: oklch(0.105 0.023 125.101);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.017 125.615);
--foreground: oklch(0.986 0.001 126.447);
--muted: oklch(0.235 0.009 104.603);
--muted-foreground: oklch(0.765 0.008 104.159);
--popover: oklch(0.126 0.017 125.615);
--popover-foreground: oklch(0.986 0.001 126.447);
--card: oklch(0.144 0.019 125.744);
--card-foreground: oklch(0.993 0.001 126.438);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.105 0.022 125.14);
--primary-foreground: oklch(0.724 0.199 132.879);
--secondary: oklch(0.108 0.02 107.522);
--secondary-foreground: oklch(0.758 0.159 106.124);
--accent: oklch(0.099 0.027 141.61);
--accent-foreground: oklch(0.698 0.23 142.303);
--destructive: oklch(0.662 0.223 30.951);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.105 0.022 125.14);
--chart-1: oklch(0.105 0.022 125.14);
--chart-2: oklch(0.108 0.02 107.522);
--chart-3: oklch(0.099 0.027 141.61);
--chart-4: oklch(0.177 0.033 106.945);
--chart-5: oklch(0.105 0.023 125.101);
}