Chronograph is a shadcn/ui theme built around a neutral gray primary color (#302e2c) with muted light orange accents (#e8e5e3). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#302e2c) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #150c05black | #f8f7f6whitesmoke |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #110a04black | #fbfaf9snow |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #110a04black | #fbfaf9snow |
| Primary | #302e2cdarkslategray | #302e2cdarkslategray |
| Primary foreground | #cac7c4silver | #cac7c4silver |
| Secondary | #e8e5e3gainsboro | #302821darkslategray |
| Secondary foreground | #534c46darkslategray | #cdc1b7silver |
| Muted | #e8d8c9gainsboro | #362517black |
| Muted foreground | #696059dimgray | #a69e96darkgray |
| Accent | #e8e5e3gainsboro | #302821darkslategray |
| Accent foreground | #534c46darkslategray | #cdc1b7silver |
| Destructive | #7e0802maroon | #fb1f13red |
| Destructive foreground | #feb7b4lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #302e2cdarkslategray | #302e2cdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.32:1 | AAA |
| Text on card | 19.22:1 | AAA |
| Primary button | 8.05:1 | AAA |
| Secondary button | 6.73:1 | AA |
| Muted text | 4.41:1 | AA Large |
| Accent | 6.73:1 | AA |
| Destructive | 6.59:1 | AA |
| Text on background | 19.62:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 8.05:1 | AAA |
| Secondary button | 8.17:1 | AAA |
| Muted text | 5.54:1 | AA |
| Accent | 8.17:1 | AAA |
| Destructive | 3.94:1 | AA Large |
Paste this into your globals.css to use Chronograph in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.164 0.022 65.499);
--muted: oklch(0.891 0.026 63.702);
--muted-foreground: oklch(0.496 0.016 63.68);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.151 0.019 68.945);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.151 0.019 68.945);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.302 0.005 63.869);
--primary-foreground: oklch(0.83 0.005 64.014);
--secondary: oklch(0.924 0.004 64.036);
--secondary-foreground: oklch(0.422 0.014 63.643);
--accent: oklch(0.924 0.004 64.036);
--accent-foreground: oklch(0.422 0.014 63.643);
--destructive: oklch(0.376 0.149 29.923);
--destructive-foreground: oklch(0.845 0.083 22.353);
--ring: oklch(0.302 0.005 63.869);
--chart-1: oklch(0.302 0.005 63.869);
--chart-2: oklch(0.924 0.004 64.036);
--chart-3: oklch(0.924 0.004 64.036);
--chart-4: oklch(0.947 0.003 64.053);
--chart-5: oklch(0.303 0.008 63.733);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.978 0.002 64.064);
--muted: oklch(0.281 0.035 61.888);
--muted-foreground: oklch(0.703 0.014 63.83);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.985 0.001 64.073);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.985 0.001 64.073);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.302 0.005 63.869);
--primary-foreground: oklch(0.83 0.005 64.014);
--secondary: oklch(0.285 0.017 63.264);
--secondary-foreground: oklch(0.818 0.019 63.782);
--accent: oklch(0.285 0.017 63.264);
--accent-foreground: oklch(0.818 0.019 63.782);
--destructive: oklch(0.629 0.247 29.429);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.302 0.005 63.869);
--chart-1: oklch(0.302 0.005 63.869);
--chart-2: oklch(0.285 0.017 63.264);
--chart-3: oklch(0.285 0.017 63.264);
--chart-4: oklch(0.316 0.019 63.224);
--chart-5: oklch(0.303 0.008 63.733);
}