Assistance for shadcn/ui

Assistance is a shadcn/ui theme built around a light purple primary color (#f1e0f5) with light green accents (#e4f5e0). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the light purple primary (#f1e0f5) on a purple-tinted background (#0c070e).

Color palette

TokenLightDark
Background
#fdfbfewhite
#0c070eblack
Foreground
#110515black
#f8f6f8whitesmoke
Card
#fdfbfewhite
#0c070eblack
Card foreground
#110515black
#f8f6f8whitesmoke
Popover
#fdfbfewhite
#0c070eblack
Popover foreground
#110515black
#f8f6f8whitesmoke
Primary
#f1e0f5lavender
#f1e0f5lavender
Primary foreground
#6b277crebeccapurple
#6b277crebeccapurple
Secondary
#e4f5e0beige
#e4f5e0beige
Secondary foreground
#152f0fblack
#152f0fblack
Muted
#e3eae1gainsboro
#171e15black
Muted foreground
#3f413edarkslategray
#bec1besilver
Accent
#e4f5e0beige
#e4f5e0beige
Accent foreground
#152f0fblack
#152f0fblack
Destructive
#7f2805saddlebrown
#f7703btomato
Destructive foreground
#fccdbapeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f1e0f5lavender
#f1e0f5lavender

Contrast

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

Light mode
Text on background19.34:1AAA
Text on card19.34:1AAA
Primary button7.57:1AAA
Secondary button12.77:1AAA
Muted text8.39:1AAA
Accent12.77:1AAA
Destructive6.59:1AA
Dark mode
Text on background18.58:1AAA
Text on card18.58:1AAA
Primary button7.57:1AAA
Secondary button12.77:1AAA
Muted text9.39:1AAA
Accent12.77:1AAA
Destructive7.34:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 319.445);
  --foreground: oklch(0.146 0.04 319.854);
  --muted: oklch(0.929 0.014 139.44);
  --muted-foreground: oklch(0.373 0.005 139.441);
  --popover: oklch(0.991 0.004 319.445);
  --popover-foreground: oklch(0.146 0.04 319.854);
  --card: oklch(0.991 0.004 319.445);
  --card-foreground: oklch(0.146 0.04 319.854);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.926 0.034 319.454);
  --primary-foreground: oklch(0.411 0.148 318.987);
  --secondary: oklch(0.952 0.033 139.436);
  --secondary-foreground: oklch(0.274 0.063 139.687);
  --accent: oklch(0.952 0.033 139.436);
  --accent-foreground: oklch(0.274 0.063 139.687);
  --destructive: oklch(0.406 0.127 38.377);
  --destructive-foreground: oklch(0.885 0.059 42.67);
  --ring: oklch(0.926 0.034 319.454);
  --chart-1: oklch(0.926 0.034 319.454);
  --chart-2: oklch(0.952 0.033 139.436);
  --chart-3: oklch(0.952 0.033 139.436);
  --chart-4: oklch(0.97 0.021 139.439);
  --chart-5: oklch(0.926 0.036 319.455);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.02 319.888);
  --foreground: oklch(0.976 0.003 319.445);
  --muted: oklch(0.224 0.019 139.434);
  --muted-foreground: oklch(0.807 0.004 139.443);
  --popover: oklch(0.139 0.02 319.888);
  --popover-foreground: oklch(0.976 0.003 319.445);
  --card: oklch(0.139 0.02 319.888);
  --card-foreground: oklch(0.976 0.003 319.445);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.926 0.034 319.454);
  --primary-foreground: oklch(0.411 0.148 318.987);
  --secondary: oklch(0.952 0.033 139.436);
  --secondary-foreground: oklch(0.274 0.063 139.687);
  --accent: oklch(0.952 0.033 139.436);
  --accent-foreground: oklch(0.274 0.063 139.687);
  --destructive: oklch(0.7 0.178 40.772);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.926 0.034 319.454);
  --chart-1: oklch(0.926 0.034 319.454);
  --chart-2: oklch(0.952 0.033 139.436);
  --chart-3: oklch(0.952 0.033 139.436);
  --chart-4: oklch(0.97 0.021 139.439);
  --chart-5: oklch(0.926 0.036 319.455);
}