Gracious for shadcn/ui

Gracious is a shadcn/ui theme built around a neutral gray primary color (#8f9e96) with neutral gray accents (#8f9e9d). The light mode uses a neutral background (#f6fdfa). Dark mode keeps the neutral gray primary (#8f9e96) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f6fdfamintcream
#000000black
Foreground
#020d07black
#f9fbfamintcream
Card
#f2fdf7mintcream
#030303black
Card foreground
#010905black
#fcfdfcwhite
Popover
#f6fdfamintcream
#000000black
Popover foreground
#020d07black
#f9fbfamintcream
Primary
#8f9e96darkseagreen
#8f9e96darkseagreen
Primary foreground
#000000black
#000000black
Secondary
#909e8fdarkseagreen
#909e8fdarkseagreen
Secondary foreground
#000000black
#000000black
Muted
#f2f3f1whitesmoke
#0c0e0cblack
Muted foreground
#50644fdarkolivegreen
#9cb09bdarkgray
Accent
#8f9e9ddarkgray
#8f9e9ddarkgray
Accent foreground
#000000black
#000000black
Destructive
#77180dmaroon
#ea4f3etomato
Destructive foreground
#f8c4bfpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8f9e96darkseagreen
#8f9e96darkseagreen

Contrast

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

Light mode
Text on background19.20:1AAA
Text on card19.30:1AAA
Primary button7.48:1AAA
Secondary button7.45:1AAA
Muted text5.75:1AA
Accent7.53:1AAA
Destructive7.08:1AAA
Dark mode
Text on background20.20:1AAA
Text on card20.28:1AAA
Primary button7.48:1AAA
Secondary button7.45:1AAA
Muted text8.41:1AAA
Accent7.53:1AAA
Destructive3.69: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.989 0.009 162.39);
  --foreground: oklch(0.145 0.025 162.01);
  --muted: oklch(0.963 0.003 144.115);
  --muted-foreground: oklch(0.48 0.042 143.604);
  --popover: oklch(0.989 0.009 162.39);
  --popover-foreground: oklch(0.145 0.025 162.01);
  --card: oklch(0.984 0.014 162.272);
  --card-foreground: oklch(0.126 0.022 162.653);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.684 0.02 161.865);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.683 0.026 143.901);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.687 0.017 193.128);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.374 0.132 30.413);
  --destructive-foreground: oklch(0.866 0.06 25.701);
  --ring: oklch(0.684 0.02 161.865);
  --chart-1: oklch(0.684 0.02 161.865);
  --chart-2: oklch(0.683 0.026 143.901);
  --chart-3: oklch(0.687 0.017 193.128);
  --chart-4: oklch(0.707 0.024 143.927);
  --chart-5: oklch(0.689 0.029 161.542);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.986 0.002 162.563);
  --muted: oklch(0.159 0.004 143.983);
  --muted-foreground: oklch(0.737 0.038 143.824);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.986 0.002 162.563);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.993 0.001 162.591);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.684 0.02 161.865);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.683 0.026 143.901);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.687 0.017 193.128);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.639 0.193 29.684);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.684 0.02 161.865);
  --chart-1: oklch(0.684 0.02 161.865);
  --chart-2: oklch(0.683 0.026 143.901);
  --chart-3: oklch(0.687 0.017 193.128);
  --chart-4: oklch(0.707 0.024 143.927);
  --chart-5: oklch(0.689 0.029 161.542);
}