Sundae for shadcn/ui

Sundae is a shadcn/ui theme built around a muted light teal primary color (#d7dfdf) with muted light teal accents (#d2dfdf). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light teal primary (#d7dfdf) on a neutral background (#020808).

Color palette

TokenLightDark
Background
#ffffffwhite
#020808black
Foreground
#041110black
#ffffffwhite
Card
#fcfcfcsnow
#040c0bblack
Card foreground
#030c0cblack
#ffffffwhite
Popover
#fcfcfcsnow
#040c0bblack
Popover foreground
#030c0cblack
#ffffffwhite
Primary
#d7dfdfgainsboro
#d7dfdfgainsboro
Primary foreground
#3b4a49darkslategray
#3b4a49darkslategray
Secondary
#d2dfdfgainsboro
#202222black
Secondary foreground
#354b4adarkslategray
#b8bcbcsilver
Muted
#d0e1e1gainsboro
#1e2f2edarkslategray
Muted foreground
#454a4adarkslategray
#b5babasilver
Accent
#d2dfdfgainsboro
#202222black
Accent foreground
#354b4adarkslategray
#b8bcbcsilver
Destructive
#892d0bsaddlebrown
#ee5f2bchocolate
Destructive foreground
#fbd8cbbisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d7dfdfgainsboro
#d7dfdfgainsboro

Contrast

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

Light mode
Text on background19.21:1AAA
Text on card19.35:1AAA
Primary button6.87:1AA
Secondary button6.82:1AA
Muted text6.67:1AA
Accent6.82:1AA
Destructive6.48:1AA
Dark mode
Text on background20.19:1AAA
Text on card19.80:1AAA
Primary button6.87:1AA
Secondary button8.32:1AAA
Muted text7.15:1AAA
Accent8.32:1AAA
Destructive6.28:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.163 0.02 192.824);
  --muted: oklch(0.897 0.018 194.418);
  --muted-foreground: oklch(0.405 0.007 194.448);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.145 0.017 193.152);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.145 0.017 193.152);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.898 0.008 194.614);
  --primary-foreground: oklch(0.395 0.019 193.922);
  --secondary: oklch(0.894 0.014 194.5);
  --secondary-foreground: oklch(0.393 0.027 193.532);
  --accent: oklch(0.894 0.014 194.5);
  --accent-foreground: oklch(0.393 0.027 193.532);
  --destructive: oklch(0.43 0.132 37.876);
  --destructive-foreground: oklch(0.908 0.043 41.018);
  --ring: oklch(0.898 0.008 194.614);
  --chart-1: oklch(0.898 0.008 194.614);
  --chart-2: oklch(0.894 0.014 194.5);
  --chart-3: oklch(0.894 0.014 194.5);
  --chart-4: oklch(0.916 0.011 194.563);
  --chart-5: oklch(0.9 0.011 194.567);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.013 193.579);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.289 0.022 193.372);
  --muted-foreground: oklch(0.786 0.006 194.638);
  --popover: oklch(0.143 0.014 193.422);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.143 0.014 193.422);
  --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.898 0.008 194.614);
  --primary-foreground: oklch(0.395 0.019 193.922);
  --secondary: oklch(0.25 0.003 194.571);
  --secondary-foreground: oklch(0.793 0.005 194.681);
  --accent: oklch(0.25 0.003 194.571);
  --accent-foreground: oklch(0.793 0.005 194.681);
  --destructive: oklch(0.662 0.188 38.867);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.898 0.008 194.614);
  --chart-1: oklch(0.898 0.008 194.614);
  --chart-2: oklch(0.25 0.003 194.571);
  --chart-3: oklch(0.25 0.003 194.571);
  --chart-4: oklch(0.283 0.004 194.558);
  --chart-5: oklch(0.9 0.011 194.567);
}