Smoggy for shadcn/ui

Smoggy is a shadcn/ui theme built around a yellow primary color (#d2bf83) with green accents (#bfd283). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#d2bf83) on a neutral background (#040301).

Color palette

TokenLightDark
Background
#ffffffwhite
#040301black
Foreground
#141006black
#faf8f5whitesmoke
Card
#ffffffwhite
#040301black
Card foreground
#141006black
#faf8f5whitesmoke
Popover
#ffffffwhite
#040301black
Popover foreground
#141006black
#faf8f5whitesmoke
Primary
#d2bf83tan
#d2bf83tan
Primary foreground
#1a1609black
#1a1609black
Secondary
#d29783darksalmon
#d29783darksalmon
Secondary foreground
#1a0e09black
#1a0e09black
Muted
#ebe3e0gainsboro
#1f1714black
Muted foreground
#424242darkslategray
#bdbdbdsilver
Accent
#bfd283darkkhaki
#bfd283darkkhaki
Accent foreground
#161a09black
#161a09black
Destructive
#8b1c09darkred
#f25236tomato
Destructive foreground
#fcd2capink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d2bf83tan
#d2bf83tan

Contrast

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

Light mode
Text on background18.97:1AAA
Text on card18.97:1AAA
Primary button9.89:1AAA
Secondary button7.66:1AAA
Muted text7.92:1AAA
Accent10.78:1AAA
Destructive6.69:1AA
Dark mode
Text on background19.41:1AAA
Text on card19.41:1AAA
Primary button9.89:1AAA
Secondary button7.66:1AAA
Muted text9.40:1AAA
Accent10.78:1AAA
Destructive3.47:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.175 0.021 92.583);
  --muted: oklch(0.921 0.01 39.44);
  --muted-foreground: oklch(0.38 0 180);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.175 0.021 92.583);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.175 0.021 92.583);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.806 0.08 91.771);
  --primary-foreground: oklch(0.201 0.024 91.656);
  --secondary: oklch(0.729 0.077 39.212);
  --secondary-foreground: oklch(0.179 0.023 39.227);
  --accent: oklch(0.832 0.105 120.177);
  --accent-foreground: oklch(0.209 0.031 120.641);
  --destructive: oklch(0.416 0.149 32.119);
  --destructive-foreground: oklch(0.897 0.049 29.757);
  --ring: oklch(0.806 0.08 91.771);
  --chart-1: oklch(0.806 0.08 91.771);
  --chart-2: oklch(0.729 0.077 39.212);
  --chart-3: oklch(0.832 0.105 120.177);
  --chart-4: oklch(0.753 0.069 39.221);
  --chart-5: oklch(0.811 0.085 91.744);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.1 0.013 96.605);
  --foreground: oklch(0.98 0.005 91.45);
  --muted: oklch(0.213 0.015 39.247);
  --muted-foreground: oklch(0.797 0 180);
  --popover: oklch(0.1 0.013 96.605);
  --popover-foreground: oklch(0.98 0.005 91.45);
  --card: oklch(0.1 0.013 96.605);
  --card-foreground: oklch(0.98 0.005 91.45);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.806 0.08 91.771);
  --primary-foreground: oklch(0.201 0.024 91.656);
  --secondary: oklch(0.729 0.077 39.212);
  --secondary-foreground: oklch(0.179 0.023 39.227);
  --accent: oklch(0.832 0.105 120.177);
  --accent-foreground: oklch(0.209 0.031 120.641);
  --destructive: oklch(0.654 0.201 32.356);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.806 0.08 91.771);
  --chart-1: oklch(0.806 0.08 91.771);
  --chart-2: oklch(0.729 0.077 39.212);
  --chart-3: oklch(0.832 0.105 120.177);
  --chart-4: oklch(0.753 0.069 39.221);
  --chart-5: oklch(0.811 0.085 91.744);
}