Even for shadcn/ui

Even is a shadcn/ui theme built around a teal primary color (#168880) with yellow accents (#888016). The light mode uses a neutral background (#fbfdfd). Dark mode keeps the teal primary (#168880) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfdfdwhite
#000000black
Foreground
#000000black
#f6f9f9whitesmoke
Card
#f8fcfcmintcream
#030303black
Card foreground
#000000black
#f9fbfbghostwhite
Popover
#fbfdfdwhite
#000000black
Popover foreground
#000000black
#f6f9f9whitesmoke
Primary
#168880teal
#168880teal
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#801688purple
#801688purple
Secondary foreground
#f6d8f9lavender
#f6d8f9lavender
Muted
#e2d9e3gainsboro
#251c26black
Muted foreground
#463947darkslategray
#c5b8c6silver
Accent
#888016olive
#888016olive
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d00606red
#e90707red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#168880teal
#168880teal

Contrast

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

Light mode
Text on background20.64:1AAA
Text on card20.29:1AAA
Primary button4.31:1AA Large
Secondary button6.72:1AA
Muted text7.87:1AAA
Accent4.06:1AA Large
Destructive5.66:1AA
Dark mode
Text on background19.83:1AAA
Text on card19.91:1AAA
Primary button4.31:1AA Large
Secondary button6.72:1AA
Muted text8.65:1AAA
Accent4.06:1AA Large
Destructive4.68:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 192.384);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.895 0.017 323.732);
  --muted-foreground: oklch(0.363 0.029 324.043);
  --popover: oklch(0.994 0.002 192.384);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.988 0.004 192.34);
  --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.567 0.094 187.717);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.437 0.187 325.048);
  --secondary-foreground: oklch(0.916 0.055 323.942);
  --accent: oklch(0.59 0.118 105.075);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.54 0.219 28.983);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.567 0.094 187.717);
  --chart-1: oklch(0.567 0.094 187.717);
  --chart-2: oklch(0.437 0.187 325.048);
  --chart-3: oklch(0.59 0.118 105.075);
  --chart-4: oklch(0.466 0.2 325.042);
  --chart-5: oklch(0.573 0.096 187.577);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.979 0.003 192.364);
  --muted: oklch(0.243 0.023 324.11);
  --muted-foreground: oklch(0.798 0.024 323.792);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.979 0.003 192.364);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.986 0.002 192.386);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.567 0.094 187.717);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.437 0.187 325.048);
  --secondary-foreground: oklch(0.916 0.055 323.942);
  --accent: oklch(0.59 0.118 105.075);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.587 0.239 29.016);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.567 0.094 187.717);
  --chart-1: oklch(0.567 0.094 187.717);
  --chart-2: oklch(0.437 0.187 325.048);
  --chart-3: oklch(0.59 0.118 105.075);
  --chart-4: oklch(0.466 0.2 325.042);
  --chart-5: oklch(0.573 0.096 187.577);
}