Agonizing is a shadcn/ui theme built around a yellow primary color (#7b6624) with muted light yellow accents (#ddd7c5). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the yellow primary (#7b6624) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbf8snow | #000000black |
| Foreground | #050401black | #ffffffwhite |
| Card | #faf9f4whitesmoke | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfbf8snow | #000000black |
| Popover foreground | #050401black | #ffffffwhite |
| Primary | #7b6624darkolivegreen | #7b6624darkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e4e1d8gainsboro | #1b1913black |
| Secondary foreground | #514b38darkolivegreen | #bfb8a1darkgray |
| Muted | #e5e3dcgainsboro | #23211ablack |
| Muted foreground | #575757dimgray | #a8a8a8darkgray |
| Accent | #ddd7c5lightgrey | #373220darkslategray |
| Accent foreground | #47402adarkolivegreen | #d4cdb5silver |
| Destructive | #e24e03orangered | #fb5d0eorangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7b6624darkolivegreen | #7b6624darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.79:1 | AAA |
| Text on card | 19.92:1 | AAA |
| Primary button | 5.57:1 | AA |
| Secondary button | 6.65:1 | AA |
| Muted text | 5.62:1 | AA |
| Accent | 7.20:1 | AAA |
| Destructive | 3.94:1 | AA Large |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 5.57:1 | AA |
| Secondary button | 8.83:1 | AAA |
| Muted text | 6.75:1 | AA |
| Accent | 8.08:1 | AAA |
| Destructive | 6.68:1 | AA |
Paste this into your globals.css to use Agonizing in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.004 92.697);
--foreground: oklch(0.103 0.017 98.954);
--muted: oklch(0.916 0.01 92.766);
--muted-foreground: oklch(0.456 0 180);
--popover: oklch(0.988 0.004 92.697);
--popover-foreground: oklch(0.103 0.017 98.954);
--card: oklch(0.982 0.006 92.717);
--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.518 0.088 91.9);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.909 0.013 92.79);
--secondary-foreground: oklch(0.415 0.031 93.155);
--accent: oklch(0.88 0.025 92.915);
--accent-foreground: oklch(0.372 0.037 93.158);
--destructive: oklch(0.621 0.196 39.484);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.518 0.088 91.9);
--chart-1: oklch(0.518 0.088 91.9);
--chart-2: oklch(0.909 0.013 92.79);
--chart-3: oklch(0.88 0.025 92.915);
--chart-4: oklch(0.931 0.01 92.758);
--chart-5: oklch(0.523 0.091 91.673);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.249 0.014 93.091);
--muted-foreground: oklch(0.733 0 180);
--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.518 0.088 91.9);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.215 0.013 93.108);
--secondary-foreground: oklch(0.782 0.033 93.007);
--accent: oklch(0.316 0.031 93.162);
--accent-foreground: oklch(0.847 0.034 92.995);
--destructive: oklch(0.679 0.207 40.503);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.518 0.088 91.9);
--chart-1: oklch(0.518 0.088 91.9);
--chart-2: oklch(0.215 0.013 93.108);
--chart-3: oklch(0.316 0.031 93.162);
--chart-4: oklch(0.251 0.017 93.131);
--chart-5: oklch(0.523 0.091 91.673);
}