Sandal for shadcn/ui

Sandal is a shadcn/ui theme built around an orange primary color (#e59b80) with cyan accents (#80cae5). The light mode uses a neutral background (#fbf9f8). Dark mode keeps the orange primary (#e59b80) on a neutral background (#070403).

Color palette

TokenLightDark
Background
#fbf9f8snow
#070403black
Foreground
#0c0603black
#fbf9f9snow
Card
#faf6f5whitesmoke
#0b0604black
Card foreground
#080402black
#fdfcfcsnow
Popover
#faf6f5whitesmoke
#0b0604black
Popover foreground
#080402black
#fdfcfcsnow
Primary
#e59b80darksalmon
#e59b80darksalmon
Primary foreground
#2a1209black
#2a1209black
Secondary
#80cae5skyblue
#80cae5skyblue
Secondary foreground
#09212ablack
#09212ablack
Muted
#e2ebeelavender
#111a1dblack
Muted foreground
#3f484bdarkslategray
#b4bdc0silver
Accent
#80cae5skyblue
#80cae5skyblue
Accent foreground
#09212ablack
#09212ablack
Destructive
#7e1507maroon
#f4462ftomato
Destructive foreground
#fbc3bblightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e59b80darksalmon
#e59b80darksalmon

Contrast

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

Light mode
Text on background19.22:1AAA
Text on card19.04:1AAA
Primary button7.84:1AAA
Secondary button9.11:1AAA
Muted text7.74:1AAA
Accent9.11:1AAA
Destructive6.83:1AA
Dark mode
Text on background19.47:1AAA
Text on card19.67:1AAA
Primary button7.84:1AAA
Secondary button9.11:1AAA
Muted text9.24:1AAA
Accent9.11:1AAA
Destructive3.64:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.984 0.003 41.283);
  --foreground: oklch(0.129 0.015 48.44);
  --muted: oklch(0.934 0.011 221.408);
  --muted-foreground: oklch(0.394 0.013 221.653);
  --popover: oklch(0.976 0.004 41.272);
  --popover-foreground: oklch(0.112 0.013 48.755);
  --card: oklch(0.976 0.004 41.272);
  --card-foreground: oklch(0.112 0.013 48.755);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.756 0.097 40.773);
  --primary-foreground: oklch(0.215 0.044 40.464);
  --secondary: oklch(0.8 0.083 223.155);
  --secondary-foreground: oklch(0.235 0.035 225.19);
  --accent: oklch(0.8 0.083 223.155);
  --accent-foreground: oklch(0.235 0.035 225.19);
  --destructive: oklch(0.384 0.142 31.084);
  --destructive-foreground: oklch(0.865 0.066 27.141);
  --ring: oklch(0.756 0.097 40.773);
  --chart-1: oklch(0.756 0.097 40.773);
  --chart-2: oklch(0.8 0.083 223.155);
  --chart-3: oklch(0.8 0.083 223.155);
  --chart-4: oklch(0.819 0.075 222.8);
  --chart-5: oklch(0.756 0.102 40.755);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.113 0.011 47.281);
  --foreground: oklch(0.984 0.002 41.292);
  --muted: oklch(0.21 0.015 222.278);
  --muted-foreground: oklch(0.792 0.011 221.433);
  --popover: oklch(0.129 0.012 47.139);
  --popover-foreground: oklch(0.992 0.001 41.298);
  --card: oklch(0.129 0.012 47.139);
  --card-foreground: oklch(0.992 0.001 41.298);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.756 0.097 40.773);
  --primary-foreground: oklch(0.215 0.044 40.464);
  --secondary: oklch(0.8 0.083 223.155);
  --secondary-foreground: oklch(0.235 0.035 225.19);
  --accent: oklch(0.8 0.083 223.155);
  --accent-foreground: oklch(0.235 0.035 225.19);
  --destructive: oklch(0.644 0.214 30.922);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.756 0.097 40.773);
  --chart-1: oklch(0.756 0.097 40.773);
  --chart-2: oklch(0.8 0.083 223.155);
  --chart-3: oklch(0.8 0.083 223.155);
  --chart-4: oklch(0.819 0.075 222.8);
  --chart-5: oklch(0.756 0.102 40.755);
}