Kingfish for shadcn/ui

Kingfish is a shadcn/ui theme built around a vivid green primary color (#75db00) with vivid violet accents (#6600db). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the vivid green primary (#75db00) on a neutral background (#050802).

Color palette

TokenLightDark
Background
#fdfdfcwhite
#050802black
Foreground
#050802black
#ffffffwhite
Card
#fdfdfcwhite
#050802black
Card foreground
#050802black
#ffffffwhite
Popover
#fdfdfcwhite
#050802black
Popover foreground
#050802black
#ffffffwhite
Primary
#75db00lawngreen
#75db00lawngreen
Primary foreground
#080f00black
#080f00black
Secondary
#6600dbdarkviolet
#6600dbdarkviolet
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f2f0f5whitesmoke
#0d0a0fblack
Muted foreground
#655c70dimgray
#988fa3darkgray
Accent
#6600dbdarkviolet
#6600dbdarkviolet
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#651c06maroon
#d93c0dorangered
Destructive foreground
#fab8a3lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#75db00lawngreen
#75db00lawngreen

Contrast

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

Light mode
Text on background19.81:1AAA
Text on card19.81:1AAA
Primary button11.05:1AAA
Secondary button8.09:1AAA
Muted text5.58:1AA
Accent8.09:1AAA
Destructive7.21:1AAA
Dark mode
Text on background20.16:1AAA
Text on card20.16:1AAA
Primary button11.05:1AAA
Secondary button8.09:1AAA
Muted text6.36:1AA
Accent8.09:1AAA
Destructive4.56:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 127.142);
  --foreground: oklch(0.127 0.02 126.094);
  --muted: oklch(0.958 0.007 307.019);
  --muted-foreground: oklch(0.491 0.034 306.262);
  --popover: oklch(0.994 0.002 127.142);
  --popover-foreground: oklch(0.127 0.02 126.094);
  --card: oklch(0.994 0.002 127.142);
  --card-foreground: oklch(0.127 0.02 126.094);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.798 0.232 134.801);
  --primary-foreground: oklch(0.156 0.04 126.396);
  --secondary: oklch(0.466 0.261 291.356);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.466 0.261 291.356);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.343 0.109 36.281);
  --destructive-foreground: oklch(0.837 0.082 37.615);
  --ring: oklch(0.798 0.232 134.801);
  --chart-1: oklch(0.798 0.232 134.801);
  --chart-2: oklch(0.466 0.261 291.356);
  --chart-3: oklch(0.466 0.261 291.356);
  --chart-4: oklch(0.49 0.275 291.181);
  --chart-5: oklch(0.806 0.236 134.993);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.018 126.189);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.151 0.011 306.181);
  --muted-foreground: oklch(0.664 0.032 306.53);
  --popover: oklch(0.126 0.018 126.189);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.126 0.018 126.189);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.798 0.232 134.801);
  --primary-foreground: oklch(0.156 0.04 126.396);
  --secondary: oklch(0.466 0.261 291.356);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.466 0.261 291.356);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.587 0.2 35.082);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.798 0.232 134.801);
  --chart-1: oklch(0.798 0.232 134.801);
  --chart-2: oklch(0.466 0.261 291.356);
  --chart-3: oklch(0.466 0.261 291.356);
  --chart-4: oklch(0.49 0.275 291.181);
  --chart-5: oklch(0.806 0.236 134.993);
}