Thankful for shadcn/ui

Thankful is a shadcn/ui theme built around a near-black primary color (#000000) with muted light red accents (#d0c3c3). The light mode uses a neutral background (#fefbfb). Dark mode keeps the near-black primary (#000000) on a neutral background (#080202).

Color palette

TokenLightDark
Background
#fefbfbsnow
#080202black
Foreground
#040101black
#fbf9f9snow
Card
#fcf8f8snow
#0c0303black
Card foreground
#000000black
#fdfcfcsnow
Popover
#fefbfbsnow
#080202black
Popover foreground
#040101black
#fbf9f9snow
Primary
#000000black
#000000black
Primary foreground
#999999darkgray
#999999darkgray
Secondary
#e1dfdfgainsboro
#2a2828darkslategray
Secondary foreground
#4a4545darkslategray
#c3c1c1silver
Muted
#f3e8e8linen
#170c0cblack
Muted foreground
#453a3adarkslategray
#c5babasilver
Accent
#d0c3c3silver
#3c3434darkslategray
Accent foreground
#362b2bdarkslategray
#d4cecelightgrey
Destructive
#bf2312firebrick
#db2814firebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#000000black
#000000black

Contrast

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

Light mode
Text on background20.23:1AAA
Text on card19.88:1AAA
Primary button7.37:1AAA
Secondary button7.13:1AAA
Muted text9.10:1AAA
Accent7.98:1AAA
Destructive6.04:1AA
Dark mode
Text on background19.60:1AAA
Text on card19.87:1AAA
Primary button7.37:1AAA
Secondary button8.19:1AAA
Muted text10.12:1AAA
Accent7.78:1AAA
Destructive4.83:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 17.198);
  --foreground: oklch(0.079 0.019 22.344);
  --muted: oklch(0.939 0.012 17.364);
  --muted-foreground: oklch(0.361 0.016 17.927);
  --popover: oklch(0.991 0.002 17.198);
  --popover-foreground: oklch(0.079 0.019 22.344);
  --card: oklch(0.982 0.005 17.239);
  --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 0 0);
  --primary-foreground: oklch(0.683 0 180);
  --secondary: oklch(0.907 0.002 17.195);
  --secondary-foreground: oklch(0.396 0.006 17.401);
  --accent: oklch(0.828 0.014 17.449);
  --accent-foreground: oklch(0.301 0.017 18.156);
  --destructive: oklch(0.521 0.193 30.52);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0 0 0);
  --chart-1: oklch(0 0 0);
  --chart-2: oklch(0.907 0.002 17.195);
  --chart-3: oklch(0.828 0.014 17.449);
  --chart-4: oklch(0.93 0.001 17.185);
  --chart-5: oklch(0 0 0);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.104 0.018 20.589);
  --foreground: oklch(0.983 0.003 17.202);
  --muted: oklch(0.172 0.019 19.158);
  --muted-foreground: oklch(0.797 0.013 17.43);
  --popover: oklch(0.104 0.018 20.589);
  --popover-foreground: oklch(0.983 0.003 17.202);
  --card: oklch(0.119 0.021 20.618);
  --card-foreground: oklch(0.992 0.001 17.18);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0 0 0);
  --primary-foreground: oklch(0.683 0 180);
  --secondary: oklch(0.279 0.002 17.3);
  --secondary-foreground: oklch(0.812 0.003 17.214);
  --accent: oklch(0.334 0.011 17.727);
  --accent-foreground: oklch(0.856 0.007 17.296);
  --destructive: oklch(0.576 0.215 30.518);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0 0 0);
  --chart-1: oklch(0 0 0);
  --chart-2: oklch(0.279 0.002 17.3);
  --chart-3: oklch(0.334 0.011 17.727);
  --chart-4: oklch(0.309 0.003 17.307);
  --chart-5: oklch(0 0 0);
}