Early for shadcn/ui

Early is a shadcn/ui theme built around a neutral gray primary color (#8a867b) with neutral gray accents (#868a7b). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the neutral gray primary (#8a867b) on a neutral background (#030302).

Color palette

TokenLightDark
Background
#fcfbf8snow
#030302black
Foreground
#100d05black
#fdfdfcwhite
Card
#fcfbf8snow
#030302black
Card foreground
#100d05black
#fdfdfcwhite
Popover
#fcfbf8snow
#030302black
Popover foreground
#100d05black
#fdfdfcwhite
Primary
#8a867bgray
#8a867bgray
Primary foreground
#000000black
#000000black
Secondary
#8a7e7bgray
#8a7e7bgray
Secondary foreground
#000000black
#000000black
Muted
#f3eeeclinen
#130e0cblack
Muted foreground
#625855dimgray
#aaa09ddarkgray
Accent
#868a7bgray
#868a7bgray
Accent foreground
#000000black
#000000black
Destructive
#731c0dmaroon
#eb6047tomato
Destructive foreground
#f7c3balightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8a867bgray
#8a867bgray

Contrast

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

Light mode
Text on background18.74:1AAA
Text on card18.74:1AAA
Primary button5.74:1AA
Secondary button5.34:1AA
Muted text5.98:1AA
Accent5.90:1AA
Destructive7.09:1AAA
Dark mode
Text on background20.26:1AAA
Text on card20.26:1AAA
Primary button5.74:1AA
Secondary button5.34:1AA
Muted text7.52:1AAA
Accent5.90:1AA
Destructive6.27:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.004 90.154);
  --foreground: oklch(0.159 0.018 92.454);
  --muted: oklch(0.952 0.006 37.712);
  --muted-foreground: oklch(0.47 0.014 37.632);
  --popover: oklch(0.988 0.004 90.154);
  --popover-foreground: oklch(0.159 0.018 92.454);
  --card: oklch(0.988 0.004 90.154);
  --card-foreground: oklch(0.159 0.018 92.454);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.619 0.017 90.305);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.603 0.015 37.643);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.625 0.022 117.722);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.37 0.123 32.358);
  --destructive-foreground: oklch(0.862 0.061 29.891);
  --ring: oklch(0.619 0.017 90.305);
  --chart-1: oklch(0.619 0.017 90.305);
  --chart-2: oklch(0.603 0.015 37.643);
  --chart-3: oklch(0.625 0.022 117.722);
  --chart-4: oklch(0.628 0.014 37.651);
  --chart-5: oklch(0.625 0.025 90.367);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.007 93.498);
  --foreground: oklch(0.993 0.001 90.128);
  --muted: oklch(0.168 0.009 37.594);
  --muted-foreground: oklch(0.712 0.012 37.667);
  --popover: oklch(0.097 0.007 93.498);
  --popover-foreground: oklch(0.993 0.001 90.128);
  --card: oklch(0.097 0.007 93.498);
  --card-foreground: oklch(0.993 0.001 90.128);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.619 0.017 90.305);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.603 0.015 37.643);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.625 0.022 117.722);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.661 0.177 32.075);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.619 0.017 90.305);
  --chart-1: oklch(0.619 0.017 90.305);
  --chart-2: oklch(0.603 0.015 37.643);
  --chart-3: oklch(0.625 0.022 117.722);
  --chart-4: oklch(0.628 0.014 37.651);
  --chart-5: oklch(0.625 0.025 90.367);
}