Chronometer is a shadcn/ui theme built around a muted indigo primary color (#646071) with muted light indigo accents (#c3bfd4). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the muted indigo primary (#646071) on an indigo-tinted background (#06050a).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f8fcghostwhite | #06050ablack |
| Foreground | #070317black | #f9f9fbghostwhite |
| Card | #f9f8fcghostwhite | #06050ablack |
| Card foreground | #070317black | #f9f9fbghostwhite |
| Popover | #f9f8fcghostwhite | #06050ablack |
| Popover foreground | #070317black | #f9f9fbghostwhite |
| Primary | #646071dimgray | #646071dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d3d1dclightgrey | #121118black |
| Secondary foreground | #393545darkslategray | #a6a0bbdarkgray |
| Muted | #e6e5eblavender | #15141ablack |
| Muted foreground | #414045darkslategray | #bbbabfsilver |
| Accent | #c3bfd4silver | #1d1a29black |
| Accent foreground | #2b273adarkslategray | #b1aacasilver |
| Destructive | #7c2e04saddlebrown | #f8691bchocolate |
| Destructive foreground | #fdceb5peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #646071dimgray | #646071dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.13:1 | AAA |
| Text on card | 19.13:1 | AAA |
| Primary button | 6.07:1 | AA |
| Secondary button | 7.86:1 | AAA |
| Muted text | 8.22:1 | AAA |
| Accent | 8.05:1 | AAA |
| Destructive | 6.54:1 | AA |
| Text on background | 19.29:1 | AAA |
| Text on card | 19.29:1 | AAA |
| Primary button | 6.07:1 | AA |
| Secondary button | 7.47:1 | AAA |
| Muted text | 9.47:1 | AAA |
| Accent | 7.71:1 | AAA |
| Destructive | 7.01:1 | AAA |
Paste this into your globals.css to use Chronometer in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.006 296.214);
--foreground: oklch(0.124 0.047 291.721);
--muted: oklch(0.925 0.007 296.183);
--muted-foreground: oklch(0.373 0.009 295.887);
--popover: oklch(0.98 0.006 296.214);
--popover-foreground: oklch(0.124 0.047 291.721);
--card: oklch(0.98 0.006 296.214);
--card-foreground: oklch(0.124 0.047 291.721);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.499 0.027 295.348);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.865 0.015 296.021);
--secondary-foreground: oklch(0.34 0.028 294.805);
--accent: oklch(0.814 0.03 295.652);
--accent-foreground: oklch(0.285 0.035 293.976);
--destructive: oklch(0.408 0.118 42.757);
--destructive-foreground: oklch(0.885 0.063 49.821);
--ring: oklch(0.499 0.027 295.348);
--chart-1: oklch(0.499 0.027 295.348);
--chart-2: oklch(0.865 0.015 296.021);
--chart-3: oklch(0.814 0.03 295.652);
--chart-4: oklch(0.891 0.012 296.088);
--chart-5: oklch(0.492 0.037 294.944);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.013 295.958);
--foreground: oklch(0.982 0.003 296.27);
--muted: oklch(0.196 0.011 295.289);
--muted-foreground: oklch(0.792 0.007 296.158);
--popover: oklch(0.122 0.013 295.958);
--popover-foreground: oklch(0.982 0.003 296.27);
--card: oklch(0.122 0.013 295.958);
--card-foreground: oklch(0.982 0.003 296.27);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.499 0.027 295.348);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.182 0.014 294.885);
--secondary-foreground: oklch(0.718 0.04 295.296);
--accent: oklch(0.227 0.029 293.86);
--accent-foreground: oklch(0.755 0.045 295.22);
--destructive: oklch(0.689 0.193 43.363);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.499 0.027 295.348);
--chart-1: oklch(0.499 0.027 295.348);
--chart-2: oklch(0.182 0.014 294.885);
--chart-3: oklch(0.227 0.029 293.86);
--chart-4: oklch(0.213 0.019 294.683);
--chart-5: oklch(0.492 0.037 294.944);
}