Graceful for shadcn/ui

Graceful is a shadcn/ui theme built around a muted deep teal primary color (#293231) with muted deep red accents (#32292b). The light mode uses a neutral background (#f7fdfc). Dark mode keeps the muted deep teal primary (#293231) on a neutral background (#030706).

Color palette

TokenLightDark
Background
#f7fdfcmintcream
#030706black
Foreground
#061311black
#ffffffwhite
Card
#f3fcfamintcream
#050a09black
Card foreground
#05100eblack
#ffffffwhite
Popover
#f7fdfcmintcream
#030706black
Popover foreground
#061311black
#ffffffwhite
Primary
#293231darkslategray
#293231darkslategray
Primary foreground
#c1cdcasilver
#c1cdcasilver
Secondary
#32292bdarkslategray
#32292bdarkslategray
Secondary foreground
#cdc1c3silver
#cdc1c3silver
Muted
#efebeclinen
#141010black
Muted foreground
#675f61dimgray
#a09899darkgray
Accent
#32292bdarkslategray
#32292bdarkslategray
Accent foreground
#cdc1c3silver
#cdc1c3silver
Destructive
#be2304firebrick
#fb5837tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#293231darkslategray
#293231darkslategray

Contrast

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

Light mode
Text on background18.40:1AAA
Text on card18.50:1AAA
Primary button8.01:1AAA
Secondary button8.03:1AAA
Muted text5.24:1AA
Accent8.03:1AAA
Destructive6.12:1AA
Dark mode
Text on background20.24:1AAA
Text on card19.89:1AAA
Primary button8.01:1AAA
Secondary button8.03:1AAA
Muted text6.71:1AA
Accent8.03:1AAA
Destructive6.54:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.007 184.127);
  --foreground: oklch(0.175 0.02 181.184);
  --muted: oklch(0.943 0.005 4.456);
  --muted-foreground: oklch(0.495 0.01 4.865);
  --popover: oklch(0.989 0.007 184.127);
  --popover-foreground: oklch(0.175 0.02 181.184);
  --card: oklch(0.984 0.01 184.032);
  --card-foreground: oklch(0.159 0.018 182.093);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.31 0.013 183.16);
  --primary-foreground: oklch(0.838 0.013 183.907);
  --secondary: oklch(0.293 0.014 5.546);
  --secondary-foreground: oklch(0.822 0.013 4.726);
  --accent: oklch(0.293 0.014 5.546);
  --accent-foreground: oklch(0.822 0.013 4.726);
  --destructive: oklch(0.518 0.193 32.138);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.31 0.013 183.16);
  --chart-1: oklch(0.31 0.013 183.16);
  --chart-2: oklch(0.293 0.014 5.546);
  --chart-3: oklch(0.293 0.014 5.546);
  --chart-4: oklch(0.322 0.016 5.59);
  --chart-5: oklch(0.313 0.017 182.828);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.009 184.148);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.177 0.008 5.482);
  --muted-foreground: oklch(0.686 0.01 4.68);
  --popover: oklch(0.122 0.009 184.148);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.139 0.011 184.131);
  --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.31 0.013 183.16);
  --primary-foreground: oklch(0.838 0.013 183.907);
  --secondary: oklch(0.293 0.014 5.546);
  --secondary-foreground: oklch(0.822 0.013 4.726);
  --accent: oklch(0.293 0.014 5.546);
  --accent-foreground: oklch(0.822 0.013 4.726);
  --destructive: oklch(0.675 0.205 33.211);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.31 0.013 183.16);
  --chart-1: oklch(0.31 0.013 183.16);
  --chart-2: oklch(0.293 0.014 5.546);
  --chart-3: oklch(0.293 0.014 5.546);
  --chart-4: oklch(0.322 0.016 5.59);
  --chart-5: oklch(0.313 0.017 182.828);
}