Sprinkles for shadcn/ui

Sprinkles is a shadcn/ui theme built around a red primary color (#8c4436) with muted light red accents (#c9c0c0). The light mode uses a neutral background (#ffffff). Dark mode keeps the red primary (#8c4436) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#120503black
#fcf9f8snow
Card
#fcfcfcsnow
#030303black
Card foreground
#0d0402black
#fdfcfbsnow
Popover
#ffffffwhite
#000000black
Popover foreground
#120503black
#fcf9f8snow
Primary
#8c4436sienna
#8c4436sienna
Primary foreground
#fcf8f8snow
#fcf8f8snow
Secondary
#dededegainsboro
#3d2c29darkslategray
Secondary foreground
#454545darkslategray
#d6c5c2lightgrey
Muted
#eee7e7linen
#181211black
Muted foreground
#5f5959dimgray
#a6a1a0darkgray
Accent
#c9c0c0silver
#543630darkolivegreen
Accent foreground
#2f2828darkslategray
#e5d5d2gainsboro
Destructive
#982910brown
#e73e18orangered
Destructive foreground
#fce4dfmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8c4436sienna
#8c4436sienna

Contrast

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

Light mode
Text on background20.02:1AAA
Text on card19.84:1AAA
Primary button6.64:1AA
Secondary button7.11:1AAA
Muted text5.62:1AA
Accent8.07:1AAA
Destructive6.49:1AA
Dark mode
Text on background20.04:1AAA
Text on card20.18:1AAA
Primary button6.64:1AA
Secondary button7.91:1AAA
Muted text7.26:1AAA
Accent7.55:1AAA
Destructive4.12:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.138 0.026 38.448);
  --muted: oklch(0.933 0.008 17.307);
  --muted-foreground: oklch(0.469 0.007 17.411);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.138 0.026 38.448);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.123 0.022 39.629);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.475 0.1 32.642);
  --primary-foreground: oklch(0.983 0.004 31.051);
  --secondary: oklch(0.9 0 188.746);
  --secondary-foreground: oklch(0.39 0 165.964);
  --accent: oklch(0.814 0.011 17.374);
  --accent-foreground: oklch(0.284 0.01 17.776);
  --destructive: oklch(0.454 0.151 33.697);
  --destructive-foreground: oklch(0.937 0.027 32.691);
  --ring: oklch(0.475 0.1 32.642);
  --chart-1: oklch(0.475 0.1 32.642);
  --chart-2: oklch(0.9 0 188.746);
  --chart-3: oklch(0.814 0.011 17.374);
  --chart-4: oklch(0.923 0 153.435);
  --chart-5: oklch(0.476 0.107 32.771);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.983 0.004 31.05);
  --muted: oklch(0.189 0.011 31.275);
  --muted-foreground: oklch(0.714 0.006 31.058);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.983 0.004 31.05);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.992 0.002 31.047);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.475 0.1 32.642);
  --primary-foreground: oklch(0.983 0.004 31.051);
  --secondary: oklch(0.313 0.026 31.444);
  --secondary-foreground: oklch(0.837 0.02 31.102);
  --accent: oklch(0.368 0.044 31.758);
  --accent-foreground: oklch(0.885 0.018 31.093);
  --destructive: oklch(0.614 0.21 33.473);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.475 0.1 32.642);
  --chart-1: oklch(0.475 0.1 32.642);
  --chart-2: oklch(0.313 0.026 31.444);
  --chart-3: oklch(0.368 0.044 31.758);
  --chart-4: oklch(0.341 0.029 31.464);
  --chart-5: oklch(0.476 0.107 32.771);
}