Grateful for shadcn/ui

Grateful is a shadcn/ui theme built around a light purple primary color (#eabee6) with light green accents (#beeac1). The light mode uses a neutral background (#fefbfe). Dark mode keeps the light purple primary (#eabee6) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefbfewhite
#000000black
Foreground
#0c040bblack
#fdfcfdwhite
Card
#fdf7fcsnow
#030303black
Card foreground
#080207black
#ffffffwhite
Popover
#fefbfewhite
#000000black
Popover foreground
#0c040bblack
#fdfcfdwhite
Primary
#eabee6thistle
#eabee6thistle
Primary foreground
#591d54indigo
#591d54indigo
Secondary
#beeac1lightgrey
#beeac1lightgrey
Secondary foreground
#1d5922darkgreen
#1d5922darkgreen
Muted
#ecf3edwhitesmoke
#0c130cblack
Muted foreground
#566157dimgray
#9ea99fdarkgray
Accent
#beeac1lightgrey
#beeac1lightgrey
Accent foreground
#1d5922darkgreen
#1d5922darkgreen
Destructive
#c01202firebrick
#f71702red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#eabee6thistle
#eabee6thistle

Contrast

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

Light mode
Text on background19.69:1AAA
Text on card19.46:1AAA
Primary button7.49:1AAA
Secondary button6.26:1AA
Muted text5.74:1AA
Accent6.26:1AA
Destructive6.31:1AA
Dark mode
Text on background20.51:1AAA
Text on card20.67:1AAA
Primary button7.49:1AAA
Secondary button6.26:1AA
Muted text7.76:1AAA
Accent6.26:1AA
Destructive4.12:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 328.111);
  --foreground: oklch(0.125 0.026 329.445);
  --muted: oklch(0.958 0.011 147.945);
  --muted-foreground: oklch(0.481 0.021 147.595);
  --popover: oklch(0.991 0.004 328.111);
  --popover-foreground: oklch(0.125 0.026 329.445);
  --card: oklch(0.982 0.009 328.159);
  --card-foreground: oklch(0.109 0.023 329.284);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.851 0.073 328.926);
  --primary-foreground: oklch(0.345 0.114 331.165);
  --secondary: oklch(0.894 0.072 147.182);
  --secondary-foreground: oklch(0.41 0.106 144.7);
  --accent: oklch(0.894 0.072 147.182);
  --accent-foreground: oklch(0.41 0.106 144.7);
  --destructive: oklch(0.512 0.203 30.169);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.851 0.073 328.926);
  --chart-1: oklch(0.851 0.073 328.926);
  --chart-2: oklch(0.894 0.072 147.182);
  --chart-3: oklch(0.894 0.072 147.182);
  --chart-4: oklch(0.913 0.059 147.361);
  --chart-5: oklch(0.85 0.078 328.975);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.002 328.09);
  --muted: oklch(0.176 0.016 147.031);
  --muted-foreground: oklch(0.722 0.019 147.784);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.002 328.09);
  --card: oklch(0.092 0 180);
  --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.851 0.073 328.926);
  --primary-foreground: oklch(0.345 0.114 331.165);
  --secondary: oklch(0.894 0.072 147.182);
  --secondary-foreground: oklch(0.41 0.106 144.7);
  --accent: oklch(0.894 0.072 147.182);
  --accent-foreground: oklch(0.41 0.106 144.7);
  --destructive: oklch(0.619 0.247 30.005);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.851 0.073 328.926);
  --chart-1: oklch(0.851 0.073 328.926);
  --chart-2: oklch(0.894 0.072 147.182);
  --chart-3: oklch(0.894 0.072 147.182);
  --chart-4: oklch(0.913 0.059 147.361);
  --chart-5: oklch(0.85 0.078 328.975);
}