Equal for shadcn/ui

Equal is a shadcn/ui theme built around a vivid light blue primary color (#b3d5f9) with vivid light orange accents (#f9d7b3). The light mode uses a neutral background (#f7fafd). Dark mode keeps the vivid light blue primary (#b3d5f9) on a blue-tinted background (#050a0f).

Color palette

TokenLightDark
Background
#f7fafdghostwhite
#050a0fblack
Foreground
#000000black
#fcfcfdwhite
Card
#f7fafdghostwhite
#050a0fblack
Card foreground
#000000black
#fcfcfdwhite
Popover
#f7fafdghostwhite
#050a0fblack
Popover foreground
#000000black
#fcfcfdwhite
Primary
#b3d5f9lightblue
#b3d5f9lightblue
Primary foreground
#093b72midnightblue
#093b72midnightblue
Secondary
#f9d7b3wheat
#f9d7b3wheat
Secondary foreground
#723f09saddlebrown
#723f09saddlebrown
Muted
#e7d9cbgainsboro
#342718darkslategray
Muted foreground
#535250darkslategray
#afadacdarkgray
Accent
#f9d7b3wheat
#f9d7b3wheat
Accent foreground
#723f09saddlebrown
#723f09saddlebrown
Destructive
#83360csaddlebrown
#db5a14chocolate
Destructive foreground
#fad9c7bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b3d5f9lightblue
#b3d5f9lightblue

Contrast

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

Light mode
Text on background20.02:1AAA
Text on card20.02:1AAA
Primary button7.34:1AAA
Secondary button6.35:1AA
Muted text5.64:1AA
Accent6.35:1AA
Destructive6.36:1AA
Dark mode
Text on background19.37:1AAA
Text on card19.37:1AAA
Primary button7.34:1AAA
Secondary button6.35:1AA
Muted text6.48:1AA
Accent6.35:1AA
Destructive3.82: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.983 0.004 249.693);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.893 0.025 69.358);
  --muted-foreground: oklch(0.438 0.003 69.573);
  --popover: oklch(0.983 0.004 249.693);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.983 0.004 249.693);
  --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.861 0.062 250.275);
  --primary-foreground: oklch(0.356 0.107 254.545);
  --secondary: oklch(0.9 0.061 68.802);
  --secondary-foreground: oklch(0.422 0.094 59.976);
  --accent: oklch(0.9 0.061 68.802);
  --accent-foreground: oklch(0.422 0.094 59.976);
  --destructive: oklch(0.432 0.117 44);
  --destructive-foreground: oklch(0.908 0.044 50.076);
  --ring: oklch(0.861 0.062 250.275);
  --chart-1: oklch(0.861 0.062 250.275);
  --chart-2: oklch(0.9 0.061 68.802);
  --chart-3: oklch(0.9 0.061 68.802);
  --chart-4: oklch(0.918 0.049 69.019);
  --chart-5: oklch(0.86 0.064 250.296);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.015 245.93);
  --foreground: oklch(0.992 0.001 249.663);
  --muted: oklch(0.283 0.032 67.8);
  --muted-foreground: oklch(0.75 0.003 69.611);
  --popover: oklch(0.141 0.015 245.93);
  --popover-foreground: oklch(0.992 0.001 249.663);
  --card: oklch(0.141 0.015 245.93);
  --card-foreground: oklch(0.992 0.001 249.663);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.861 0.062 250.275);
  --primary-foreground: oklch(0.356 0.107 254.545);
  --secondary: oklch(0.9 0.061 68.802);
  --secondary-foreground: oklch(0.422 0.094 59.976);
  --accent: oklch(0.9 0.061 68.802);
  --accent-foreground: oklch(0.422 0.094 59.976);
  --destructive: oklch(0.626 0.177 43.039);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.861 0.062 250.275);
  --chart-1: oklch(0.861 0.062 250.275);
  --chart-2: oklch(0.9 0.061 68.802);
  --chart-3: oklch(0.9 0.061 68.802);
  --chart-4: oklch(0.918 0.049 69.019);
  --chart-5: oklch(0.86 0.064 250.296);
}