Gracious for shadcn/ui

Gracious is a shadcn/ui theme built around a neutral gray primary color (#aeb2ae) with muted light green accents (#c3d1c2). The light mode uses a neutral background (#fbfefb). Dark mode keeps the neutral gray primary (#aeb2ae) on a green-tinted background (#050a05).

Color palette

TokenLightDark
Background
#fbfefbwhite
#050a05black
Foreground
#010401black
#ffffffwhite
Card
#f7fdf7mintcream
#070e07black
Card foreground
#000000black
#ffffffwhite
Popover
#f7fdf7mintcream
#070e07black
Popover foreground
#000000black
#ffffffwhite
Primary
#aeb2aedarkgray
#aeb2aedarkgray
Primary foreground
#161816black
#161816black
Secondary
#d6dbd6gainsboro
#1b221bblack
Secondary foreground
#3c443bdarkslategray
#b0c0afsilver
Muted
#f0f4f0whitesmoke
#0b0f0bblack
Muted foreground
#50644fdarkolivegreen
#9cb09bdarkgray
Accent
#c3d1c2silver
#2b3c2adarkslategray
Accent foreground
#2a372adarkslategray
#c4d5c3silver
Destructive
#a81d0bfirebrick
#f13b22orangered
Destructive foreground
#fdeae7linen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#aeb2aedarkgray
#aeb2aedarkgray

Contrast

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

Light mode
Text on background20.27:1AAA
Text on card20.32:1AAA
Primary button8.32:1AAA
Secondary button7.21:1AAA
Muted text5.78:1AA
Accent7.86:1AAA
Destructive6.37:1AA
Dark mode
Text on background19.92:1AAA
Text on card19.56:1AAA
Primary button8.32:1AAA
Secondary button8.49:1AAA
Muted text8.37:1AAA
Accent7.68:1AAA
Destructive3.90: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.994 0.005 144.102);
  --foreground: oklch(0.099 0.024 141.901);
  --muted: oklch(0.964 0.007 144.086);
  --muted-foreground: oklch(0.48 0.042 143.604);
  --popover: oklch(0.988 0.009 144.074);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.988 0.009 144.074);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.76 0.008 144.066);
  --primary-foreground: oklch(0.205 0.003 144.034);
  --secondary: oklch(0.887 0.009 144.07);
  --secondary-foreground: oklch(0.377 0.019 143.835);
  --accent: oklch(0.845 0.026 143.951);
  --accent-foreground: oklch(0.321 0.029 143.58);
  --destructive: oklch(0.472 0.176 30.965);
  --destructive-foreground: oklch(0.951 0.022 26.608);
  --ring: oklch(0.76 0.008 144.066);
  --chart-1: oklch(0.76 0.008 144.066);
  --chart-2: oklch(0.887 0.009 144.07);
  --chart-3: oklch(0.845 0.026 143.951);
  --chart-4: oklch(0.91 0.007 144.084);
  --chart-5: oklch(0.762 0.017 144.001);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.017 143.083);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.162 0.011 143.716);
  --muted-foreground: oklch(0.737 0.038 143.824);
  --popover: oklch(0.152 0.019 143.126);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.152 0.019 143.126);
  --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.76 0.008 144.066);
  --primary-foreground: oklch(0.205 0.003 144.034);
  --secondary: oklch(0.243 0.017 143.71);
  --secondary-foreground: oklch(0.791 0.03 143.907);
  --accent: oklch(0.335 0.037 143.461);
  --accent-foreground: oklch(0.855 0.03 143.925);
  --destructive: oklch(0.629 0.221 31.036);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.76 0.008 144.066);
  --chart-1: oklch(0.76 0.008 144.066);
  --chart-2: oklch(0.243 0.017 143.71);
  --chart-3: oklch(0.335 0.037 143.461);
  --chart-4: oklch(0.277 0.021 143.682);
  --chart-5: oklch(0.762 0.017 144.001);
}