Smoking for shadcn/ui

Smoking is a shadcn/ui theme built around a yellow primary color (#887b44) with green accents (#728844). The light mode uses a neutral background (#fefdfb). Dark mode keeps the yellow primary (#887b44) on a neutral background (#040401).

Color palette

TokenLightDark
Background
#fefdfbsnow
#040401black
Foreground
#090801black
#faf9f5whitesmoke
Card
#fefdfbsnow
#040401black
Card foreground
#090801black
#faf9f5whitesmoke
Popover
#fefdfbsnow
#040401black
Popover foreground
#090801black
#faf9f5whitesmoke
Primary
#887b44olivedrab
#887b44olivedrab
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#885a44sienna
#885a44sienna
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dcd8d6gainsboro
#292523darkslategray
Muted foreground
#4f4845darkslategray
#bab3b0darkgray
Accent
#728844olivedrab
#728844olivedrab
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#ab0d0dfirebrick
#f03333crimson
Destructive foreground
#feececlinen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#887b44olivedrab
#887b44olivedrab

Contrast

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

Light mode
Text on background19.77:1AAA
Text on card19.77:1AAA
Primary button4.22:1AA Large
Secondary button5.87:1AA
Muted text6.30:1AA
Accent3.95:1AA Large
Destructive6.60:1AA
Dark mode
Text on background19.52:1AAA
Text on card19.52:1AAA
Primary button4.22:1AA Large
Secondary button5.87:1AA
Muted text7.33:1AAA
Accent3.95:1AA Large
Destructive4.02:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 96.206);
  --foreground: oklch(0.131 0.022 101.434);
  --muted: oklch(0.884 0.005 46.788);
  --muted-foreground: oklch(0.408 0.011 46.569);
  --popover: oklch(0.995 0.003 96.206);
  --popover-foreground: oklch(0.131 0.022 101.434);
  --card: oklch(0.995 0.003 96.206);
  --card-foreground: oklch(0.131 0.022 101.434);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.582 0.076 97.022);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.511 0.069 45.606);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.593 0.096 123.772);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.47 0.186 28.474);
  --destructive-foreground: oklch(0.957 0.019 17.491);
  --ring: oklch(0.582 0.076 97.022);
  --chart-1: oklch(0.582 0.076 97.022);
  --chart-2: oklch(0.511 0.069 45.606);
  --chart-3: oklch(0.593 0.096 123.772);
  --chart-4: oklch(0.538 0.073 45.594);
  --chart-5: oklch(0.589 0.082 96.975);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.101 0.013 100.421);
  --foreground: oklch(0.981 0.005 96.232);
  --muted: oklch(0.269 0.007 46.571);
  --muted-foreground: oklch(0.772 0.009 46.722);
  --popover: oklch(0.101 0.013 100.421);
  --popover-foreground: oklch(0.981 0.005 96.232);
  --card: oklch(0.101 0.013 100.421);
  --card-foreground: oklch(0.981 0.005 96.232);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.582 0.076 97.022);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.511 0.069 45.606);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.593 0.096 123.772);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.622 0.223 26.692);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.582 0.076 97.022);
  --chart-1: oklch(0.582 0.076 97.022);
  --chart-2: oklch(0.511 0.069 45.606);
  --chart-3: oklch(0.593 0.096 123.772);
  --chart-4: oklch(0.538 0.073 45.594);
  --chart-5: oklch(0.589 0.082 96.975);
}