Starchy for shadcn/ui

Starchy is a shadcn/ui theme built around a vivid blue primary color (#1234ba) with neutral gray accents (#e1e2e5). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid blue primary (#1234ba) on a blue-tinted background (#04050c).

Color palette

TokenLightDark
Background
#ffffffwhite
#04050cblack
Foreground
#040815black
#f8f9fbghostwhite
Card
#ffffffwhite
#04050cblack
Card foreground
#040815black
#f8f9fbghostwhite
Popover
#ffffffwhite
#04050cblack
Popover foreground
#040815black
#f8f9fbghostwhite
Primary
#1234bamediumblue
#1234bamediumblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e1e2e5gainsboro
#232324black
Secondary foreground
#46474edarkslategray
#bcbcbdsilver
Muted
#daddecgainsboro
#131625black
Muted foreground
#5a5b5edimgray
#a1a2a5darkgray
Accent
#e1e2e5gainsboro
#232324black
Accent foreground
#46474edarkslategray
#bcbcbdsilver
Destructive
#b71001firebrick
#fe4534tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1234bamediumblue
#1234bamediumblue

Contrast

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

Light mode
Text on background19.98:1AAA
Text on card19.98:1AAA
Primary button9.45:1AAA
Secondary button7.13:1AAA
Muted text5.03:1AA
Accent7.13:1AAA
Destructive6.81:1AA
Dark mode
Text on background19.29:1AAA
Text on card19.29:1AAA
Primary button9.45:1AAA
Secondary button8.23:1AAA
Muted text7.01:1AAA
Accent8.23:1AAA
Destructive3.43:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.136 0.032 267.745);
  --muted: oklch(0.9 0.021 274.745);
  --muted-foreground: oklch(0.47 0.005 274.909);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.136 0.032 267.745);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.136 0.032 267.745);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.41 0.21 265.361);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.913 0.004 274.985);
  --secondary-foreground: oklch(0.4 0.012 274.645);
  --accent: oklch(0.913 0.004 274.985);
  --accent-foreground: oklch(0.4 0.012 274.645);
  --destructive: oklch(0.494 0.196 30.24);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.41 0.21 265.361);
  --chart-1: oklch(0.41 0.21 265.361);
  --chart-2: oklch(0.913 0.004 274.985);
  --chart-3: oklch(0.913 0.004 274.985);
  --chart-4: oklch(0.937 0.003 274.999);
  --chart-5: oklch(0.41 0.216 265.112);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.119 0.017 268.961);
  --foreground: oklch(0.982 0.003 274.996);
  --muted: oklch(0.206 0.03 272.776);
  --muted-foreground: oklch(0.713 0.004 274.96);
  --popover: oklch(0.119 0.017 268.961);
  --popover-foreground: oklch(0.982 0.003 274.996);
  --card: oklch(0.119 0.017 268.961);
  --card-foreground: oklch(0.982 0.003 274.996);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.41 0.21 265.361);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.258 0.001 274.983);
  --secondary-foreground: oklch(0.796 0.002 275.011);
  --accent: oklch(0.258 0.001 274.983);
  --accent-foreground: oklch(0.796 0.002 275.011);
  --destructive: oklch(0.661 0.224 29.538);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.41 0.21 265.361);
  --chart-1: oklch(0.41 0.21 265.361);
  --chart-2: oklch(0.258 0.001 274.983);
  --chart-3: oklch(0.258 0.001 274.983);
  --chart-4: oklch(0.29 0.001 274.981);
  --chart-5: oklch(0.41 0.216 265.112);
}