Watchmaker for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background20.75:1AAA
Text on card20.75:1AAA
Primary button7.88:1AAA
Secondary button6.78:1AA
Muted text7.36:1AAA
Accent7.50:1AAA
Destructive4.09:1AA Large
Dark mode
Text on background19.97:1AAA
Text on card19.97:1AAA
Primary button7.88:1AAA
Secondary button7.96:1AAA
Muted text8.99:1AAA
Accent8.04:1AAA
Destructive7.42:1AAA

CSS variables

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);
}