Thankful for shadcn/ui

Thankful is a shadcn/ui theme built around a muted red primary color (#a08b88) with muted light red accents (#e2dad9). The light mode uses a neutral background (#fdf8f7). Dark mode keeps the muted red primary (#a08b88) on a red-tinted background (#0d0807).

Color palette

TokenLightDark
Background
#fdf8f7snow
#0d0807black
Foreground
#110504black
#faf6f5whitesmoke
Card
#fdf8f7snow
#0d0807black
Card foreground
#110504black
#faf6f5whitesmoke
Popover
#fdf8f7snow
#0d0807black
Popover foreground
#110504black
#faf6f5whitesmoke
Primary
#a08b88rosybrown
#a08b88rosybrown
Primary foreground
#000000black
#000000black
Secondary
#e2dad9gainsboro
#3a2e2cdarkslategray
Secondary foreground
#4e3d3bdarkslategray
#d3c7c5lightgrey
Muted
#e6d7d6gainsboro
#291b19black
Muted foreground
#424242darkslategray
#bdbdbdsilver
Accent
#e2dad9gainsboro
#3a2e2cdarkslategray
Accent foreground
#4e3d3bdarkslategray
#d3c7c5lightgrey
Destructive
#7d110dmaroon
#e82d26crimson
Destructive foreground
#f9c5c3pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a08b88rosybrown
#a08b88rosybrown

Contrast

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

Light mode
Text on background19.00:1AAA
Text on card19.00:1AAA
Primary button6.52:1AA
Secondary button7.45:1AAA
Muted text7.22:1AAA
Accent7.45:1AAA
Destructive7.07:1AAA
Dark mode
Text on background18.55:1AAA
Text on card18.55:1AAA
Primary button6.52:1AA
Secondary button7.94:1AAA
Muted text8.83:1AAA
Accent7.94:1AAA
Destructive4.34:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.006 26.478);
  --foreground: oklch(0.136 0.024 32.021);
  --muted: oklch(0.892 0.016 26.571);
  --muted-foreground: oklch(0.38 0 180);
  --popover: oklch(0.982 0.006 26.478);
  --popover-foreground: oklch(0.136 0.024 32.021);
  --card: oklch(0.982 0.006 26.478);
  --card-foreground: oklch(0.136 0.024 32.021);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.654 0.026 26.748);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.895 0.009 26.509);
  --secondary-foreground: oklch(0.379 0.024 27);
  --accent: oklch(0.895 0.009 26.509);
  --accent-foreground: oklch(0.379 0.024 27);
  --destructive: oklch(0.379 0.142 28.517);
  --destructive-foreground: oklch(0.868 0.06 20.665);
  --ring: oklch(0.654 0.026 26.748);
  --chart-1: oklch(0.654 0.026 26.748);
  --chart-2: oklch(0.895 0.009 26.509);
  --chart-3: oklch(0.895 0.009 26.509);
  --chart-4: oklch(0.92 0.007 26.491);
  --chart-5: oklch(0.651 0.033 26.857);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.011 28.545);
  --foreground: oklch(0.975 0.005 26.471);
  --muted: oklch(0.239 0.024 27.418);
  --muted-foreground: oklch(0.797 0 180);
  --popover: oklch(0.141 0.011 28.545);
  --popover-foreground: oklch(0.975 0.005 26.471);
  --card: oklch(0.141 0.011 28.545);
  --card-foreground: oklch(0.975 0.005 26.471);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.654 0.026 26.748);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.313 0.017 26.912);
  --secondary-foreground: oklch(0.839 0.013 26.551);
  --accent: oklch(0.313 0.017 26.912);
  --accent-foreground: oklch(0.839 0.013 26.551);
  --destructive: oklch(0.603 0.222 28.319);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.654 0.026 26.748);
  --chart-1: oklch(0.654 0.026 26.748);
  --chart-2: oklch(0.313 0.017 26.912);
  --chart-3: oklch(0.313 0.017 26.912);
  --chart-4: oklch(0.342 0.02 26.929);
  --chart-5: oklch(0.651 0.033 26.857);
}