Watchmaker is a shadcn/ui theme built around a vivid blue primary color (#123b87) with muted light blue accents (#d5d8dd). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid blue primary (#123b87) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #010204black | #f9f9fbghostwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #010204black | #f9f9fbghostwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #010204black | #f9f9fbghostwhite |
| Primary | #123b87midnightblue | #123b87midnightblue |
| Primary foreground | #d2e0f9lavender | #d2e0f9lavender |
| Secondary | #e7e8e9lavender | #15181eblack |
| Secondary foreground | #4c4e52darkslategray | #a5aec0darkgray |
| Muted | #e8eaedlavender | #121417black |
| Muted foreground | #494a4bdarkslategray | #b4b5b6silver |
| Accent | #d5d8ddgainsboro | #1c2330darkslategray |
| Accent foreground | #393e46darkslategray | #afbad0lightsteelblue |
| Destructive | #d95102chocolate | #fd6e1cdarkorange |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #123b87midnightblue | #123b87midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.75:1 | AAA |
| Text on card | 20.75:1 | AAA |
| Primary button | 7.88:1 | AAA |
| Secondary button | 6.78:1 | AA |
| Muted text | 7.36:1 | AAA |
| Accent | 7.50:1 | AAA |
| Destructive | 4.09:1 | AA Large |
| Text on background | 19.97:1 | AAA |
| Text on card | 19.97:1 | AAA |
| Primary button | 7.88:1 | AAA |
| Secondary button | 7.96:1 | AAA |
| Muted text | 8.99:1 | AAA |
| Accent | 8.04:1 | AAA |
| Destructive | 7.42:1 | AAA |
Paste this into your globals.css to use Watchmaker in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.084 0.013 253.266);
--muted: oklch(0.936 0.004 263.046);
--muted-foreground: oklch(0.408 0.002 263.046);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.084 0.013 253.266);
--card: oklch(1 0 180);
--card-foreground: oklch(0.084 0.013 253.266);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.374 0.135 261.413);
--primary-foreground: oklch(0.903 0.038 262.929);
--secondary: oklch(0.93 0.002 263.05);
--secondary-foreground: oklch(0.424 0.007 263.016);
--accent: oklch(0.88 0.007 263.038);
--accent-foreground: oklch(0.362 0.016 262.923);
--destructive: oklch(0.61 0.184 41.701);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.374 0.135 261.413);
--chart-1: oklch(0.374 0.135 261.413);
--chart-2: oklch(0.93 0.002 263.05);
--chart-3: oklch(0.88 0.007 263.038);
--chart-4: oklch(0.954 0.001 263.052);
--chart-5: oklch(0.374 0.139 261.445);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.983 0.003 263.049);
--muted: oklch(0.19 0.006 262.96);
--muted-foreground: oklch(0.772 0.001 263.05);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.983 0.003 263.049);
--card: oklch(0 0 0);
--card-foreground: oklch(0.983 0.003 263.049);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.374 0.135 261.413);
--primary-foreground: oklch(0.903 0.038 262.929);
--secondary: oklch(0.209 0.013 262.834);
--secondary-foreground: oklch(0.75 0.028 262.947);
--accent: oklch(0.257 0.027 262.587);
--accent-foreground: oklch(0.788 0.033 262.926);
--destructive: oklch(0.704 0.193 44.633);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.374 0.135 261.413);
--chart-1: oklch(0.374 0.135 261.413);
--chart-2: oklch(0.209 0.013 262.834);
--chart-3: oklch(0.257 0.027 262.587);
--chart-4: oklch(0.24 0.016 262.803);
--chart-5: oklch(0.374 0.139 261.445);
}