Early for shadcn/ui

Early is a shadcn/ui theme built around a deep red primary color (#623238) with deep blue accents (#323862). The light mode uses a neutral background (#fcf7f8). Dark mode keeps the deep red primary (#623238) on a red-tinted background (#0c0405).

Color palette

TokenLightDark
Background
#fcf7f8snow
#0c0405black
Foreground
#000000black
#ffffffwhite
Card
#fbf4f4lavenderblush
#100506black
Card foreground
#000000black
#ffffffwhite
Popover
#fbf4f4lavenderblush
#100506black
Popover foreground
#000000black
#ffffffwhite
Primary
#623238saddlebrown
#623238saddlebrown
Primary foreground
#ecdadcgainsboro
#ecdadcgainsboro
Secondary
#386232darkolivegreen
#386232darkolivegreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d4ebd1gainsboro
#172e14black
Muted foreground
#586756dimgray
#9aa998darkgray
Accent
#323862darkslategray
#323862darkslategray
Accent foreground
#dadcecgainsboro
#dadcecgainsboro
Destructive
#cf4217chocolate
#d34317chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#623238saddlebrown
#623238saddlebrown

Contrast

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

Light mode
Text on background19.86:1AAA
Text on card19.30:1AAA
Primary button7.68:1AAA
Secondary button7.12:1AAA
Muted text4.75:1AA
Accent8.23:1AAA
Destructive4.74:1AA
Dark mode
Text on background20.33:1AAA
Text on card20.09:1AAA
Primary button7.68:1AAA
Secondary button7.12:1AAA
Muted text5.88:1AA
Accent8.23:1AAA
Destructive4.56:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.005 9.04);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.916 0.043 141.949);
  --muted-foreground: oklch(0.495 0.032 141.887);
  --popover: oklch(0.972 0.008 9.108);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.972 0.008 9.108);
  --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.381 0.068 13.427);
  --primary-foreground: oklch(0.903 0.02 9.432);
  --secondary: oklch(0.451 0.088 141.484);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.356 0.073 276.364);
  --accent-foreground: oklch(0.898 0.022 279.942);
  --destructive: oklch(0.576 0.184 36.011);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.381 0.068 13.427);
  --chart-1: oklch(0.381 0.068 13.427);
  --chart-2: oklch(0.451 0.088 141.484);
  --chart-3: oklch(0.356 0.073 276.364);
  --chart-4: oklch(0.483 0.095 141.479);
  --chart-5: oklch(0.38 0.075 13.949);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.019 10.125);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.276 0.055 141.469);
  --muted-foreground: oklch(0.719 0.029 141.971);
  --popover: oklch(0.134 0.022 10.865);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.134 0.022 10.865);
  --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.381 0.068 13.427);
  --primary-foreground: oklch(0.903 0.02 9.432);
  --secondary: oklch(0.451 0.088 141.484);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.356 0.073 276.364);
  --accent-foreground: oklch(0.898 0.022 279.942);
  --destructive: oklch(0.585 0.188 35.994);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.381 0.068 13.427);
  --chart-1: oklch(0.381 0.068 13.427);
  --chart-2: oklch(0.451 0.088 141.484);
  --chart-3: oklch(0.356 0.073 276.364);
  --chart-4: oklch(0.483 0.095 141.479);
  --chart-5: oklch(0.38 0.075 13.949);
}