Boulder for shadcn/ui

Boulder is a shadcn/ui theme built around a light teal primary color (#bfe3db) with light red accents (#e3bfc7). The light mode uses a neutral background (#ffffff). Dark mode keeps the light teal primary (#bfe3db) on a neutral background (#020403).

Color palette

TokenLightDark
Background
#ffffffwhite
#020403black
Foreground
#000000black
#f4faf9mintcream
Card
#ffffffwhite
#020403black
Card foreground
#000000black
#f4faf9mintcream
Popover
#ffffffwhite
#020403black
Popover foreground
#000000black
#f4faf9mintcream
Primary
#bfe3dbpowderblue
#bfe3dbpowderblue
Primary foreground
#224f44darkslategray
#224f44darkslategray
Secondary
#e3bfc7thistle
#e3bfc7thistle
Secondary foreground
#4f222cdarkslategray
#4f222cdarkslategray
Muted
#e8c9d1thistle
#36171eblack
Muted foreground
#423e3fdarkslategray
#c1bdbesilver
Accent
#e3bfc7thistle
#e3bfc7thistle
Accent foreground
#4f222cdarkslategray
#4f222cdarkslategray
Destructive
#923d0csaddlebrown
#ed691dchocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bfe3dbpowderblue
#bfe3dbpowderblue

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button6.72:1AA
Secondary button7.84:1AAA
Muted text6.89:1AA
Accent7.84:1AAA
Destructive7.23:1AAA
Dark mode
Text on background19.52:1AAA
Text on card19.52:1AAA
Primary button6.72:1AA
Secondary button7.84:1AAA
Muted text8.71:1AAA
Accent7.84:1AAA
Destructive6.62:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.865 0.036 2.087);
  --muted-foreground: oklch(0.367 0.005 1.372);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.888 0.04 179.626);
  --primary-foreground: oklch(0.391 0.053 175.999);
  --secondary: oklch(0.838 0.043 2.367);
  --secondary-foreground: oklch(0.318 0.068 7.076);
  --accent: oklch(0.838 0.043 2.367);
  --accent-foreground: oklch(0.318 0.068 7.076);
  --destructive: oklch(0.469 0.128 44.778);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.888 0.04 179.626);
  --chart-1: oklch(0.888 0.04 179.626);
  --chart-2: oklch(0.838 0.043 2.367);
  --chart-3: oklch(0.838 0.043 2.367);
  --chart-4: oklch(0.865 0.036 2.087);
  --chart-5: oklch(0.891 0.043 179.528);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.008 180.952);
  --foreground: oklch(0.981 0.007 180.767);
  --muted: oklch(0.252 0.05 6.474);
  --muted-foreground: oklch(0.803 0.004 1.116);
  --popover: oklch(0.097 0.008 180.952);
  --popover-foreground: oklch(0.981 0.007 180.767);
  --card: oklch(0.097 0.008 180.952);
  --card-foreground: oklch(0.981 0.007 180.767);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.888 0.04 179.626);
  --primary-foreground: oklch(0.391 0.053 175.999);
  --secondary: oklch(0.838 0.043 2.367);
  --secondary-foreground: oklch(0.318 0.068 7.076);
  --accent: oklch(0.838 0.043 2.367);
  --accent-foreground: oklch(0.318 0.068 7.076);
  --destructive: oklch(0.673 0.181 45.032);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.888 0.04 179.626);
  --chart-1: oklch(0.888 0.04 179.626);
  --chart-2: oklch(0.838 0.043 2.367);
  --chart-3: oklch(0.838 0.043 2.367);
  --chart-4: oklch(0.865 0.036 2.087);
  --chart-5: oklch(0.891 0.043 179.528);
}