Gracious for shadcn/ui

Gracious is a shadcn/ui theme built around a vivid deep cyan primary color (#011b28) with vivid deep green accents (#1b2801). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the vivid deep cyan primary (#011b28) on a neutral background (#020303).

Color palette

TokenLightDark
Background
#fbfdfewhite
#020303black
Foreground
#010304black
#ffffffwhite
Card
#fbfdfewhite
#020303black
Card foreground
#010304black
#ffffffwhite
Popover
#fbfdfewhite
#020303black
Popover foreground
#010304black
#ffffffwhite
Primary
#011b28black
#011b28black
Primary foreground
#07a5eddeepskyblue
#07a5eddeepskyblue
Secondary
#28011bblack
#28011bblack
Secondary foreground
#fa61cahotpink
#fa61cahotpink
Muted
#e4e2e3gainsboro
#1d1b1dblack
Muted foreground
#4f404adarkslategray
#bfb0basilver
Accent
#1b2801black
#1b2801black
Accent foreground
#a5ed07chartreuse
#a5ed07chartreuse
Destructive
#91270dsaddlebrown
#eb471eorangered
Destructive foreground
#fbdcd5mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#011b28black
#011b28black

Contrast

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

Light mode
Text on background20.25:1AAA
Text on card20.25:1AAA
Primary button6.38:1AA
Secondary button6.87:1AA
Muted text7.50:1AAA
Accent10.93:1AAA
Destructive6.49:1AA
Dark mode
Text on background20.66:1AAA
Text on card20.66:1AAA
Primary button6.38:1AA
Secondary button6.87:1AA
Muted text8.27:1AAA
Accent10.93:1AAA
Destructive3.84: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.993 0.003 226.891);
  --foreground: oklch(0.094 0.013 219.285);
  --muted: oklch(0.914 0.004 336.644);
  --muted-foreground: oklch(0.39 0.028 337.882);
  --popover: oklch(0.993 0.003 226.891);
  --popover-foreground: oklch(0.094 0.013 219.285);
  --card: oklch(0.993 0.003 226.891);
  --card-foreground: oklch(0.094 0.013 219.285);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.21 0.041 231.178);
  --primary-foreground: oklch(0.686 0.153 239.013);
  --secondary: oklch(0.187 0.076 343.359);
  --secondary-foreground: oklch(0.72 0.217 342.162);
  --accent: oklch(0.254 0.062 125.585);
  --accent-foreground: oklch(0.866 0.228 128.66);
  --destructive: oklch(0.439 0.146 34.338);
  --destructive-foreground: oklch(0.919 0.036 34.312);
  --ring: oklch(0.21 0.041 231.178);
  --chart-1: oklch(0.21 0.041 231.178);
  --chart-2: oklch(0.187 0.076 343.359);
  --chart-3: oklch(0.254 0.062 125.585);
  --chart-4: oklch(0.226 0.092 344.575);
  --chart-5: oklch(0.211 0.042 231.246);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.093 0.006 223.218);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.225 0.006 337.043);
  --muted-foreground: oklch(0.773 0.023 337.135);
  --popover: oklch(0.093 0.006 223.218);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.093 0.006 223.218);
  --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.21 0.041 231.178);
  --primary-foreground: oklch(0.686 0.153 239.013);
  --secondary: oklch(0.187 0.076 343.359);
  --secondary-foreground: oklch(0.72 0.217 342.162);
  --accent: oklch(0.254 0.062 125.585);
  --accent-foreground: oklch(0.866 0.228 128.66);
  --destructive: oklch(0.63 0.207 34.43);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.21 0.041 231.178);
  --chart-1: oklch(0.21 0.041 231.178);
  --chart-2: oklch(0.187 0.076 343.359);
  --chart-3: oklch(0.254 0.062 125.585);
  --chart-4: oklch(0.226 0.092 344.575);
  --chart-5: oklch(0.211 0.042 231.246);
}