Exhibit for shadcn/ui

Exhibit is a shadcn/ui theme built around a green primary color (#467533) with muted light green accents (#c3cfbe). The light mode uses a neutral background (#f9fcf8). Dark mode keeps the green primary (#467533) on a green-tinted background (#060b04).

Color palette

TokenLightDark
Background
#f9fcf8mintcream
#060b04black
Foreground
#020401black
#f9fbf8mintcream
Card
#f6faf5whitesmoke
#080f05black
Card foreground
#000000black
#fcfdfcwhite
Popover
#f6faf5whitesmoke
#080f05black
Popover foreground
#000000black
#fcfdfcwhite
Primary
#467533darkolivegreen
#467533darkolivegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#daded9gainsboro
#21291eblack
Secondary foreground
#40473edarkslategray
#b8c7b3silver
Muted
#e3ecdfgainsboro
#172013black
Muted foreground
#5f7557dimgray
#92a88adarkseagreen
Accent
#c3cfbesilver
#2e3e28darkslategray
Accent foreground
#2b3527darkslategray
#c7d7c1lightgrey
Destructive
#791e02maroon
#fc5522orangered
Destructive foreground
#fec1aflightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#467533darkolivegreen
#467533darkolivegreen

Contrast

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

Light mode
Text on background19.87:1AAA
Text on card19.93:1AAA
Primary button5.45:1AA
Secondary button7.04:1AAA
Muted text4.15:1AA Large
Accent7.93:1AAA
Destructive6.76:1AA
Dark mode
Text on background19.06:1AAA
Text on card19.04:1AAA
Primary button5.45:1AA
Secondary button8.45:1AAA
Muted text6.53:1AA
Accent7.56:1AAA
Destructive6.44:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.006 136.626);
  --foreground: oklch(0.098 0.015 135.093);
  --muted: oklch(0.933 0.02 136.675);
  --muted-foreground: oklch(0.537 0.053 136.943);
  --popover: oklch(0.981 0.009 136.635);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.009 136.635);
  --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.512 0.109 137.631);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.896 0.008 136.635);
  --secondary-foreground: oklch(0.388 0.018 136.75);
  --accent: oklch(0.842 0.026 136.705);
  --accent-foreground: oklch(0.314 0.027 136.897);
  --destructive: oklch(0.382 0.13 35.654);
  --destructive-foreground: oklch(0.861 0.075 37.602);
  --ring: oklch(0.512 0.109 137.631);
  --chart-1: oklch(0.512 0.109 137.631);
  --chart-2: oklch(0.896 0.008 136.635);
  --chart-3: oklch(0.842 0.026 136.705);
  --chart-4: oklch(0.918 0.006 136.629);
  --chart-5: oklch(0.518 0.116 137.738);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.02 135.258);
  --foreground: oklch(0.987 0.004 136.622);
  --muted: oklch(0.23 0.028 137.046);
  --muted-foreground: oklch(0.707 0.05 136.835);
  --popover: oklch(0.157 0.024 135.839);
  --popover-foreground: oklch(0.993 0.002 136.615);
  --card: oklch(0.157 0.024 135.839);
  --card-foreground: oklch(0.993 0.002 136.615);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.512 0.109 137.631);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.27 0.022 136.878);
  --secondary-foreground: oklch(0.812 0.032 136.728);
  --accent: oklch(0.344 0.043 137.06);
  --accent-foreground: oklch(0.861 0.035 136.734);
  --destructive: oklch(0.671 0.211 36.205);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.512 0.109 137.631);
  --chart-1: oklch(0.512 0.109 137.631);
  --chart-2: oklch(0.27 0.022 136.878);
  --chart-3: oklch(0.344 0.043 137.06);
  --chart-4: oklch(0.303 0.026 136.893);
  --chart-5: oklch(0.518 0.116 137.738);
}