Butler for shadcn/ui

Butler is a shadcn/ui theme built around a vivid light teal primary color (#b2f5ed) with muted light teal accents (#cce1de). The light mode uses a neutral background (#fbfefe). Dark mode keeps the vivid light teal primary (#b2f5ed) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfefewhite
#000000black
Foreground
#031614black
#ffffffwhite
Card
#f7fdfcmintcream
#030303black
Card foreground
#031210black
#ffffffwhite
Popover
#f7fdfcmintcream
#030303black
Popover foreground
#031210black
#ffffffwhite
Primary
#b2f5edpaleturquoise
#b2f5edpaleturquoise
Primary foreground
#020e0cblack
#020e0cblack
Secondary
#e0ebe9lavender
#263634darkslategray
Secondary foreground
#3d5c58darkslategray
#bdd1cflightgrey
Muted
#d7dbdagainsboro
#242828darkslategray
Muted foreground
#505e5cdimgray
#a1afaedarkgray
Accent
#cce1degainsboro
#2b4a47darkslategray
Accent foreground
#2d4d49darkslategray
#c8dfddlightgrey
Destructive
#6e0202maroon
#fb3737tomato
Destructive foreground
#fda5a5lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b2f5edpaleturquoise
#b2f5edpaleturquoise

Contrast

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

Light mode
Text on background18.33:1AAA
Text on card18.57:1AAA
Primary button16.05:1AAA
Secondary button5.99:1AA
Muted text4.84:1AA
Accent6.77:1AA
Destructive6.63:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button16.05:1AAA
Secondary button7.93:1AAA
Muted text6.55:1AA
Accent6.89:1AA
Destructive3.68:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 188.835);
  --foreground: oklch(0.184 0.027 185.438);
  --muted: oklch(0.887 0.004 188.798);
  --muted-foreground: oklch(0.468 0.017 188.013);
  --popover: oklch(0.989 0.006 188.758);
  --popover-foreground: oklch(0.166 0.024 186.159);
  --card: oklch(0.989 0.006 188.758);
  --card-foreground: oklch(0.166 0.024 186.159);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.924 0.067 187.074);
  --primary-foreground: oklch(0.148 0.021 187.144);
  --secondary: oklch(0.931 0.011 188.629);
  --secondary-foreground: oklch(0.449 0.037 186.837);
  --accent: oklch(0.893 0.023 188.296);
  --accent-foreground: oklch(0.395 0.038 186.374);
  --destructive: oklch(0.339 0.137 28.883);
  --destructive-foreground: oklch(0.809 0.105 19.602);
  --ring: oklch(0.924 0.067 187.074);
  --chart-1: oklch(0.924 0.067 187.074);
  --chart-2: oklch(0.931 0.011 188.629);
  --chart-3: oklch(0.893 0.023 188.296);
  --chart-4: oklch(0.952 0.008 188.718);
  --chart-5: oklch(0.926 0.07 187.009);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.273 0.006 188.423);
  --muted-foreground: oklch(0.743 0.016 188.405);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.924 0.067 187.074);
  --primary-foreground: oklch(0.148 0.021 187.144);
  --secondary: oklch(0.318 0.022 187.189);
  --secondary-foreground: oklch(0.845 0.022 188.284);
  --accent: oklch(0.385 0.038 186.306);
  --accent-foreground: oklch(0.887 0.025 188.227);
  --destructive: oklch(0.645 0.23 26.609);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.924 0.067 187.074);
  --chart-1: oklch(0.924 0.067 187.074);
  --chart-2: oklch(0.318 0.022 187.189);
  --chart-3: oklch(0.385 0.038 186.306);
  --chart-4: oklch(0.351 0.025 187.135);
  --chart-5: oklch(0.926 0.07 187.009);
}