Supportive for shadcn/ui

Supportive is a shadcn/ui theme built around a yellow primary color (#878d35) with purple accents (#8d3587). The light mode uses a neutral background (#fefefb). Dark mode keeps the yellow primary (#878d35) on a yellow-tinted background (#0b0c04).

Color palette

TokenLightDark
Background
#fefefbwhite
#0b0c04black
Foreground
#000000black
#f8f9f6whitesmoke
Card
#fdfdf7snow
#0f1005black
Card foreground
#000000black
#fbfbf9snow
Popover
#fdfdf7snow
#0f1005black
Popover foreground
#000000black
#fbfbf9snow
Primary
#878d35olivedrab
#878d35olivedrab
Primary foreground
#000000black
#000000black
Secondary
#35878dsteelblue
#35878dsteelblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ebf3f4whitesmoke
#0b1314black
Muted foreground
#5b6a6bdimgray
#94a2a4darkgray
Accent
#8d3587rebeccapurple
#8d3587rebeccapurple
Accent foreground
#fcf8fcsnow
#fcf8fcsnow
Destructive
#610705maroon
#f42825crimson
Destructive foreground
#faa09elightsalmon
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#878d35olivedrab
#878d35olivedrab

Contrast

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

Light mode
Text on background20.76:1AAA
Text on card20.53:1AAA
Primary button5.85:1AA
Secondary button4.21:1AA Large
Muted text5.03:1AA
Accent6.68:1AA
Destructive6.88:1AA
Dark mode
Text on background18.61:1AAA
Text on card18.51:1AAA
Primary button5.85:1AA
Secondary button4.21:1AA Large
Muted text7.12:1AAA
Accent6.68:1AA
Destructive4.06:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.996 0.004 109.552);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.96 0.009 202.12);
  --muted-foreground: oklch(0.513 0.018 201.872);
  --popover: oklch(0.992 0.008 109.627);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0.008 109.627);
  --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.619 0.111 112.777);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.575 0.078 201.76);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.483 0.155 330.366);
  --accent-foreground: oklch(0.983 0.007 327.62);
  --destructive: oklch(0.314 0.122 28.642);
  --destructive-foreground: oklch(0.795 0.108 20.819);
  --ring: oklch(0.619 0.111 112.777);
  --chart-1: oklch(0.619 0.111 112.777);
  --chart-2: oklch(0.575 0.078 201.76);
  --chart-3: oklch(0.483 0.155 330.366);
  --chart-4: oklch(0.608 0.083 201.769);
  --chart-5: oklch(0.628 0.116 112.909);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.149 0.02 111.263);
  --foreground: oklch(0.98 0.003 109.54);
  --muted: oklch(0.179 0.012 201.647);
  --muted-foreground: oklch(0.702 0.017 201.97);
  --popover: oklch(0.167 0.023 111.653);
  --popover-foreground: oklch(0.987 0.002 109.519);
  --card: oklch(0.167 0.023 111.653);
  --card-foreground: oklch(0.987 0.002 109.519);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.619 0.111 112.777);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.575 0.078 201.76);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.483 0.155 330.366);
  --accent-foreground: oklch(0.983 0.007 327.62);
  --destructive: oklch(0.621 0.234 28.094);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.619 0.111 112.777);
  --chart-1: oklch(0.619 0.111 112.777);
  --chart-2: oklch(0.575 0.078 201.76);
  --chart-3: oklch(0.483 0.155 330.366);
  --chart-4: oklch(0.608 0.083 201.769);
  --chart-5: oklch(0.628 0.116 112.909);
}