Dimple for shadcn/ui

Dimple is a shadcn/ui theme built around a muted deep yellow primary color (#26241c) with muted light yellow accents (#dcdad0). The light mode uses a neutral background (#fdfbf7). Dark mode keeps the muted deep yellow primary (#26241c) on a neutral background (#070603).

Color palette

TokenLightDark
Background
#fdfbf7snow
#070603black
Foreground
#0c0a03black
#ffffffwhite
Card
#fbfaf3floralwhite
#0a0905black
Card foreground
#080702black
#ffffffwhite
Popover
#fbfaf3floralwhite
#0a0905black
Popover foreground
#080702black
#ffffffwhite
Primary
#26241cblack
#26241cblack
Primary foreground
#c5c0afsilver
#c5c0afsilver
Secondary
#dcdad0lightgrey
#211f18black
Secondary foreground
#464234darkslategray
#c1bca9silver
Muted
#ecebealinen
#151513black
Muted foreground
#534f41darkolivegreen
#bebaacsilver
Accent
#dcdad0lightgrey
#211f18black
Accent foreground
#464234darkslategray
#c1bca9silver
Destructive
#7a3006saddlebrown
#ea5d0bchocolate
Destructive foreground
#fccfb6peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#26241cblack
#26241cblack

Contrast

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

Light mode
Text on background19.20:1AAA
Text on card19.25:1AAA
Primary button8.51:1AAA
Secondary button7.15:1AAA
Muted text6.88:1AA
Accent7.15:1AAA
Destructive6.53:1AA
Dark mode
Text on background20.25:1AAA
Text on card19.90:1AAA
Primary button8.51:1AAA
Secondary button8.70:1AAA
Muted text9.40:1AAA
Accent8.70:1AAA
Destructive3.47:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.006 93.929);
  --foreground: oklch(0.145 0.019 97.932);
  --muted: oklch(0.94 0.002 93.89);
  --muted-foreground: oklch(0.427 0.023 94.34);
  --popover: oklch(0.984 0.009 93.96);
  --popover-foreground: oklch(0.127 0.016 98.61);
  --card: oklch(0.984 0.009 93.96);
  --card-foreground: oklch(0.127 0.016 98.61);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.261 0.015 94.374);
  --primary-foreground: oklch(0.808 0.024 94.164);
  --secondary: oklch(0.887 0.013 94.022);
  --secondary-foreground: oklch(0.38 0.024 94.4);
  --accent: oklch(0.887 0.013 94.022);
  --accent-foreground: oklch(0.38 0.024 94.4);
  --destructive: oklch(0.409 0.114 44.411);
  --destructive-foreground: oklch(0.887 0.061 51.712);
  --ring: oklch(0.261 0.015 94.374);
  --chart-1: oklch(0.261 0.015 94.374);
  --chart-2: oklch(0.887 0.013 94.022);
  --chart-3: oklch(0.887 0.013 94.022);
  --chart-4: oklch(0.908 0.011 93.99);
  --chart-5: oklch(0.263 0.018 94.426);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.009 96.698);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.195 0.003 94.038);
  --muted-foreground: oklch(0.788 0.02 94.119);
  --popover: oklch(0.14 0.01 96.698);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.14 0.01 96.698);
  --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.261 0.015 94.374);
  --primary-foreground: oklch(0.808 0.024 94.164);
  --secondary: oklch(0.237 0.013 94.358);
  --secondary-foreground: oklch(0.794 0.026 94.189);
  --accent: oklch(0.237 0.013 94.358);
  --accent-foreground: oklch(0.794 0.026 94.189);
  --destructive: oklch(0.652 0.19 42.744);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.261 0.015 94.374);
  --chart-1: oklch(0.261 0.015 94.374);
  --chart-2: oklch(0.237 0.013 94.358);
  --chart-3: oklch(0.237 0.013 94.358);
  --chart-4: oklch(0.272 0.016 94.381);
  --chart-5: oklch(0.263 0.018 94.426);
}