Stark for shadcn/ui

Stark is a shadcn/ui theme built around a muted light yellow primary color (#eaeae6) with muted light green accents (#e8eae6). The light mode uses a neutral background (#fefefb). Dark mode keeps the muted light yellow primary (#eaeae6) on a yellow-tinted background (#0e0e06).

Color palette

TokenLightDark
Background
#fefefbwhite
#0e0e06black
Foreground
#080802black
#ffffffwhite
Card
#fefefbwhite
#0e0e06black
Card foreground
#080802black
#ffffffwhite
Popover
#fefefbwhite
#0e0e06black
Popover foreground
#080802black
#ffffffwhite
Primary
#eaeae6linen
#eaeae6linen
Primary foreground
#575747darkolivegreen
#575747darkolivegreen
Secondary
#eae8e6linen
#eae8e6linen
Secondary foreground
#574f47darkolivegreen
#574f47darkolivegreen
Muted
#ede0d4antiquewhite
#2b1f12black
Muted foreground
#534d46darkslategray
#b9b3acdarkgray
Accent
#e8eae6linen
#e8eae6linen
Accent foreground
#4f5747darkolivegreen
#4f5747darkolivegreen
Destructive
#86220esaddlebrown
#de3817orangered
Destructive foreground
#fad4ccbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#eaeae6linen
#eaeae6linen

Contrast

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

Light mode
Text on background19.88:1AAA
Text on card19.88:1AAA
Primary button6.10:1AA
Secondary button6.57:1AA
Muted text6.45:1AA
Accent6.23:1AA
Destructive6.83:1AA
Dark mode
Text on background19.32:1AAA
Text on card19.32:1AAA
Primary button6.10:1AA
Secondary button6.57:1AA
Muted text7.75:1AAA
Accent6.23:1AA
Destructive4.49:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.996 0.004 106.477);
  --foreground: oklch(0.132 0.019 108.747);
  --muted: oklch(0.914 0.021 67.558);
  --muted-foreground: oklch(0.422 0.013 67.468);
  --popover: oklch(0.996 0.004 106.477);
  --popover-foreground: oklch(0.132 0.019 108.747);
  --card: oklch(0.996 0.004 106.477);
  --card-foreground: oklch(0.132 0.019 108.747);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.937 0.006 106.517);
  --primary-foreground: oklch(0.452 0.025 107.353);
  --secondary: oklch(0.932 0.004 67.775);
  --secondary-foreground: oklch(0.433 0.017 67.369);
  --accent: oklch(0.935 0.007 128.539);
  --accent-foreground: oklch(0.445 0.027 129.161);
  --destructive: oklch(0.412 0.138 33.017);
  --destructive-foreground: oklch(0.899 0.044 31.217);
  --ring: oklch(0.937 0.006 106.517);
  --chart-1: oklch(0.937 0.006 106.517);
  --chart-2: oklch(0.932 0.004 67.775);
  --chart-3: oklch(0.935 0.007 128.539);
  --chart-4: oklch(0.955 0.003 67.791);
  --chart-5: oklch(0.939 0.008 106.552);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.162 0.017 108.199);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.249 0.029 65.873);
  --muted-foreground: oklch(0.768 0.011 67.661);
  --popover: oklch(0.162 0.017 108.199);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.162 0.017 108.199);
  --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.937 0.006 106.517);
  --primary-foreground: oklch(0.452 0.025 107.353);
  --secondary: oklch(0.932 0.004 67.775);
  --secondary-foreground: oklch(0.433 0.017 67.369);
  --accent: oklch(0.935 0.007 128.539);
  --accent-foreground: oklch(0.445 0.027 129.161);
  --destructive: oklch(0.592 0.206 32.806);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.937 0.006 106.517);
  --chart-1: oklch(0.937 0.006 106.517);
  --chart-2: oklch(0.932 0.004 67.775);
  --chart-3: oklch(0.935 0.007 128.539);
  --chart-4: oklch(0.955 0.003 67.791);
  --chart-5: oklch(0.939 0.008 106.552);
}