Feisty for shadcn/ui

Feisty is a shadcn/ui theme built around a yellow primary color (#bcb15c) with green accents (#97bc5c). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#bcb15c) on a neutral background (#030302).

Color palette

TokenLightDark
Background
#ffffffwhite
#030302black
Foreground
#0d0c02black
#fbfbf8snow
Card
#ffffffwhite
#030302black
Card foreground
#0d0c02black
#fbfbf8snow
Popover
#ffffffwhite
#030302black
Popover foreground
#0d0c02black
#fbfbf8snow
Primary
#bcb15cdarkkhaki
#bcb15cdarkkhaki
Primary foreground
#000000black
#000000black
Secondary
#bc815cperu
#bc815cperu
Secondary foreground
#000000black
#000000black
Muted
#f2efeewhitesmoke
#110f0dblack
Muted foreground
#4c433edarkslategray
#c1b9b3silver
Accent
#97bc5cdarkkhaki
#97bc5cdarkkhaki
Accent foreground
#000000black
#000000black
Destructive
#d2560fchocolate
#ef681achocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bcb15cdarkkhaki
#bcb15cdarkkhaki

Contrast

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

Light mode
Text on background19.61:1AAA
Text on card19.61:1AAA
Primary button9.60:1AAA
Secondary button6.44:1AA
Muted text8.42:1AAA
Accent9.71:1AAA
Destructive4.13:1AA Large
Dark mode
Text on background19.87:1AAA
Text on card19.87:1AAA
Primary button9.60:1AAA
Secondary button6.44:1AA
Muted text9.89:1AAA
Accent9.71:1AAA
Destructive6.67:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.151 0.024 103.714);
  --muted: oklch(0.954 0.003 54.461);
  --muted-foreground: oklch(0.391 0.015 54.003);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.151 0.024 103.714);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.151 0.024 103.714);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.752 0.108 101.847);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.655 0.09 52.423);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.748 0.131 126.687);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.606 0.172 43.689);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.752 0.108 101.847);
  --chart-1: oklch(0.752 0.108 101.847);
  --chart-2: oklch(0.655 0.09 52.423);
  --chart-3: oklch(0.748 0.131 126.687);
  --chart-4: oklch(0.678 0.083 52.714);
  --chart-5: oklch(0.761 0.114 101.855);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.008 102.531);
  --foreground: oklch(0.988 0.003 100.384);
  --muted: oklch(0.17 0.005 54.125);
  --muted-foreground: oklch(0.79 0.012 54.294);
  --popover: oklch(0.098 0.008 102.531);
  --popover-foreground: oklch(0.988 0.003 100.384);
  --card: oklch(0.098 0.008 102.531);
  --card-foreground: oklch(0.988 0.003 100.384);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.752 0.108 101.847);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.655 0.09 52.423);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.748 0.131 126.687);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.675 0.185 44.688);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.752 0.108 101.847);
  --chart-1: oklch(0.752 0.108 101.847);
  --chart-2: oklch(0.655 0.09 52.423);
  --chart-3: oklch(0.748 0.131 126.687);
  --chart-4: oklch(0.678 0.083 52.714);
  --chart-5: oklch(0.761 0.114 101.855);
}