Bait for shadcn/ui

Bait is a shadcn/ui theme built around an orange primary color (#a96d1e) with violet accents (#6d1ea9). The light mode uses a neutral background (#fdfaf7). Dark mode keeps the orange primary (#a96d1e) on an orange-tinted background (#0c0803).

Color palette

TokenLightDark
Background
#fdfaf7snow
#0c0803black
Foreground
#0c0803black
#ffffffwhite
Card
#fcf8f3floralwhite
#100b05black
Card foreground
#080502black
#ffffffwhite
Popover
#fcf8f3floralwhite
#100b05black
Popover foreground
#080502black
#ffffffwhite
Primary
#a96d1esienna
#a96d1esienna
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#1ea96dmediumseagreen
#1ea96dmediumseagreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d6ebe2gainsboro
#142920black
Muted foreground
#3c4e46darkslategray
#b1c3bbsilver
Accent
#6d1ea9rebeccapurple
#6d1ea9rebeccapurple
Accent foreground
#fdfbfewhite
#fdfbfewhite
Destructive
#bd2b0afirebrick
#e4340corangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a96d1esienna
#a96d1esienna

Contrast

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

Light mode
Text on background19.23:1AAA
Text on card19.21:1AAA
Primary button4.30:1AA Large
Secondary button3.01:1AA Large
Muted text7.09:1AAA
Accent8.48:1AAA
Destructive5.98:1AA
Dark mode
Text on background19.95:1AAA
Text on card19.60:1AAA
Primary button4.30:1AA Large
Secondary button3.01:1AA Large
Muted text8.32:1AAA
Accent8.48:1AAA
Destructive4.39:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.005 74.921);
  --foreground: oklch(0.139 0.016 81.81);
  --muted: oklch(0.922 0.025 167.951);
  --muted-foreground: oklch(0.405 0.026 166.798);
  --popover: oklch(0.981 0.008 74.903);
  --popover-foreground: oklch(0.121 0.014 82.476);
  --card: oklch(0.981 0.008 74.903);
  --card-foreground: oklch(0.121 0.014 82.476);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.586 0.117 67.803);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.651 0.144 158.143);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.439 0.203 304.491);
  --accent-foreground: oklch(0.99 0.005 311.039);
  --destructive: oklch(0.522 0.187 33.017);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.586 0.117 67.803);
  --chart-1: oklch(0.586 0.117 67.803);
  --chart-2: oklch(0.651 0.144 158.143);
  --chart-3: oklch(0.439 0.203 304.491);
  --chart-4: oklch(0.687 0.153 158.058);
  --chart-5: oklch(0.59 0.121 67.194);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.015 81.544);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.26 0.032 164.565);
  --muted-foreground: oklch(0.802 0.022 167.931);
  --popover: oklch(0.153 0.017 78.134);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.153 0.017 78.134);
  --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.586 0.117 67.803);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.651 0.144 158.143);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.439 0.203 304.491);
  --accent-foreground: oklch(0.99 0.005 311.039);
  --destructive: oklch(0.599 0.216 32.869);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.586 0.117 67.803);
  --chart-1: oklch(0.586 0.117 67.803);
  --chart-2: oklch(0.651 0.144 158.143);
  --chart-3: oklch(0.439 0.203 304.491);
  --chart-4: oklch(0.687 0.153 158.058);
  --chart-5: oklch(0.59 0.121 67.194);
}