Stopwatch is a shadcn/ui theme built around a vivid light green primary color (#b2ff94) with vivid light violet accents (#e194ff). The light mode uses a neutral background (#fcfdfb). Dark mode keeps the vivid light green primary (#b2ff94) on a neutral background (#020402).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfbsnow | #020402black |
| Foreground | #040902black | #f9fbf9mintcream |
| Card | #fcfdfbsnow | #020402black |
| Card foreground | #040902black | #f9fbf9mintcream |
| Popover | #fcfdfbsnow | #020402black |
| Popover foreground | #040902black | #f9fbf9mintcream |
| Primary | #b2ff94palegreen | #b2ff94palegreen |
| Primary foreground | #1b6100darkgreen | #1b6100darkgreen |
| Secondary | #e194ffviolet | #e194ffviolet |
| Secondary foreground | #450061indigo | #450061indigo |
| Muted | #e3d2eagainsboro | #26152dblack |
| Muted foreground | #49454adarkslategray | #b9b5basilver |
| Accent | #e194ffviolet | #e194ffviolet |
| Accent foreground | #450061indigo | #450061indigo |
| Destructive | #c21414firebrick | #e82121crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b2ff94palegreen | #b2ff94palegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.75:1 | AAA |
| Text on card | 19.75:1 | AAA |
| Primary button | 6.39:1 | AA |
| Secondary button | 6.91:1 | AA |
| Muted text | 6.56:1 | AA |
| Accent | 6.91:1 | AA |
| Destructive | 6.17:1 | AA |
| Text on background | 19.81:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 6.39:1 | AA |
| Secondary button | 6.91:1 | AA |
| Muted text | 8.43:1 | AAA |
| Accent | 6.91:1 | AA |
| Destructive | 4.49:1 | AA Large |
Paste this into your globals.css to use Stopwatch in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 136.618);
--foreground: oklch(0.127 0.026 134.561);
--muted: oklch(0.885 0.037 316.486);
--muted-foreground: oklch(0.395 0.011 316.528);
--popover: oklch(0.994 0.003 136.618);
--popover-foreground: oklch(0.127 0.026 134.561);
--card: oklch(0.994 0.003 136.618);
--card-foreground: oklch(0.127 0.026 134.561);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.926 0.158 137.305);
--primary-foreground: oklch(0.432 0.138 139.668);
--secondary: oklch(0.781 0.166 315.897);
--secondary-foreground: oklch(0.298 0.149 312.24);
--accent: oklch(0.781 0.166 315.897);
--accent-foreground: oklch(0.298 0.149 312.24);
--destructive: oklch(0.518 0.203 28.221);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.926 0.158 137.305);
--chart-1: oklch(0.926 0.158 137.305);
--chart-2: oklch(0.781 0.166 315.897);
--chart-3: oklch(0.781 0.166 315.897);
--chart-4: oklch(0.81 0.143 316.05);
--chart-5: oklch(0.929 0.162 137.332);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.012 135.379);
--foreground: oklch(0.986 0.003 136.619);
--muted: oklch(0.232 0.05 315.88);
--muted-foreground: oklch(0.777 0.009 316.574);
--popover: oklch(0.097 0.012 135.379);
--popover-foreground: oklch(0.986 0.003 136.619);
--card: oklch(0.097 0.012 135.379);
--card-foreground: oklch(0.986 0.003 136.619);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.926 0.158 137.305);
--primary-foreground: oklch(0.432 0.138 139.668);
--secondary: oklch(0.781 0.166 315.897);
--secondary-foreground: oklch(0.298 0.149 312.24);
--accent: oklch(0.781 0.166 315.897);
--accent-foreground: oklch(0.298 0.149 312.24);
--destructive: oklch(0.596 0.228 27.812);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.926 0.158 137.305);
--chart-1: oklch(0.926 0.158 137.305);
--chart-2: oklch(0.781 0.166 315.897);
--chart-3: oklch(0.781 0.166 315.897);
--chart-4: oklch(0.81 0.143 316.05);
--chart-5: oklch(0.929 0.162 137.332);
}