Boulder for shadcn/ui

Boulder is a shadcn/ui theme built around a near-white primary color (#ffffff) with muted light red accents (#e5dcdc). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the near-white primary (#ffffff) on a neutral background (#080202).

Color palette

TokenLightDark
Background
#fdf7f7snow
#080202black
Foreground
#080202black
#faf5f5whitesmoke
Card
#fcf3f3lavenderblush
#0c0303black
Card foreground
#040101black
#fbf8f8snow
Popover
#fdf7f7snow
#080202black
Popover foreground
#080202black
#faf5f5whitesmoke
Primary
#ffffffwhite
#ffffffwhite
Primary foreground
#333333darkslategray
#333333darkslategray
Secondary
#e5dcdcgainsboro
#3d2929darkslategray
Secondary foreground
#523d3ddarkslategray
#d6c2c2silver
Muted
#e7dfdfgainsboro
#201818black
Muted foreground
#4f4545darkslategray
#bab0b0darkgray
Accent
#e5dcdcgainsboro
#3d2929darkslategray
Accent foreground
#523d3ddarkslategray
#d6c2c2silver
Destructive
#a6120cfirebrick
#e41811red
Destructive foreground
#fde8e7mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ffffffwhite
#ffffffwhite

Contrast

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

Light mode
Text on background19.40:1AAA
Text on card19.02:1AAA
Primary button12.63:1AAA
Secondary button7.44:1AAA
Muted text7.05:1AAA
Accent7.44:1AAA
Destructive6.59:1AA
Dark mode
Text on background19.05:1AAA
Text on card19.29:1AAA
Primary button12.63:1AAA
Secondary button7.96:1AAA
Muted text8.22:1AAA
Accent7.96:1AAA
Destructive4.74:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.007 17.27);
  --foreground: oklch(0.103 0.019 20.892);
  --muted: oklch(0.91 0.009 17.314);
  --muted-foreground: oklch(0.4 0.014 17.758);
  --popover: oklch(0.98 0.007 17.27);
  --popover-foreground: oklch(0.103 0.019 20.892);
  --card: oklch(0.97 0.01 17.33);
  --card-foreground: oklch(0.082 0.015 20.892);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(1 0 180);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(0.901 0.01 17.343);
  --secondary-foreground: oklch(0.382 0.03 18.566);
  --accent: oklch(0.901 0.01 17.343);
  --accent-foreground: oklch(0.382 0.03 18.566);
  --destructive: oklch(0.462 0.18 28.994);
  --destructive-foreground: oklch(0.948 0.023 19.958);
  --ring: oklch(1 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(0.901 0.01 17.343);
  --chart-3: oklch(0.901 0.01 17.343);
  --chart-4: oklch(0.926 0.007 17.292);
  --chart-5: oklch(1 0 180);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.103 0.019 20.998);
  --foreground: oklch(0.974 0.005 17.239);
  --muted: oklch(0.219 0.013 18.159);
  --muted-foreground: oklch(0.765 0.012 17.416);
  --popover: oklch(0.103 0.019 20.998);
  --popover-foreground: oklch(0.974 0.005 17.239);
  --card: oklch(0.118 0.022 21.037);
  --card-foreground: oklch(0.983 0.003 17.211);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(1 0 180);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(0.305 0.029 18.887);
  --secondary-foreground: oklch(0.831 0.022 17.602);
  --accent: oklch(0.305 0.029 18.887);
  --accent-foreground: oklch(0.831 0.022 17.602);
  --destructive: oklch(0.583 0.23 29.124);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(1 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(0.305 0.029 18.887);
  --chart-3: oklch(0.305 0.029 18.887);
  --chart-4: oklch(0.333 0.033 18.948);
  --chart-5: oklch(1 0 180);
}