Tame for shadcn/ui

Tame is a shadcn/ui theme built around a vivid green primary color (#afee5d) with vivid violet accents (#9c5dee). The light mode uses a neutral background (#fafdf7). Dark mode keeps the vivid green primary (#afee5d) on a green-tinted background (#080b04).

Color palette

TokenLightDark
Background
#fafdf7mintcream
#080b04black
Foreground
#0b1005black
#ffffffwhite
Card
#fafdf7mintcream
#080b04black
Card foreground
#0b1005black
#ffffffwhite
Popover
#fafdf7mintcream
#080b04black
Popover foreground
#0b1005black
#ffffffwhite
Primary
#afee5dgreenyellow
#afee5dgreenyellow
Primary foreground
#0e1702black
#0e1702black
Secondary
#9c5deemediumpurple
#9c5deemediumpurple
Secondary foreground
#000000black
#000000black
Muted
#e7e1eflavender
#16101eblack
Muted foreground
#3f3748darkslategray
#beb7c8silver
Accent
#9c5deemediumpurple
#9c5deemediumpurple
Accent foreground
#000000black
#000000black
Destructive
#6c0b04maroon
#f8473atomato
Destructive foreground
#fcaca6lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#afee5dgreenyellow
#afee5dgreenyellow

Contrast

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

Light mode
Text on background18.73:1AAA
Text on card18.73:1AAA
Primary button13.33:1AAA
Secondary button5.23:1AA
Muted text8.86:1AAA
Accent5.23:1AA
Destructive6.85:1AA
Dark mode
Text on background19.81:1AAA
Text on card19.81:1AAA
Primary button13.33:1AAA
Secondary button5.23:1AA
Muted text9.58:1AAA
Accent5.23:1AA
Destructive3.53:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.008 125.843);
  --foreground: oklch(0.162 0.024 126.486);
  --muted: oklch(0.919 0.02 305.447);
  --muted-foreground: oklch(0.353 0.03 304.611);
  --popover: oklch(0.99 0.008 125.843);
  --popover-foreground: oklch(0.162 0.024 126.486);
  --card: oklch(0.99 0.008 125.843);
  --card-foreground: oklch(0.162 0.024 126.486);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.878 0.185 129.399);
  --primary-foreground: oklch(0.19 0.043 127.869);
  --secondary: oklch(0.619 0.209 300.312);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.619 0.209 300.312);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.341 0.13 30.048);
  --destructive-foreground: oklch(0.82 0.095 23.861);
  --ring: oklch(0.878 0.185 129.399);
  --chart-1: oklch(0.878 0.185 129.399);
  --chart-2: oklch(0.619 0.209 300.312);
  --chart-3: oklch(0.619 0.209 300.312);
  --chart-4: oklch(0.649 0.193 301.192);
  --chart-5: oklch(0.885 0.191 129.533);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.143 0.017 125.134);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.188 0.03 303.574);
  --muted-foreground: oklch(0.79 0.024 305.329);
  --popover: oklch(0.143 0.017 125.134);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.143 0.017 125.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.878 0.185 129.399);
  --primary-foreground: oklch(0.19 0.043 127.869);
  --secondary: oklch(0.619 0.209 300.312);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.619 0.209 300.312);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.653 0.215 28.599);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.878 0.185 129.399);
  --chart-1: oklch(0.878 0.185 129.399);
  --chart-2: oklch(0.619 0.209 300.312);
  --chart-3: oklch(0.619 0.209 300.312);
  --chart-4: oklch(0.649 0.193 301.192);
  --chart-5: oklch(0.885 0.191 129.533);
}