Gracious for shadcn/ui

Gracious is a shadcn/ui theme built around a muted blue primary color (#b2bcc7) with neutral gray accents (#d1d3d7). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the muted blue primary (#b2bcc7) on a blue-tinted background (#03070c).

Color palette

TokenLightDark
Background
#fcfcfdwhite
#03070cblack
Foreground
#03070dblack
#f5f7f9whitesmoke
Card
#f8fafcghostwhite
#050a10black
Card foreground
#020508black
#f9fafbghostwhite
Popover
#fcfcfdwhite
#03070cblack
Popover foreground
#03070dblack
#f5f7f9whitesmoke
Primary
#b2bcc7silver
#b2bcc7silver
Primary foreground
#1e2329darkslategray
#1e2329darkslategray
Secondary
#eaebeblavender
#303031darkslategray
Secondary foreground
#515252darkslategray
#c9c9casilver
Muted
#dfe3e7gainsboro
#181c20black
Muted foreground
#49515bdarkslategray
#a4adb6darkgray
Accent
#d1d3d7lightgrey
#41474edarkslategray
Accent foreground
#373a3fdarkslategray
#dee0e3gainsboro
Destructive
#762505maroon
#f5500forangered
Destructive foreground
#fcc6b1peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b2bcc7silver
#b2bcc7silver

Contrast

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

Light mode
Text on background19.72:1AAA
Text on card19.50:1AAA
Primary button8.19:1AAA
Secondary button6.54:1AA
Muted text6.21:1AA
Accent7.62:1AAA
Destructive6.83:1AA
Dark mode
Text on background18.78:1AAA
Text on card19.04:1AAA
Primary button8.19:1AAA
Secondary button7.93:1AAA
Muted text7.54:1AAA
Accent7.12:1AAA
Destructive3.47:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.001 253.229);
  --foreground: oklch(0.126 0.017 244.366);
  --muted: oklch(0.913 0.007 253.271);
  --muted-foreground: oklch(0.43 0.019 253.484);
  --popover: oklch(0.992 0.001 253.229);
  --popover-foreground: oklch(0.126 0.017 244.366);
  --card: oklch(0.984 0.003 253.239);
  --card-foreground: oklch(0.11 0.015 243.524);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.79 0.02 253.376);
  --primary-foreground: oklch(0.254 0.014 253.535);
  --secondary: oklch(0.939 0 253.221);
  --secondary-foreground: oklch(0.436 0.002 253.247);
  --accent: oklch(0.867 0.005 253.262);
  --accent-foreground: oklch(0.348 0.009 253.388);
  --destructive: oklch(0.385 0.12 38.607);
  --destructive-foreground: oklch(0.869 0.068 42.613);
  --ring: oklch(0.79 0.02 253.376);
  --chart-1: oklch(0.79 0.02 253.376);
  --chart-2: oklch(0.939 0 253.221);
  --chart-3: oklch(0.867 0.005 253.262);
  --chart-4: oklch(0.962 0 253.22);
  --chart-5: oklch(0.789 0.023 253.403);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.014 245.717);
  --foreground: oklch(0.976 0.004 253.245);
  --muted: oklch(0.223 0.01 253.483);
  --muted-foreground: oklch(0.743 0.017 253.364);
  --popover: oklch(0.127 0.014 245.717);
  --popover-foreground: oklch(0.976 0.004 253.245);
  --card: oklch(0.14 0.017 248.656);
  --card-foreground: oklch(0.984 0.002 253.236);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.79 0.02 253.376);
  --primary-foreground: oklch(0.254 0.014 253.535);
  --secondary: oklch(0.311 0.001 253.244);
  --secondary-foreground: oklch(0.837 0.001 253.227);
  --accent: oklch(0.394 0.014 253.437);
  --accent-foreground: oklch(0.906 0.005 253.256);
  --destructive: oklch(0.655 0.211 37.607);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.79 0.02 253.376);
  --chart-1: oklch(0.79 0.02 253.376);
  --chart-2: oklch(0.311 0.001 253.244);
  --chart-3: oklch(0.394 0.014 253.437);
  --chart-4: oklch(0.341 0.001 253.245);
  --chart-5: oklch(0.789 0.023 253.403);
}