Stag for shadcn/ui

Stag is a shadcn/ui theme built around a vivid light orange primary color (#fecf9a) with vivid light yellow accents (#fbfe9a). The light mode uses a neutral background (#fcfaf8). Dark mode keeps the vivid light orange primary (#fecf9a) on a neutral background (#040301).

Color palette

TokenLightDark
Background
#fcfaf8snow
#040301black
Foreground
#000000black
#ffffffwhite
Card
#fbf8f4floralwhite
#080502black
Card foreground
#000000black
#ffffffwhite
Popover
#fbf8f4floralwhite
#080502black
Popover foreground
#000000black
#ffffffwhite
Primary
#fecf9anavajowhite
#fecf9anavajowhite
Primary foreground
#653601saddlebrown
#653601saddlebrown
Secondary
#fe9d9alightsalmon
#fe9d9alightsalmon
Secondary foreground
#650401maroon
#650401maroon
Muted
#e7cccblightgrey
#341918black
Muted foreground
#686464dimgray
#9b9797darkgray
Accent
#fbfe9akhaki
#fbfe9akhaki
Accent foreground
#000000black
#000000black
Destructive
#9e2e05saddlebrown
#f8612atomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fecf9anavajowhite
#fecf9anavajowhite

Contrast

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

Light mode
Text on background20.17:1AAA
Text on card19.77:1AAA
Primary button7.03:1AAA
Secondary button6.70:1AA
Muted text3.85:1AA Large
Accent19.72:1AAA
Destructive7.36:1AAA
Dark mode
Text on background20.64:1AAA
Text on card20.30:1AAA
Primary button7.03:1AAA
Secondary button6.70:1AA
Muted text5.58:1AA
Accent19.72:1AAA
Destructive6.75:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.004 71.417);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.866 0.031 20.128);
  --muted-foreground: oklch(0.507 0.005 19.744);
  --popover: oklch(0.979 0.006 71.399);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.979 0.006 71.399);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.884 0.086 70.076);
  --primary-foreground: oklch(0.385 0.089 60.734);
  --secondary: oklch(0.795 0.116 22.131);
  --secondary-foreground: oklch(0.321 0.128 29.826);
  --accent: oklch(0.973 0.123 110.127);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.469 0.155 36.737);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.884 0.086 70.076);
  --chart-1: oklch(0.884 0.086 70.076);
  --chart-2: oklch(0.795 0.116 22.131);
  --chart-3: oklch(0.973 0.123 110.127);
  --chart-4: oklch(0.823 0.097 21.567);
  --chart-5: oklch(0.885 0.089 70.013);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.095 0.01 79.087);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.252 0.044 22.744);
  --muted-foreground: oklch(0.68 0.005 19.701);
  --popover: oklch(0.12 0.013 79.087);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.12 0.013 79.087);
  --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.884 0.086 70.076);
  --primary-foreground: oklch(0.385 0.089 60.734);
  --secondary: oklch(0.795 0.116 22.131);
  --secondary-foreground: oklch(0.321 0.128 29.826);
  --accent: oklch(0.973 0.123 110.127);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.681 0.196 38.708);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.884 0.086 70.076);
  --chart-1: oklch(0.884 0.086 70.076);
  --chart-2: oklch(0.795 0.116 22.131);
  --chart-3: oklch(0.973 0.123 110.127);
  --chart-4: oklch(0.823 0.097 21.567);
  --chart-5: oklch(0.885 0.089 70.013);
}