Feng for shadcn/ui

Feng is a shadcn/ui theme built around a muted deep red primary color (#191515) with muted deep blue accents (#151519). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep red primary (#191515) on a red-tinted background (#0b0405).

Color palette

TokenLightDark
Background
#ffffffwhite
#0b0405black
Foreground
#0c0405black
#f9f6f7whitesmoke
Card
#fcfcfcsnow
#0f0507black
Card foreground
#080203black
#fbf9f9snow
Popover
#fcfcfcsnow
#0f0507black
Popover foreground
#080203black
#fbf9f9snow
Primary
#191515black
#191515black
Primary foreground
#b8a8abdarkgray
#b8a8abdarkgray
Secondary
#151915black
#151915black
Secondary foreground
#abb8a8darkgray
#abb8a8darkgray
Muted
#e6f3e3beige
#0f1c0cblack
Muted foreground
#414a3fdarkslategray
#b7c0b5silver
Accent
#151519black
#151519black
Accent foreground
#a8abb8darkgray
#a8abb8darkgray
Destructive
#dd0b03red
#e20b03red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#191515black
#191515black

Contrast

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

Light mode
Text on background20.28:1AAA
Text on card20.13:1AAA
Primary button7.96:1AAA
Secondary button8.57:1AAA
Muted text8.00:1AAA
Accent7.94:1AAA
Destructive5.09:1AA
Dark mode
Text on background18.90:1AAA
Text on card19.13:1AAA
Primary button7.96:1AAA
Secondary button8.57:1AAA
Muted text9.38:1AAA
Accent7.94:1AAA
Destructive4.90:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.12 0.02 4.857);
  --muted: oklch(0.949 0.025 139.967);
  --muted-foreground: oklch(0.399 0.022 139.944);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.105 0.017 4.705);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.105 0.017 4.705);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.2 0.008 5.304);
  --primary-foreground: oklch(0.746 0.019 4.97);
  --secondary: oklch(0.209 0.011 139.947);
  --secondary-foreground: oklch(0.768 0.026 139.96);
  --accent: oklch(0.199 0.008 275.635);
  --accent-foreground: oklch(0.743 0.019 275.824);
  --destructive: oklch(0.566 0.229 29.425);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.2 0.008 5.304);
  --chart-1: oklch(0.2 0.008 5.304);
  --chart-2: oklch(0.209 0.011 139.947);
  --chart-3: oklch(0.199 0.008 275.635);
  --chart-4: oklch(0.243 0.014 139.943);
  --chart-5: oklch(0.199 0.01 5.615);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.018 4.756);
  --foreground: oklch(0.976 0.003 4.385);
  --muted: oklch(0.211 0.035 139.922);
  --muted-foreground: oklch(0.797 0.018 139.971);
  --popover: oklch(0.135 0.021 5.718);
  --popover-foreground: oklch(0.984 0.002 4.36);
  --card: oklch(0.135 0.021 5.718);
  --card-foreground: oklch(0.984 0.002 4.36);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.2 0.008 5.304);
  --primary-foreground: oklch(0.746 0.019 4.97);
  --secondary: oklch(0.209 0.011 139.947);
  --secondary-foreground: oklch(0.768 0.026 139.96);
  --accent: oklch(0.199 0.008 275.635);
  --accent-foreground: oklch(0.743 0.019 275.824);
  --destructive: oklch(0.576 0.233 29.42);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.2 0.008 5.304);
  --chart-1: oklch(0.2 0.008 5.304);
  --chart-2: oklch(0.209 0.011 139.947);
  --chart-3: oklch(0.199 0.008 275.635);
  --chart-4: oklch(0.243 0.014 139.943);
  --chart-5: oklch(0.199 0.01 5.615);
}