Thoughtful for shadcn/ui

Thoughtful is a shadcn/ui theme built around a light green primary color (#f0f5d6) with light purple accents (#f5d6f0). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#f0f5d6) on a green-tinted background (#0d0e06).

Color palette

TokenLightDark
Background
#ffffffwhite
#0d0e06black
Foreground
#040401black
#ffffffwhite
Card
#fcfcfcsnow
#101208black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#0d0e06black
Popover foreground
#040401black
#ffffffwhite
Primary
#f0f5d6beige
#f0f5d6beige
Primary foreground
#24290ablack
#24290ablack
Secondary
#d6f0f5lavender
#d6f0f5lavender
Secondary foreground
#0a2429black
#0a2429black
Muted
#deebedlavender
#121f21black
Muted foreground
#565758dimgray
#a7a9a9darkgray
Accent
#f5d6f0mistyrose
#f5d6f0mistyrose
Accent foreground
#7a1f6dpurple
#7a1f6dpurple
Destructive
#913108saddlebrown
#ec500eorangered
Destructive foreground
#fcdccfbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f0f5d6beige
#f0f5d6beige

Contrast

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

Light mode
Text on background20.52:1AAA
Text on card20.54:1AAA
Primary button13.40:1AAA
Secondary button13.62:1AAA
Muted text5.93:1AA
Accent7.02:1AAA
Destructive6.15:1AA
Dark mode
Text on background19.36:1AAA
Text on card18.89:1AAA
Primary button13.40:1AAA
Secondary button13.62:1AAA
Muted text7.14:1AAA
Accent7.02:1AAA
Destructive3.65:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.103 0.014 114.218);
  --muted: oklch(0.931 0.015 209.435);
  --muted-foreground: oklch(0.457 0.002 209.457);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.103 0.014 114.218);
  --card: oklch(0.992 0 161.565);
  --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.958 0.04 114.09);
  --primary-foreground: oklch(0.268 0.049 117.007);
  --secondary: oklch(0.938 0.028 209.431);
  --secondary-foreground: oklch(0.243 0.033 210.883);
  --accent: oklch(0.91 0.048 330.91);
  --accent-foreground: oklch(0.417 0.154 334.78);
  --destructive: oklch(0.449 0.137 39.387);
  --destructive-foreground: oklch(0.918 0.04 44.594);
  --ring: oklch(0.958 0.04 114.09);
  --chart-1: oklch(0.958 0.04 114.09);
  --chart-2: oklch(0.938 0.028 209.431);
  --chart-3: oklch(0.91 0.048 330.91);
  --chart-4: oklch(0.957 0.02 209.431);
  --chart-5: oklch(0.96 0.042 114.127);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.161 0.017 114.889);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.228 0.019 209.725);
  --muted-foreground: oklch(0.733 0.002 209.462);
  --popover: oklch(0.161 0.017 114.889);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.176 0.02 115.331);
  --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.958 0.04 114.09);
  --primary-foreground: oklch(0.268 0.049 117.007);
  --secondary: oklch(0.938 0.028 209.431);
  --secondary-foreground: oklch(0.243 0.033 210.883);
  --accent: oklch(0.91 0.048 330.91);
  --accent-foreground: oklch(0.417 0.154 334.78);
  --destructive: oklch(0.641 0.202 38.547);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.958 0.04 114.09);
  --chart-1: oklch(0.958 0.04 114.09);
  --chart-2: oklch(0.938 0.028 209.431);
  --chart-3: oklch(0.91 0.048 330.91);
  --chart-4: oklch(0.957 0.02 209.431);
  --chart-5: oklch(0.96 0.042 114.127);
}