Surfboard for shadcn/ui

Surfboard is a shadcn/ui theme built around an orange primary color (#e4ba90) with muted light orange accents (#e2deda). The light mode uses a neutral background (#ffffff). Dark mode keeps the orange primary (#e4ba90) on a neutral background (#080502).

Color palette

TokenLightDark
Background
#ffffffwhite
#080502black
Foreground
#120a02black
#fdfcfcsnow
Card
#fcfcfcsnow
#0c0803black
Card foreground
#0e0802black
#ffffffwhite
Popover
#fcfcfcsnow
#0c0803black
Popover foreground
#0e0802black
#ffffffwhite
Primary
#e4ba90burlywood
#e4ba90burlywood
Primary foreground
#35210dblack
#35210dblack
Secondary
#e2dedagainsboro
#342b23darkslategray
Secondary foreground
#4d453ddarkslategray
#d0c4b9silver
Muted
#f3f2f1whitesmoke
#0e0d0cblack
Muted foreground
#6d665fdimgray
#a09992darkgray
Accent
#e2dedagainsboro
#342b23darkslategray
Accent foreground
#4d453ddarkslategray
#d0c4b9silver
Destructive
#c12206firebrick
#f8300dorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e4ba90burlywood
#e4ba90burlywood

Contrast

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

Light mode
Text on background19.62:1AAA
Text on card19.49:1AAA
Primary button8.54:1AAA
Secondary button7.01:1AAA
Muted text5.06:1AA
Accent7.01:1AAA
Destructive6.00:1AA
Dark mode
Text on background19.84:1AAA
Text on card19.99:1AAA
Primary button8.54:1AAA
Secondary button8.07:1AAA
Muted text6.91:1AA
Accent8.07:1AAA
Destructive3.88:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.154 0.025 73.851);
  --muted: oklch(0.962 0.002 67.801);
  --muted-foreground: oklch(0.515 0.014 67.502);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.138 0.022 77.687);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.138 0.022 77.687);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.816 0.074 66.484);
  --primary-foreground: oklch(0.269 0.045 63.84);
  --secondary: oklch(0.902 0.007 67.737);
  --secondary-foreground: oklch(0.396 0.018 67.28);
  --accent: oklch(0.902 0.007 67.737);
  --accent-foreground: oklch(0.396 0.018 67.28);
  --destructive: oklch(0.523 0.196 31.684);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.816 0.074 66.484);
  --chart-1: oklch(0.816 0.074 66.484);
  --chart-2: oklch(0.902 0.007 67.737);
  --chart-3: oklch(0.902 0.007 67.737);
  --chart-4: oklch(0.925 0.005 67.759);
  --chart-5: oklch(0.818 0.077 66.394);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.119 0.014 76.201);
  --foreground: oklch(0.993 0.002 67.804);
  --muted: oklch(0.159 0.003 67.628);
  --muted-foreground: oklch(0.687 0.013 67.604);
  --popover: oklch(0.137 0.016 75.515);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.137 0.016 75.515);
  --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.816 0.074 66.484);
  --primary-foreground: oklch(0.269 0.045 63.84);
  --secondary: oklch(0.297 0.02 66.942);
  --secondary-foreground: oklch(0.828 0.021 67.534);
  --accent: oklch(0.297 0.02 66.942);
  --accent-foreground: oklch(0.828 0.021 67.534);
  --destructive: oklch(0.631 0.236 31.694);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.816 0.074 66.484);
  --chart-1: oklch(0.816 0.074 66.484);
  --chart-2: oklch(0.297 0.02 66.942);
  --chart-3: oklch(0.297 0.02 66.942);
  --chart-4: oklch(0.329 0.023 66.901);
  --chart-5: oklch(0.818 0.077 66.394);
}