Reform for shadcn/ui

Reform is a shadcn/ui theme built around a vivid blue primary color (#051db8) with vivid green accents (#1db805). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the vivid blue primary (#051db8) on a blue-tinted background (#05060f).

Color palette

TokenLightDark
Background
#fbfbfeghostwhite
#05060fblack
Foreground
#040511black
#ffffffwhite
Card
#fbfbfeghostwhite
#05060fblack
Card foreground
#040511black
#ffffffwhite
Popover
#fbfbfeghostwhite
#05060fblack
Popover foreground
#040511black
#ffffffwhite
Primary
#051db8mediumblue
#051db8mediumblue
Primary foreground
#f0f2ffaliceblue
#f0f2ffaliceblue
Secondary
#b8051dfirebrick
#b8051dfirebrick
Secondary foreground
#fff0f2lavenderblush
#fff0f2lavenderblush
Muted
#ede8e9linen
#171212black
Muted foreground
#5b5758dimgray
#a8a4a4darkgray
Accent
#1db805forestgreen
#1db805forestgreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#9d1e0bfirebrick
#ee2e11orangered
Destructive foreground
#fde2demistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#051db8mediumblue
#051db8mediumblue

Contrast

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

Light mode
Text on background19.65:1AAA
Text on card19.65:1AAA
Primary button10.07:1AAA
Secondary button6.17:1AA
Muted text5.87:1AA
Accent2.65:1Fail
Destructive6.49:1AA
Dark mode
Text on background20.15:1AAA
Text on card20.15:1AAA
Primary button10.07:1AAA
Secondary button6.17:1AA
Muted text7.52:1AAA
Accent2.65:1Fail
Destructive4.15:1AA Large

CSS variables

Paste this into your globals.css to use Reform in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.004 279.278);
  --foreground: oklch(0.123 0.028 271.848);
  --muted: oklch(0.935 0.006 7.901);
  --muted-foreground: oklch(0.462 0.005 7.996);
  --popover: oklch(0.989 0.004 279.278);
  --popover-foreground: oklch(0.123 0.028 271.848);
  --card: oklch(0.989 0.004 279.278);
  --card-foreground: oklch(0.123 0.028 271.848);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.374 0.231 264.755);
  --primary-foreground: oklch(0.963 0.017 279.071);
  --secondary: oklch(0.494 0.198 25.199);
  --secondary-foreground: oklch(0.967 0.016 8.15);
  --accent: oklch(0.68 0.227 141.86);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.453 0.165 31.518);
  --destructive-foreground: oklch(0.933 0.03 28.13);
  --ring: oklch(0.374 0.231 264.755);
  --chart-1: oklch(0.374 0.231 264.755);
  --chart-2: oklch(0.494 0.198 25.199);
  --chart-3: oklch(0.68 0.227 141.86);
  --chart-4: oklch(0.524 0.211 25.361);
  --chart-5: oklch(0.375 0.236 264.427);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.129 0.021 274.357);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.188 0.009 8.896);
  --muted-foreground: oklch(0.722 0.004 7.89);
  --popover: oklch(0.129 0.021 274.357);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.129 0.021 274.357);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.374 0.231 264.755);
  --primary-foreground: oklch(0.963 0.017 279.071);
  --secondary: oklch(0.494 0.198 25.199);
  --secondary-foreground: oklch(0.967 0.016 8.15);
  --accent: oklch(0.68 0.227 141.86);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.614 0.229 31.372);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.374 0.231 264.755);
  --chart-1: oklch(0.374 0.231 264.755);
  --chart-2: oklch(0.494 0.198 25.199);
  --chart-3: oklch(0.68 0.227 141.86);
  --chart-4: oklch(0.524 0.211 25.361);
  --chart-5: oklch(0.375 0.236 264.427);
}