Dessert for shadcn/ui

Dessert is a shadcn/ui theme built around a neutral gray primary color (#454040) with muted light red accents (#d5c8c8). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the neutral gray primary (#454040) on a neutral background (#070303).

Color palette

TokenLightDark
Background
#fdf7f7snow
#070303black
Foreground
#160403black
#faf4f4whitesmoke
Card
#fbf3f3lavenderblush
#0b0404black
Card foreground
#120303black
#fcf8f8snow
Popover
#fbf3f3lavenderblush
#0b0404black
Popover foreground
#120303black
#fcf8f8snow
Primary
#454040darkslategray
#454040darkslategray
Primary foreground
#dddadagainsboro
#dddadagainsboro
Secondary
#e2dfdfgainsboro
#161313black
Secondary foreground
#4c4343darkslategray
#b4a7a7darkgray
Muted
#e1dbdbgainsboro
#241e1eblack
Muted foreground
#564343darkslategray
#bca9a9darkgray
Accent
#d5c8c8lightgrey
#312626darkslategray
Accent foreground
#3d2f2fdarkslategray
#ccbdbdsilver
Destructive
#a32300firebrick
#f53500orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#454040darkslategray
#454040darkslategray

Contrast

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

Light mode
Text on background18.85:1AAA
Text on card18.54:1AAA
Primary button7.36:1AAA
Secondary button7.21:1AAA
Muted text6.73:1AA
Accent7.87:1AAA
Destructive7.48:1AAA
Dark mode
Text on background18.87:1AAA
Text on card19.25:1AAA
Primary button7.36:1AAA
Secondary button7.94:1AAA
Muted text7.31:1AAA
Accent8.07:1AAA
Destructive3.89:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.006 18.451);
  --foreground: oklch(0.142 0.038 24.876);
  --muted: oklch(0.896 0.006 18.472);
  --muted-foreground: oklch(0.403 0.027 19.474);
  --popover: oklch(0.972 0.009 18.497);
  --popover-foreground: oklch(0.129 0.033 24.702);
  --card: oklch(0.972 0.009 18.497);
  --card-foreground: oklch(0.129 0.033 24.702);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.376 0.007 18.658);
  --primary-foreground: oklch(0.89 0.003 18.415);
  --secondary: oklch(0.905 0.004 18.428);
  --secondary-foreground: oklch(0.392 0.012 18.824);
  --accent: oklch(0.844 0.014 18.616);
  --accent-foreground: oklch(0.32 0.02 19.394);
  --destructive: oklch(0.468 0.168 34.028);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.376 0.007 18.658);
  --chart-1: oklch(0.376 0.007 18.658);
  --chart-2: oklch(0.905 0.004 18.428);
  --chart-3: oklch(0.844 0.014 18.616);
  --chart-4: oklch(0.929 0.003 18.41);
  --chart-5: oklch(0.372 0.013 18.901);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.107 0.014 21.114);
  --foreground: oklch(0.973 0.006 18.463);
  --muted: oklch(0.243 0.009 18.957);
  --muted-foreground: oklch(0.751 0.023 18.839);
  --popover: oklch(0.122 0.016 21.118);
  --popover-foreground: oklch(0.982 0.004 18.429);
  --card: oklch(0.122 0.016 21.118);
  --card-foreground: oklch(0.982 0.004 18.429);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.376 0.007 18.658);
  --primary-foreground: oklch(0.89 0.003 18.415);
  --secondary: oklch(0.19 0.005 18.797);
  --secondary-foreground: oklch(0.739 0.015 18.675);
  --accent: oklch(0.281 0.017 19.339);
  --accent-foreground: oklch(0.811 0.017 18.689);
  --destructive: oklch(0.63 0.231 33.243);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.376 0.007 18.658);
  --chart-1: oklch(0.376 0.007 18.658);
  --chart-2: oklch(0.19 0.005 18.797);
  --chart-3: oklch(0.281 0.017 19.339);
  --chart-4: oklch(0.222 0.007 18.856);
  --chart-5: oklch(0.372 0.013 18.901);
}