Shot for shadcn/ui

Shot is a shadcn/ui theme built around a green primary color (#c7d06d) with green accents (#96d06d). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#c7d06d) on a neutral background (#070703).

Color palette

TokenLightDark
Background
#ffffffwhite
#070703black
Foreground
#0c0d02black
#ffffffwhite
Card
#fcfcfcsnow
#0a0b05black
Card foreground
#080902black
#ffffffwhite
Popover
#fcfcfcsnow
#0a0b05black
Popover foreground
#080902black
#ffffffwhite
Primary
#c7d06ddarkkhaki
#c7d06ddarkkhaki
Primary foreground
#070802black
#070802black
Secondary
#d0a66ddarkkhaki
#d0a66ddarkkhaki
Secondary foreground
#080602black
#080602black
Muted
#e5dfd7gainsboro
#28221ablack
Muted foreground
#69645ddimgray
#a29d96darkgray
Accent
#96d06ddarkseagreen
#96d06ddarkseagreen
Accent foreground
#050802black
#050802black
Destructive
#8e0f01darkred
#fe3f2aorangered
Destructive foreground
#ffc8c2pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c7d06ddarkkhaki
#c7d06ddarkkhaki

Contrast

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

Light mode
Text on background19.55:1AAA
Text on card19.56:1AAA
Primary button12.09:1AAA
Secondary button9.03:1AAA
Muted text4.42:1AA Large
Accent11.02:1AAA
Destructive6.43:1AA
Dark mode
Text on background20.17:1AAA
Text on card19.78:1AAA
Primary button12.09:1AAA
Secondary button9.03:1AAA
Muted text5.82:1AA
Accent11.02:1AAA
Destructive3.52:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.153 0.025 112.337);
  --muted: oklch(0.906 0.013 76.583);
  --muted-foreground: oklch(0.507 0.013 76.518);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.133 0.022 111.974);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.133 0.022 111.974);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.829 0.124 112.999);
  --primary-foreground: oklch(0.129 0.016 111.631);
  --secondary: oklch(0.751 0.089 75.058);
  --secondary-foreground: oklch(0.121 0.012 83.124);
  --accent: oklch(0.794 0.143 133.551);
  --accent-foreground: oklch(0.125 0.018 130.439);
  --destructive: oklch(0.413 0.161 30.851);
  --destructive-foreground: oklch(0.88 0.063 25.736);
  --ring: oklch(0.829 0.124 112.999);
  --chart-1: oklch(0.829 0.124 112.999);
  --chart-2: oklch(0.751 0.089 75.058);
  --chart-3: oklch(0.794 0.143 133.551);
  --chart-4: oklch(0.77 0.082 75.377);
  --chart-5: oklch(0.837 0.129 113.112);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.013 111.361);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.257 0.017 76.121);
  --muted-foreground: oklch(0.697 0.012 76.568);
  --popover: oklch(0.145 0.015 111.413);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.145 0.015 111.413);
  --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.829 0.124 112.999);
  --primary-foreground: oklch(0.129 0.016 111.631);
  --secondary: oklch(0.751 0.089 75.058);
  --secondary-foreground: oklch(0.121 0.012 83.124);
  --accent: oklch(0.794 0.143 133.551);
  --accent-foreground: oklch(0.125 0.018 130.439);
  --destructive: oklch(0.655 0.229 30.396);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.829 0.124 112.999);
  --chart-1: oklch(0.829 0.124 112.999);
  --chart-2: oklch(0.751 0.089 75.058);
  --chart-3: oklch(0.794 0.143 133.551);
  --chart-4: oklch(0.77 0.082 75.377);
  --chart-5: oklch(0.837 0.129 113.112);
}