Gratitude for shadcn/ui

Gratitude is a shadcn/ui theme built around a muted deep red primary color (#4b332f) with muted light red accents (#d9c3bf). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep red primary (#4b332f) on a neutral background (#070403).

Color palette

TokenLightDark
Background
#ffffffwhite
#070403black
Foreground
#000000black
#ffffffwhite
Card
#ffffffwhite
#070403black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#070403black
Popover foreground
#000000black
#ffffffwhite
Primary
#4b332fdarkslategray
#4b332fdarkslategray
Primary foreground
#e0d0cdlightgrey
#e0d0cdlightgrey
Secondary
#e2d7d5gainsboro
#382b29darkslategray
Secondary foreground
#4e3a36darkslategray
#d2c3c1silver
Muted
#e8e4e3gainsboro
#1c1817black
Muted foreground
#685c5adimgray
#a59997darkgray
Accent
#d9c3bfsilver
#573c38darkolivegreen
Accent foreground
#402a26darkslategray
#e7dcdagainsboro
Destructive
#94310asaddlebrown
#f0652dtomato
Destructive foreground
#fcdfd4antiquewhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4b332fdarkslategray
#4b332fdarkslategray

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.72:1AAA
Secondary button7.50:1AAA
Muted text5.09:1AA
Accent7.91:1AAA
Destructive6.15:1AA
Dark mode
Text on background20.45:1AAA
Text on card20.45:1AAA
Primary button7.72:1AAA
Secondary button7.96:1AAA
Muted text6.37:1AA
Accent7.38:1AAA
Destructive6.59:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.922 0.004 29.482);
  --muted-foreground: oklch(0.486 0.015 29.608);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.349 0.036 30.18);
  --primary-foreground: oklch(0.869 0.018 29.552);
  --secondary: oklch(0.887 0.012 29.519);
  --secondary-foreground: oklch(0.37 0.03 29.97);
  --accent: oklch(0.834 0.026 29.607);
  --accent-foreground: oklch(0.31 0.035 30.28);
  --destructive: oklch(0.455 0.14 38.539);
  --destructive-foreground: oklch(0.925 0.035 42.832);
  --ring: oklch(0.349 0.036 30.18);
  --chart-1: oklch(0.349 0.036 30.18);
  --chart-2: oklch(0.887 0.012 29.519);
  --chart-3: oklch(0.834 0.026 29.607);
  --chart-4: oklch(0.911 0.01 29.505);
  --chart-5: oklch(0.348 0.041 30.326);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.111 0.01 33.253);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.213 0.006 29.58);
  --muted-foreground: oklch(0.693 0.014 29.547);
  --popover: oklch(0.111 0.01 33.253);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.111 0.01 33.253);
  --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.349 0.036 30.18);
  --primary-foreground: oklch(0.869 0.018 29.552);
  --secondary: oklch(0.303 0.02 29.851);
  --secondary-foreground: oklch(0.83 0.017 29.548);
  --accent: oklch(0.386 0.039 30.161);
  --accent-foreground: oklch(0.902 0.013 29.521);
  --destructive: oklch(0.674 0.185 40.12);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.349 0.036 30.18);
  --chart-1: oklch(0.349 0.036 30.18);
  --chart-2: oklch(0.303 0.02 29.851);
  --chart-3: oklch(0.386 0.039 30.161);
  --chart-4: oklch(0.333 0.023 29.869);
  --chart-5: oklch(0.348 0.041 30.326);
}