Stopwatch is a shadcn/ui theme built around a near-black primary color (#09040c) with near-black accents (#060c04). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the near-black primary (#09040c) on a violet-tinted background (#09050b).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #09050bblack |
| Foreground | #030104black | #fbf8fcghostwhite |
| Card | #fdfbfewhite | #09050bblack |
| Card foreground | #030104black | #fbf8fcghostwhite |
| Popover | #fdfbfewhite | #09050bblack |
| Popover foreground | #030104black | #fbf8fcghostwhite |
| Primary | #09040cblack | #09040cblack |
| Primary foreground | #b771d1mediumorchid | #b771d1mediumorchid |
| Secondary | #060c04black | #060c04black |
| Secondary foreground | #54a636olivedrab | #54a636olivedrab |
| Muted | #dce1dagainsboro | #1f251eblack |
| Muted foreground | #61705cdimgray | #94a38fdarkseagreen |
| Accent | #060c04black | #060c04black |
| Accent foreground | #54a636olivedrab | #54a636olivedrab |
| Destructive | #7b1a09maroon | #ed3312orangered |
| Destructive foreground | #fac6bdpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #09040cblack | #09040cblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.22:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 6.09:1 | AA |
| Secondary button | 6.49:1 | AA |
| Muted text | 3.99:1 | AA Large |
| Accent | 6.49:1 | AA |
| Destructive | 6.93:1 | AA |
| Text on background | 19.22:1 | AAA |
| Text on card | 19.22:1 | AAA |
| Primary button | 6.09:1 | AA |
| Secondary button | 6.49:1 | AA |
| Muted text | 5.89:1 | AA |
| Accent | 6.49:1 | AA |
| Destructive | 4.13:1 | AA Large |
Paste this into your globals.css to use Stopwatch in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 317.18);
--foreground: oklch(0.084 0.018 319.004);
--muted: oklch(0.905 0.011 137.219);
--muted-foreground: oklch(0.527 0.036 137.362);
--popover: oklch(0.991 0.004 317.18);
--popover-foreground: oklch(0.084 0.018 319.004);
--card: oklch(0.991 0.004 317.18);
--card-foreground: oklch(0.084 0.018 319.004);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.122 0.024 318.724);
--primary-foreground: oklch(0.659 0.156 316.522);
--secondary: oklch(0.142 0.022 135.727);
--secondary-foreground: oklch(0.648 0.168 138.535);
--accent: oklch(0.142 0.022 135.727);
--accent-foreground: oklch(0.648 0.168 138.535);
--destructive: oklch(0.384 0.134 32.232);
--destructive-foreground: oklch(0.87 0.061 29.886);
--ring: oklch(0.122 0.024 318.724);
--chart-1: oklch(0.122 0.024 318.724);
--chart-2: oklch(0.142 0.022 135.727);
--chart-3: oklch(0.142 0.022 135.727);
--chart-4: oklch(0.189 0.035 137.57);
--chart-5: oklch(0.121 0.026 318.783);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.018 318.433);
--foreground: oklch(0.983 0.005 317.178);
--muted: oklch(0.256 0.015 137.34);
--muted-foreground: oklch(0.698 0.034 137.307);
--popover: oklch(0.125 0.018 318.433);
--popover-foreground: oklch(0.983 0.005 317.178);
--card: oklch(0.125 0.018 318.433);
--card-foreground: oklch(0.983 0.005 317.178);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.122 0.024 318.724);
--primary-foreground: oklch(0.659 0.156 316.522);
--secondary: oklch(0.142 0.022 135.727);
--secondary-foreground: oklch(0.648 0.168 138.535);
--accent: oklch(0.142 0.022 135.727);
--accent-foreground: oklch(0.648 0.168 138.535);
--destructive: oklch(0.615 0.225 31.938);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.122 0.024 318.724);
--chart-1: oklch(0.122 0.024 318.724);
--chart-2: oklch(0.142 0.022 135.727);
--chart-3: oklch(0.142 0.022 135.727);
--chart-4: oklch(0.189 0.035 137.57);
--chart-5: oklch(0.121 0.026 318.783);
}