Chair for shadcn/ui

Chair is a shadcn/ui theme built around a green primary color (#73d49e) with teal accents (#73d4cf). The light mode uses a neutral background (#fbfefc). Dark mode keeps the green primary (#73d49e) on a green-tinted background (#060e0a).

Color palette

TokenLightDark
Background
#fbfefcwhite
#060e0ablack
Foreground
#05100ablack
#f4faf7whitesmoke
Card
#f8fcfamintcream
#08120cblack
Card foreground
#030c07black
#f8fcfamintcream
Popover
#f8fcfamintcream
#08120cblack
Popover foreground
#030c07black
#f8fcfamintcream
Primary
#73d49emediumaquamarine
#73d49emediumaquamarine
Primary foreground
#05100ablack
#05100ablack
Secondary
#77d473darkseagreen
#77d473darkseagreen
Secondary foreground
#051005black
#051005black
Muted
#e5ece4gainsboro
#141b13black
Muted foreground
#505350darkslategray
#acafacdarkgray
Accent
#73d4cfskyblue
#73d4cfskyblue
Accent foreground
#05100fblack
#05100fblack
Destructive
#641a07maroon
#f16441tomato
Destructive foreground
#f8b6a5lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#73d49emediumaquamarine
#73d49emediumaquamarine

Contrast

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

Light mode
Text on background19.03:1AAA
Text on card19.16:1AAA
Primary button10.71:1AAA
Secondary button10.56:1AAA
Muted text6.46:1AA
Accent11.05:1AAA
Destructive7.24:1AAA
Dark mode
Text on background18.46:1AAA
Text on card18.45:1AAA
Primary button10.71:1AAA
Secondary button10.56:1AAA
Muted text7.95:1AAA
Accent11.05:1AAA
Destructive6.64:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 162.546);
  --foreground: oklch(0.158 0.022 160.764);
  --muted: oklch(0.935 0.012 144.053);
  --muted-foreground: oklch(0.439 0.007 144.042);
  --popover: oklch(0.987 0.006 162.471);
  --popover-foreground: oklch(0.141 0.019 162.381);
  --card: oklch(0.987 0.006 162.471);
  --card-foreground: oklch(0.141 0.019 162.381);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.795 0.121 157.971);
  --primary-foreground: oklch(0.158 0.022 160.826);
  --secondary: oklch(0.789 0.16 142.873);
  --secondary-foreground: oklch(0.156 0.03 142.587);
  --accent: oklch(0.809 0.092 191.246);
  --accent-foreground: oklch(0.16 0.017 191.787);
  --destructive: oklch(0.337 0.109 34.642);
  --destructive-foreground: oklch(0.833 0.082 34.515);
  --ring: oklch(0.795 0.121 157.971);
  --chart-1: oklch(0.795 0.121 157.971);
  --chart-2: oklch(0.789 0.16 142.873);
  --chart-3: oklch(0.809 0.092 191.246);
  --chart-4: oklch(0.805 0.148 142.995);
  --chart-5: oklch(0.801 0.127 157.712);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.154 0.016 161.299);
  --foreground: oklch(0.981 0.008 162.42);
  --muted: oklch(0.211 0.018 143.625);
  --muted-foreground: oklch(0.751 0.006 144.085);
  --popover: oklch(0.168 0.019 159.873);
  --popover-foreground: oklch(0.987 0.005 162.488);
  --card: oklch(0.168 0.019 159.873);
  --card-foreground: oklch(0.987 0.005 162.488);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.795 0.121 157.971);
  --primary-foreground: oklch(0.158 0.022 160.826);
  --secondary: oklch(0.789 0.16 142.873);
  --secondary-foreground: oklch(0.156 0.03 142.587);
  --accent: oklch(0.809 0.092 191.246);
  --accent-foreground: oklch(0.16 0.017 191.787);
  --destructive: oklch(0.676 0.181 35.188);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.795 0.121 157.971);
  --chart-1: oklch(0.795 0.121 157.971);
  --chart-2: oklch(0.789 0.16 142.873);
  --chart-3: oklch(0.809 0.092 191.246);
  --chart-4: oklch(0.805 0.148 142.995);
  --chart-5: oklch(0.801 0.127 157.712);
}