Prickly for shadcn/ui

Prickly is a shadcn/ui theme built around a vivid green primary color (#03c931) with vivid teal accents (#03c994). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#03c931) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#021206black
#f9fbf9mintcream
Card
#fcfcfcsnow
#030303black
Card foreground
#020e04black
#fcfdfcwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#020e04black
#fcfdfcwhite
Primary
#03c931limegreen
#03c931limegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#38c903limegreen
#38c903limegreen
Secondary foreground
#000000black
#000000black
Muted
#e8e9e7linen
#161816black
Muted foreground
#575e55dimgray
#a4aaa1darkgray
Accent
#03c994lightseagreen
#03c994lightseagreen
Accent foreground
#000000black
#000000black
Destructive
#a73601saddlebrown
#fe6620tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#03c931limegreen
#03c931limegreen

Contrast

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

Light mode
Text on background19.23:1AAA
Text on card19.25:1AAA
Primary button2.23:1Fail
Secondary button9.51:1AAA
Muted text5.49:1AA
Accent9.78:1AAA
Destructive6.61:1AA
Dark mode
Text on background20.19:1AAA
Text on card20.28:1AAA
Primary button2.23:1Fail
Secondary button9.51:1AAA
Muted text7.50:1AAA
Accent9.78:1AAA
Destructive7.13:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.163 0.037 151.063);
  --muted: oklch(0.933 0.004 137.198);
  --muted-foreground: oklch(0.472 0.016 137.272);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.145 0.032 151.896);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.145 0.032 151.896);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.726 0.232 144.426);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.731 0.237 140.543);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.741 0.154 165.815);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.494 0.158 38.986);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.726 0.232 144.426);
  --chart-1: oklch(0.726 0.232 144.426);
  --chart-2: oklch(0.731 0.237 140.543);
  --chart-3: oklch(0.741 0.154 165.815);
  --chart-4: oklch(0.771 0.251 140.584);
  --chart-5: oklch(0.734 0.236 144.288);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.986 0.003 153.184);
  --muted: oklch(0.207 0.005 137.248);
  --muted-foreground: oklch(0.731 0.015 137.237);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.993 0.002 153.213);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.993 0.002 153.213);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.726 0.232 144.426);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.731 0.237 140.543);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.741 0.154 165.815);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.695 0.2 41.237);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.726 0.232 144.426);
  --chart-1: oklch(0.726 0.232 144.426);
  --chart-2: oklch(0.731 0.237 140.543);
  --chart-3: oklch(0.741 0.154 165.815);
  --chart-4: oklch(0.771 0.251 140.584);
  --chart-5: oklch(0.734 0.236 144.288);
}