Equal for shadcn/ui

Equal is a shadcn/ui theme built around a green primary color (#88a441) with purple accents (#a44188). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#88a441) on a neutral background (#060802).

Color palette

TokenLightDark
Background
#ffffffwhite
#060802black
Foreground
#101505black
#ffffffwhite
Card
#fcfcfcsnow
#0a0c03black
Card foreground
#0d1104black
#ffffffwhite
Popover
#ffffffwhite
#060802black
Popover foreground
#101505black
#ffffffwhite
Primary
#88a441olivedrab
#88a441olivedrab
Primary foreground
#0f1207black
#0f1207black
Secondary
#4188a4steelblue
#4188a4steelblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e5edf0lavender
#0f171ablack
Muted foreground
#505a5edimgray
#a1abafdarkgray
Accent
#a44188mediumvioletred
#a44188mediumvioletred
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#bf4f12chocolate
#ec7636tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#88a441olivedrab
#88a441olivedrab

Contrast

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

Light mode
Text on background18.55:1AAA
Text on card18.69:1AAA
Primary button6.70:1AA
Secondary button3.96:1AA Large
Muted text5.97:1AA
Accent5.67:1AA
Destructive4.84:1AA
Dark mode
Text on background20.11:1AAA
Text on card19.68:1AAA
Primary button6.70:1AA
Secondary button3.96:1AA Large
Muted text7.75:1AAA
Accent5.67:1AA
Destructive7.22:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.185 0.032 121.892);
  --muted: oklch(0.941 0.009 223.233);
  --muted-foreground: oklch(0.459 0.014 223.483);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.185 0.032 121.892);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.168 0.028 121.069);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.677 0.13 123.198);
  --primary-foreground: oklch(0.176 0.022 121.317);
  --secondary: oklch(0.593 0.082 226.608);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.533 0.154 340.138);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.567 0.159 43.262);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.677 0.13 123.198);
  --chart-1: oklch(0.677 0.13 123.198);
  --chart-2: oklch(0.593 0.082 226.608);
  --chart-3: oklch(0.533 0.154 340.138);
  --chart-4: oklch(0.622 0.087 226.645);
  --chart-5: oklch(0.686 0.137 123.436);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.129 0.019 119.277);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.197 0.013 224.121);
  --muted-foreground: oklch(0.736 0.013 223.313);
  --popover: oklch(0.129 0.019 119.277);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.148 0.022 119.644);
  --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.677 0.13 123.198);
  --primary-foreground: oklch(0.176 0.022 121.317);
  --secondary: oklch(0.593 0.082 226.608);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.533 0.154 340.138);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.693 0.164 46.095);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.677 0.13 123.198);
  --chart-1: oklch(0.677 0.13 123.198);
  --chart-2: oklch(0.593 0.082 226.608);
  --chart-3: oklch(0.533 0.154 340.138);
  --chart-4: oklch(0.622 0.087 226.645);
  --chart-5: oklch(0.686 0.137 123.436);
}