Quarterly is a shadcn/ui theme built around a deep red primary color (#281715) with deep orange accents (#282115). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the deep red primary (#281715) on a red-tinted background (#100604).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7f7snow | #100604black |
| Foreground | #140705black | #ffffffwhite |
| Card | #fcf4f3lavenderblush | #140706black |
| Card foreground | #100604black | #ffffffwhite |
| Popover | #fdf7f7snow | #100604black |
| Popover foreground | #140705black | #ffffffwhite |
| Primary | #281715black | #281715black |
| Primary foreground | #cea6a1tan | #cea6a1tan |
| Secondary | #28151cblack | #28151cblack |
| Secondary foreground | #cea1b2silver | #cea1b2silver |
| Muted | #e1dbddgainsboro | #241e20black |
| Muted foreground | #423e3fdarkslategray | #c1bdbfsilver |
| Accent | #282115black | #282115black |
| Accent foreground | #cebda1tan | #cebda1tan |
| Destructive | #6f120cmaroon | #eb4d42tomato |
| Destructive foreground | #f7bab5lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #281715black | #281715black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.71:1 | AAA |
| Text on card | 18.41:1 | AAA |
| Primary button | 7.82:1 | AAA |
| Secondary button | 7.70:1 | AAA |
| Muted text | 7.70:1 | AAA |
| Accent | 8.65:1 | AAA |
| Destructive | 7.16:1 | AAA |
| Text on background | 20.01:1 | AAA |
| Text on card | 19.74:1 | AAA |
| Primary button | 7.82:1 | AAA |
| Secondary button | 7.70:1 | AAA |
| Muted text | 8.79:1 | AAA |
| Accent | 8.65:1 | AAA |
| Destructive | 3.69:1 | AA Large |
Paste this into your globals.css to use Quarterly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.006 26.482);
--foreground: oklch(0.15 0.024 30.468);
--muted: oklch(0.896 0.007 351.82);
--muted-foreground: oklch(0.368 0.006 352.036);
--popover: oklch(0.982 0.006 26.482);
--popover-foreground: oklch(0.15 0.024 30.468);
--card: oklch(0.972 0.009 26.505);
--card-foreground: oklch(0.137 0.021 31.2);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.228 0.029 27.774);
--primary-foreground: oklch(0.76 0.048 26.996);
--secondary: oklch(0.225 0.034 355.666);
--secondary-foreground: oklch(0.755 0.059 353.701);
--accent: oklch(0.252 0.024 79.177);
--accent-foreground: oklch(0.805 0.043 79.701);
--destructive: oklch(0.352 0.127 29.324);
--destructive-foreground: oklch(0.843 0.072 23.367);
--ring: oklch(0.228 0.029 27.774);
--chart-1: oklch(0.228 0.029 27.774);
--chart-2: oklch(0.225 0.034 355.666);
--chart-3: oklch(0.252 0.024 79.177);
--chart-4: oklch(0.255 0.041 355.953);
--chart-5: oklch(0.227 0.031 27.953);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.021 31.071);
--foreground: oklch(1 0 180);
--muted: oklch(0.244 0.01 352.738);
--muted-foreground: oklch(0.803 0.005 351.76);
--popover: oklch(0.137 0.021 31.071);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.15 0.024 30.338);
--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.228 0.029 27.774);
--primary-foreground: oklch(0.76 0.048 26.996);
--secondary: oklch(0.225 0.034 355.666);
--secondary-foreground: oklch(0.755 0.059 353.701);
--accent: oklch(0.252 0.024 79.177);
--accent-foreground: oklch(0.805 0.043 79.701);
--destructive: oklch(0.639 0.196 28.031);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.228 0.029 27.774);
--chart-1: oklch(0.228 0.029 27.774);
--chart-2: oklch(0.225 0.034 355.666);
--chart-3: oklch(0.252 0.024 79.177);
--chart-4: oklch(0.255 0.041 355.953);
--chart-5: oklch(0.227 0.031 27.953);
}