Starchy for shadcn/ui

Starchy is a shadcn/ui theme built around a muted light red primary color (#dacdcf) with muted light orange accents (#dad2cd). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the muted light red primary (#dacdcf) on a red-tinted background (#0c0405).

Color palette

TokenLightDark
Background
#fdf7f7snow
#0c0405black
Foreground
#110405black
#ffffffwhite
Card
#fcf3f4lavenderblush
#100506black
Card foreground
#0d0304black
#ffffffwhite
Popover
#fdf7f7snow
#0c0405black
Popover foreground
#110405black
#ffffffwhite
Primary
#dacdcflightgrey
#dacdcflightgrey
Primary foreground
#433234darkslategray
#433234darkslategray
Secondary
#dacdd5lightgrey
#dacdd5lightgrey
Secondary foreground
#43323ddarkslategray
#43323ddarkslategray
Muted
#eae1e7gainsboro
#1e151bblack
Muted foreground
#51434cdarkslategray
#bcaeb7silver
Accent
#dad2cdlightgrey
#dad2cdlightgrey
Accent foreground
#433932darkslategray
#433932darkslategray
Destructive
#9c2b11brown
#d33a17firebrick
Destructive foreground
#fce8e3mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dacdcflightgrey
#dacdcflightgrey

Contrast

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

Light mode
Text on background18.97:1AAA
Text on card18.61:1AAA
Primary button7.81:1AAA
Secondary button7.77:1AAA
Muted text7.26:1AAA
Accent7.54:1AAA
Destructive6.43:1AA
Dark mode
Text on background20.33:1AAA
Text on card20.09:1AAA
Primary button7.81:1AAA
Secondary button7.77:1AAA
Muted text8.39:1AAA
Accent7.54:1AAA
Destructive4.78:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.007 9.077);
  --foreground: oklch(0.131 0.029 11.502);
  --muted: oklch(0.918 0.013 339.783);
  --muted-foreground: oklch(0.4 0.025 340.79);
  --popover: oklch(0.98 0.007 9.077);
  --popover-foreground: oklch(0.131 0.029 11.502);
  --card: oklch(0.971 0.01 9.165);
  --card-foreground: oklch(0.117 0.025 10.636);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.86 0.015 9.311);
  --primary-foreground: oklch(0.337 0.026 10.717);
  --secondary: oklch(0.862 0.018 339.924);
  --secondary-foreground: oklch(0.34 0.031 341.364);
  --accent: oklch(0.869 0.011 54.328);
  --accent-foreground: oklch(0.352 0.019 53.777);
  --destructive: oklch(0.463 0.153 33.729);
  --destructive-foreground: oklch(0.946 0.023 32.681);
  --ring: oklch(0.86 0.015 9.311);
  --chart-1: oklch(0.86 0.015 9.311);
  --chart-2: oklch(0.862 0.018 339.924);
  --chart-3: oklch(0.869 0.011 54.328);
  --chart-4: oklch(0.886 0.015 339.831);
  --chart-5: oklch(0.858 0.018 9.393);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.019 10.125);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.209 0.019 341.387);
  --muted-foreground: oklch(0.765 0.021 340.067);
  --popover: oklch(0.12 0.019 10.125);
  --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.86 0.015 9.311);
  --primary-foreground: oklch(0.337 0.026 10.717);
  --secondary: oklch(0.862 0.018 339.924);
  --secondary-foreground: oklch(0.34 0.031 341.364);
  --accent: oklch(0.869 0.011 54.328);
  --accent-foreground: oklch(0.352 0.019 53.777);
  --destructive: oklch(0.576 0.195 33.574);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.86 0.015 9.311);
  --chart-1: oklch(0.86 0.015 9.311);
  --chart-2: oklch(0.862 0.018 339.924);
  --chart-3: oklch(0.869 0.011 54.328);
  --chart-4: oklch(0.886 0.015 339.831);
  --chart-5: oklch(0.858 0.018 9.393);
}