Equal for shadcn/ui

Equal is a shadcn/ui theme built around a yellow primary color (#decd82) with blue accents (#8293de). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the yellow primary (#decd82) on a neutral background (#070603).

Color palette

TokenLightDark
Background
#fcfbf8snow
#070603black
Foreground
#0d0b02black
#fdfdfcwhite
Card
#fbf9f4floralwhite
#0b0a05black
Card foreground
#090801black
#ffffffwhite
Popover
#fcfbf8snow
#070603black
Popover foreground
#0d0b02black
#fdfdfcwhite
Primary
#decd82burlywood
#decd82burlywood
Primary foreground
#241f0ablack
#241f0ablack
Secondary
#8293decornflowerblue
#8293decornflowerblue
Secondary foreground
#0a0f24black
#0a0f24black
Muted
#dadce7gainsboro
#181b25black
Muted foreground
#42444ddarkslategray
#b2b4bdsilver
Accent
#8293decornflowerblue
#8293decornflowerblue
Accent foreground
#0a0f24black
#0a0f24black
Destructive
#b83805firebrick
#f95615orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#decd82burlywood
#decd82burlywood

Contrast

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

Light mode
Text on background19.06:1AAA
Text on card19.09:1AAA
Primary button10.31:1AAA
Secondary button6.47:1AA
Muted text7.11:1AAA
Accent6.47:1AA
Destructive5.83:1AA
Dark mode
Text on background19.87:1AAA
Text on card19.85:1AAA
Primary button10.31:1AAA
Secondary button6.47:1AA
Muted text8.33:1AAA
Accent6.47:1AA
Destructive3.29:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.005 96.225);
  --foreground: oklch(0.15 0.025 100.382);
  --muted: oklch(0.897 0.015 275.95);
  --muted-foreground: oklch(0.387 0.016 275.589);
  --popover: oklch(0.988 0.005 96.225);
  --popover-foreground: oklch(0.15 0.025 100.382);
  --card: oklch(0.983 0.007 96.255);
  --card-foreground: oklch(0.131 0.021 101.38);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.845 0.097 97.056);
  --primary-foreground: oklch(0.241 0.036 96.858);
  --secondary: oklch(0.68 0.112 273.429);
  --secondary-foreground: oklch(0.175 0.045 271.499);
  --accent: oklch(0.68 0.112 273.429);
  --accent-foreground: oklch(0.175 0.045 271.499);
  --destructive: oklch(0.525 0.172 37.212);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.845 0.097 97.056);
  --chart-1: oklch(0.845 0.097 97.056);
  --chart-2: oklch(0.68 0.112 273.429);
  --chart-3: oklch(0.68 0.112 273.429);
  --chart-4: oklch(0.712 0.101 273.889);
  --chart-5: oklch(0.85 0.101 97.054);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.011 99.234);
  --foreground: oklch(0.993 0.001 96.177);
  --muted: oklch(0.223 0.021 274.747);
  --muted-foreground: oklch(0.771 0.013 275.934);
  --popover: oklch(0.124 0.011 99.234);
  --popover-foreground: oklch(0.993 0.001 96.177);
  --card: oklch(0.142 0.013 99.149);
  --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.845 0.097 97.056);
  --primary-foreground: oklch(0.241 0.036 96.858);
  --secondary: oklch(0.68 0.112 273.429);
  --secondary-foreground: oklch(0.175 0.045 271.499);
  --accent: oklch(0.68 0.112 273.429);
  --accent-foreground: oklch(0.175 0.045 271.499);
  --destructive: oklch(0.668 0.21 38.162);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.845 0.097 97.056);
  --chart-1: oklch(0.845 0.097 97.056);
  --chart-2: oklch(0.68 0.112 273.429);
  --chart-3: oklch(0.68 0.112 273.429);
  --chart-4: oklch(0.712 0.101 273.889);
  --chart-5: oklch(0.85 0.101 97.054);
}