Smoke for shadcn/ui

Smoke is a shadcn/ui theme built around a vivid deep yellow primary color (#2e2000) with vivid deep blue accents (#000e2e). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep yellow primary (#2e2000) on a yellow-tinted background (#100c05).

Color palette

TokenLightDark
Background
#ffffffwhite
#100c05black
Foreground
#090701black
#fdfdfcwhite
Card
#ffffffwhite
#100c05black
Card foreground
#090701black
#fdfdfcwhite
Popover
#ffffffwhite
#100c05black
Popover foreground
#090701black
#fdfdfcwhite
Primary
#2e2000black
#2e2000black
Primary foreground
#faaf00orange
#faaf00orange
Secondary
#000e2eblack
#000e2eblack
Secondary foreground
#6190ffcornflowerblue
#6190ffcornflowerblue
Muted
#e4e5e7gainsboro
#18191bblack
Muted foreground
#585d6adimgray
#959ba7darkgray
Accent
#000e2eblack
#000e2eblack
Accent foreground
#6190ffcornflowerblue
#6190ffcornflowerblue
Destructive
#a83e05saddlebrown
#f8722atomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2e2000black
#2e2000black

Contrast

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

Light mode
Text on background20.14:1AAA
Text on card20.14:1AAA
Primary button8.45:1AAA
Secondary button6.30:1AA
Muted text5.22:1AA
Accent6.30:1AA
Destructive6.23:1AA
Dark mode
Text on background19.14:1AAA
Text on card19.14:1AAA
Primary button8.45:1AAA
Secondary button6.30:1AA
Muted text6.30:1AA
Accent6.30:1AA
Destructive7.46:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.127 0.02 94.575);
  --muted: oklch(0.921 0.003 267.401);
  --muted-foreground: oklch(0.48 0.021 267.115);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.127 0.02 94.575);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.127 0.02 94.575);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.254 0.052 85.163);
  --primary-foreground: oklch(0.805 0.168 77.731);
  --secondary: oklch(0.175 0.069 259.515);
  --secondary-foreground: oklch(0.674 0.172 264.745);
  --accent: oklch(0.175 0.069 259.515);
  --accent-foreground: oklch(0.674 0.172 264.745);
  --destructive: oklch(0.507 0.151 41.764);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.254 0.052 85.163);
  --chart-1: oklch(0.254 0.052 85.163);
  --chart-2: oklch(0.175 0.069 259.515);
  --chart-3: oklch(0.175 0.069 259.515);
  --chart-4: oklch(0.203 0.087 260.845);
  --chart-5: oklch(0.256 0.053 85.095);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.157 0.017 89.75);
  --foreground: oklch(0.993 0.001 87.425);
  --muted: oklch(0.213 0.004 267.288);
  --muted-foreground: oklch(0.688 0.019 267.24);
  --popover: oklch(0.157 0.017 89.75);
  --popover-foreground: oklch(0.993 0.001 87.425);
  --card: oklch(0.157 0.017 89.75);
  --card-foreground: oklch(0.993 0.001 87.425);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.254 0.052 85.163);
  --primary-foreground: oklch(0.805 0.168 77.731);
  --secondary: oklch(0.175 0.069 259.515);
  --secondary-foreground: oklch(0.674 0.172 264.745);
  --accent: oklch(0.175 0.069 259.515);
  --accent-foreground: oklch(0.674 0.172 264.745);
  --destructive: oklch(0.704 0.183 44.858);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.254 0.052 85.163);
  --chart-1: oklch(0.254 0.052 85.163);
  --chart-2: oklch(0.175 0.069 259.515);
  --chart-3: oklch(0.175 0.069 259.515);
  --chart-4: oklch(0.203 0.087 260.845);
  --chart-5: oklch(0.256 0.053 85.095);
}