Thoughtful for shadcn/ui

Thoughtful is a shadcn/ui theme built around a light indigo primary color (#b7bae6) with neutral gray accents (#d7d7db). The light mode uses a neutral background (#fbfcfd). Dark mode keeps the light indigo primary (#b7bae6) on an indigo-tinted background (#04040b).

Color palette

TokenLightDark
Background
#fbfcfdwhite
#04040bblack
Foreground
#010209black
#f8f8fcghostwhite
Card
#f8f8fcghostwhite
#05060fblack
Card foreground
#010104black
#fcfcfdwhite
Popover
#fbfcfdwhite
#04040bblack
Popover foreground
#010209black
#f8f8fcghostwhite
Primary
#b7bae6lightsteelblue
#b7bae6lightsteelblue
Primary foreground
#1c1e4fmidnightblue
#1c1e4fmidnightblue
Secondary
#d7d7dbgainsboro
#2a2b37darkslategray
Secondary foreground
#3d3d43darkslategray
#c2c3d0silver
Muted
#dedfe8gainsboro
#171821black
Muted foreground
#444446darkslategray
#b9babbsilver
Accent
#d7d7dbgainsboro
#2a2b37darkslategray
Accent foreground
#3d3d43darkslategray
#c2c3d0silver
Destructive
#d01901firebrick
#fe280borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b7bae6lightsteelblue
#b7bae6lightsteelblue

Contrast

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

Light mode
Text on background20.13:1AAA
Text on card19.68:1AAA
Primary button8.27:1AAA
Secondary button7.51:1AAA
Muted text7.30:1AAA
Accent7.51:1AAA
Destructive5.49:1AA
Dark mode
Text on background19.27:1AAA
Text on card19.73:1AAA
Primary button8.27:1AAA
Secondary button8.02:1AAA
Muted text9.09:1AAA
Accent8.02:1AAA
Destructive3.81:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.002 283.928);
  --foreground: oklch(0.087 0.028 274.51);
  --muted: oklch(0.905 0.012 283.734);
  --muted-foreground: oklch(0.388 0.002 283.874);
  --popover: oklch(0.99 0.002 283.928);
  --popover-foreground: oklch(0.087 0.028 274.51);
  --card: oklch(0.98 0.005 283.883);
  --card-foreground: oklch(0.069 0.022 274.51);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.801 0.062 282.525);
  --primary-foreground: oklch(0.267 0.088 276.36);
  --secondary: oklch(0.88 0.005 283.874);
  --secondary-foreground: oklch(0.362 0.01 283.463);
  --accent: oklch(0.88 0.005 283.874);
  --accent-foreground: oklch(0.362 0.01 283.463);
  --destructive: oklch(0.546 0.214 30.718);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.801 0.062 282.525);
  --chart-1: oklch(0.801 0.062 282.525);
  --chart-2: oklch(0.88 0.005 283.874);
  --chart-3: oklch(0.88 0.005 283.874);
  --chart-4: oklch(0.904 0.004 283.896);
  --chart-5: oklch(0.798 0.066 282.419);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.113 0.02 279.411);
  --foreground: oklch(0.981 0.004 283.899);
  --muted: oklch(0.212 0.018 282.398);
  --muted-foreground: oklch(0.788 0.002 283.931);
  --popover: oklch(0.113 0.02 279.411);
  --popover-foreground: oklch(0.981 0.004 283.899);
  --card: oklch(0.125 0.023 279.373);
  --card-foreground: oklch(0.991 0.002 283.936);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.801 0.062 282.525);
  --primary-foreground: oklch(0.267 0.088 276.36);
  --secondary: oklch(0.293 0.022 282.598);
  --secondary-foreground: oklch(0.821 0.018 283.576);
  --accent: oklch(0.293 0.022 282.598);
  --accent-foreground: oklch(0.821 0.018 283.576);
  --destructive: oklch(0.638 0.245 30.745);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.801 0.062 282.525);
  --chart-1: oklch(0.801 0.062 282.525);
  --chart-2: oklch(0.293 0.022 282.598);
  --chart-3: oklch(0.293 0.022 282.598);
  --chart-4: oklch(0.32 0.025 282.548);
  --chart-5: oklch(0.798 0.066 282.419);
}