Saddle for shadcn/ui

Saddle is a shadcn/ui theme built around a near-white primary color (#f2f2f2) with near-white accents (#f2f2f2). The light mode uses a neutral background (#fefbfe). Dark mode keeps the near-white primary (#f2f2f2) on a neutral background (#070406).

Color palette

TokenLightDark
Background
#fefbfewhite
#070406black
Foreground
#0c030bblack
#fdfcfdwhite
Card
#fefbfewhite
#070406black
Card foreground
#0c030bblack
#fdfcfdwhite
Popover
#fefbfewhite
#070406black
Popover foreground
#0c030bblack
#fdfcfdwhite
Primary
#f2f2f2whitesmoke
#f2f2f2whitesmoke
Primary foreground
#5a585adimgray
#5a585adimgray
Secondary
#f2f2f2whitesmoke
#f2f2f2whitesmoke
Secondary foreground
#585a59dimgray
#585a59dimgray
Muted
#e8f2eahoneydew
#0d170eblack
Muted foreground
#506d54dimgray
#92af96darkseagreen
Accent
#f2f2f2whitesmoke
#f2f2f2whitesmoke
Accent foreground
#585a59dimgray
#585a59dimgray
Destructive
#6d0303maroon
#f91515red
Destructive foreground
#fda5a5lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f2f2f2whitesmoke
#f2f2f2whitesmoke

Contrast

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

Light mode
Text on background19.75:1AAA
Text on card19.75:1AAA
Primary button6.30:1AA
Secondary button6.22:1AA
Muted text5.01:1AA
Accent6.22:1AA
Destructive6.65:1AA
Dark mode
Text on background19.98:1AAA
Text on card19.98:1AAA
Primary button6.30:1AA
Secondary button6.22:1AA
Muted text7.69:1AAA
Accent6.22:1AA
Destructive4.07:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.005 329.75);
  --foreground: oklch(0.123 0.029 331.204);
  --muted: oklch(0.951 0.015 149.487);
  --muted-foreground: oklch(0.503 0.051 148.339);
  --popover: oklch(0.991 0.005 329.75);
  --popover-foreground: oklch(0.123 0.029 331.204);
  --card: oklch(0.991 0.005 329.75);
  --card-foreground: oklch(0.123 0.029 331.204);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.962 0 329.689);
  --primary-foreground: oklch(0.464 0.003 329.772);
  --secondary: oklch(0.962 0 149.679);
  --secondary-foreground: oklch(0.466 0.003 149.595);
  --accent: oklch(0.962 0 149.679);
  --accent-foreground: oklch(0.466 0.003 149.595);
  --destructive: oklch(0.339 0.136 28.794);
  --destructive-foreground: oklch(0.809 0.104 19.57);
  --ring: oklch(0.962 0 329.689);
  --chart-1: oklch(0.962 0 329.689);
  --chart-2: oklch(0.962 0 149.679);
  --chart-3: oklch(0.962 0 149.679);
  --chart-4: oklch(0.985 0 149.682);
  --chart-5: oklch(0.961 0.002 329.704);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.112 0.013 330.315);
  --foreground: oklch(0.992 0.002 329.713);
  --muted: oklch(0.19 0.022 148.13);
  --muted-foreground: oklch(0.725 0.047 148.848);
  --popover: oklch(0.112 0.013 330.315);
  --popover-foreground: oklch(0.992 0.002 329.713);
  --card: oklch(0.112 0.013 330.315);
  --card-foreground: oklch(0.992 0.002 329.713);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.962 0 329.689);
  --primary-foreground: oklch(0.464 0.003 329.772);
  --secondary: oklch(0.962 0 149.679);
  --secondary-foreground: oklch(0.466 0.003 149.595);
  --accent: oklch(0.962 0 149.679);
  --accent-foreground: oklch(0.466 0.003 149.595);
  --destructive: oklch(0.622 0.248 28.6);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.962 0 329.689);
  --chart-1: oklch(0.962 0 329.689);
  --chart-2: oklch(0.962 0 149.679);
  --chart-3: oklch(0.962 0 149.679);
  --chart-4: oklch(0.985 0 149.682);
  --chart-5: oklch(0.961 0.002 329.704);
}