Grimy for shadcn/ui

Grimy is a shadcn/ui theme built around a muted light orange primary color (#e8e0d8) with muted light blue accents (#d8e0e8). The light mode uses a neutral background (#fefcfb). Dark mode keeps the muted light orange primary (#e8e0d8) on an orange-tinted background (#0b0804).

Color palette

TokenLightDark
Background
#fefcfbsnow
#0b0804black
Foreground
#0d0802black
#fdfcfcsnow
Card
#fcfaf8snow
#0f0a06black
Card foreground
#090502black
#ffffffwhite
Popover
#fefcfbsnow
#0b0804black
Popover foreground
#0d0802black
#fdfcfcsnow
Primary
#e8e0d8gainsboro
#e8e0d8gainsboro
Primary foreground
#5a4735darkolivegreen
#5a4735darkolivegreen
Secondary
#d8e0e8gainsboro
#d8e0e8gainsboro
Secondary foreground
#35475adarkslategray
#35475adarkslategray
Muted
#d8e0e9gainsboro
#161f27black
Muted foreground
#5c5e60dimgray
#9fa1a3darkgray
Accent
#d8e0e8gainsboro
#d8e0e8gainsboro
Accent foreground
#35475adarkslategray
#35475adarkslategray
Destructive
#711409maroon
#ee432ftomato
Destructive foreground
#f9bab4lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e8e0d8gainsboro
#e8e0d8gainsboro

Contrast

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

Light mode
Text on background19.54:1AAA
Text on card19.48:1AAA
Primary button6.76:1AA
Secondary button7.18:1AAA
Muted text4.89:1AA
Accent7.18:1AAA
Destructive7.03:1AAA
Dark mode
Text on background19.53:1AAA
Text on card19.68:1AAA
Primary button6.76:1AA
Secondary button7.18:1AAA
Muted text6.45:1AA
Accent7.18:1AAA
Destructive3.83:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 67.801);
  --foreground: oklch(0.137 0.018 76.488);
  --muted: oklch(0.904 0.014 247.987);
  --muted-foreground: oklch(0.482 0.004 247.905);
  --popover: oklch(0.993 0.002 67.801);
  --popover-foreground: oklch(0.137 0.018 76.488);
  --card: oklch(0.986 0.004 67.78);
  --card-foreground: oklch(0.12 0.016 77.51);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.912 0.014 67.653);
  --primary-foreground: oklch(0.414 0.039 66.419);
  --secondary: oklch(0.904 0.014 247.981);
  --secondary-foreground: oklch(0.392 0.039 248.867);
  --accent: oklch(0.904 0.014 247.981);
  --accent-foreground: oklch(0.392 0.039 248.867);
  --destructive: oklch(0.358 0.129 30.491);
  --destructive-foreground: oklch(0.846 0.073 25.932);
  --ring: oklch(0.912 0.014 67.653);
  --chart-1: oklch(0.912 0.014 67.653);
  --chart-2: oklch(0.904 0.014 247.981);
  --chart-3: oklch(0.904 0.014 247.981);
  --chart-4: oklch(0.928 0.01 247.938);
  --chart-5: oklch(0.912 0.015 67.633);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.012 74.082);
  --foreground: oklch(0.993 0 67.816);
  --muted: oklch(0.233 0.02 248.699);
  --muted-foreground: oklch(0.707 0.003 247.873);
  --popover: oklch(0.136 0.012 74.082);
  --popover-foreground: oklch(0.993 0 67.816);
  --card: oklch(0.15 0.014 70.852);
  --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.912 0.014 67.653);
  --primary-foreground: oklch(0.414 0.039 66.419);
  --secondary: oklch(0.904 0.014 247.981);
  --secondary-foreground: oklch(0.392 0.039 248.867);
  --accent: oklch(0.904 0.014 247.981);
  --accent-foreground: oklch(0.392 0.039 248.867);
  --destructive: oklch(0.632 0.211 30.203);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.912 0.014 67.653);
  --chart-1: oklch(0.912 0.014 67.653);
  --chart-2: oklch(0.904 0.014 247.981);
  --chart-3: oklch(0.904 0.014 247.981);
  --chart-4: oklch(0.928 0.01 247.938);
  --chart-5: oklch(0.912 0.015 67.633);
}