Counselor for shadcn/ui

Counselor is a shadcn/ui theme built around a vivid light green primary color (#f7fedc) with vivid light purple accents (#fedcf7). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the vivid light green primary (#f7fedc) on a neutral background (#070802).

Color palette

TokenLightDark
Background
#fdfdfbsnow
#070802black
Foreground
#000000black
#fbfbf8snow
Card
#fbfcf8snow
#0a0c03black
Card foreground
#000000black
#fdfdfcwhite
Popover
#fbfcf8snow
#0a0c03black
Popover foreground
#000000black
#fdfdfcwhite
Primary
#f7fedclightyellow
#f7fedclightyellow
Primary foreground
#334101darkgreen
#334101darkgreen
Secondary
#dcf7felightcyan
#dcf7felightcyan
Secondary foreground
#013341darkslategray
#013341darkslategray
Muted
#e0e5e6gainsboro
#191e1fblack
Muted foreground
#48575bdarkslategray
#a4b3b7darkgray
Accent
#fedcf7lavenderblush
#fedcf7lavenderblush
Accent foreground
#410133midnightblue
#410133midnightblue
Destructive
#722808saddlebrown
#ef5a1achocolate
Destructive foreground
#fac8b3peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f7fedclightyellow
#f7fedclightyellow

Contrast

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

Light mode
Text on background20.67:1AAA
Text on card20.36:1AAA
Primary button10.64:1AAA
Secondary button12.09:1AAA
Muted text5.90:1AA
Accent13.16:1AAA
Destructive6.89:1AA
Dark mode
Text on background19.39:1AAA
Text on card19.32:1AAA
Primary button10.64:1AAA
Secondary button12.09:1AAA
Muted text7.80:1AAA
Accent13.16:1AAA
Destructive3.41:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 116.378);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.918 0.006 216.037);
  --muted-foreground: oklch(0.446 0.02 216.33);
  --popover: oklch(0.989 0.005 116.425);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.989 0.005 116.425);
  --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.983 0.045 117.169);
  --primary-foreground: oklch(0.35 0.084 122.275);
  --secondary: oklch(0.958 0.03 216.193);
  --secondary-foreground: oklch(0.299 0.054 222.274);
  --accent: oklch(0.931 0.051 333.448);
  --accent-foreground: oklch(0.255 0.109 339.427);
  --destructive: oklch(0.384 0.113 40.129);
  --destructive-foreground: oklch(0.871 0.064 44.386);
  --ring: oklch(0.983 0.045 117.169);
  --chart-1: oklch(0.983 0.045 117.169);
  --chart-2: oklch(0.958 0.03 216.193);
  --chart-3: oklch(0.931 0.051 333.448);
  --chart-4: oklch(0.976 0.017 216.097);
  --chart-5: oklch(0.985 0.047 117.193);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.13 0.019 116.775);
  --foreground: oklch(0.988 0.004 116.403);
  --muted: oklch(0.23 0.008 216.211);
  --muted-foreground: oklch(0.756 0.018 216.14);
  --popover: oklch(0.149 0.022 117.179);
  --popover-foreground: oklch(0.994 0.002 116.366);
  --card: oklch(0.149 0.022 117.179);
  --card-foreground: oklch(0.994 0.002 116.366);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.983 0.045 117.169);
  --primary-foreground: oklch(0.35 0.084 122.275);
  --secondary: oklch(0.958 0.03 216.193);
  --secondary-foreground: oklch(0.299 0.054 222.274);
  --accent: oklch(0.931 0.051 333.448);
  --accent-foreground: oklch(0.255 0.109 339.427);
  --destructive: oklch(0.657 0.196 39.799);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.983 0.045 117.169);
  --chart-1: oklch(0.983 0.045 117.169);
  --chart-2: oklch(0.958 0.03 216.193);
  --chart-3: oklch(0.931 0.051 333.448);
  --chart-4: oklch(0.976 0.017 216.097);
  --chart-5: oklch(0.985 0.047 117.193);
}