Feng for shadcn/ui

Feng is a shadcn/ui theme built around a light green primary color (#c9e4d5) with light orange accents (#e4d5c9). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#c9e4d5) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#010402black
#f9fafaghostwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#fcfdfcwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#000000black
#fcfdfcwhite
Primary
#c9e4d5lightgrey
#c9e4d5lightgrey
Primary foreground
#29513cdarkslategray
#29513cdarkslategray
Secondary
#d5c9e4thistle
#d5c9e4thistle
Secondary foreground
#3c2951darkslategray
#3c2951darkslategray
Muted
#f2eff6whitesmoke
#0d0910black
Muted foreground
#66626adimgray
#99959ddarkgray
Accent
#e4d5c9lightgrey
#e4d5c9lightgrey
Accent foreground
#513c29darkolivegreen
#513c29darkolivegreen
Destructive
#8c2c03saddlebrown
#f54d05orangered
Destructive foreground
#fed5c3peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c9e4d5lightgrey
#c9e4d5lightgrey

Contrast

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

Light mode
Text on background20.59:1AAA
Text on card20.54:1AAA
Primary button6.63:1AA
Secondary button8.15:1AAA
Muted text5.22:1AA
Accent7.23:1AAA
Destructive6.26:1AA
Dark mode
Text on background20.08:1AAA
Text on card20.28:1AAA
Primary button6.63:1AA
Secondary button8.15:1AAA
Muted text6.71:1AA
Accent7.23:1AAA
Destructive3.53:1AA Large

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.098 0.012 163.509);
  --muted: oklch(0.956 0.01 306.978);
  --muted-foreground: oklch(0.502 0.014 306.781);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.894 0.035 162.433);
  --primary-foreground: oklch(0.4 0.059 158.842);
  --secondary: oklch(0.854 0.039 306.551);
  --secondary-foreground: oklch(0.323 0.073 304.163);
  --accent: oklch(0.882 0.023 63.746);
  --accent-foreground: oklch(0.374 0.043 62.14);
  --destructive: oklch(0.434 0.138 38.797);
  --destructive-foreground: oklch(0.902 0.052 44.491);
  --ring: oklch(0.894 0.035 162.433);
  --chart-1: oklch(0.894 0.035 162.433);
  --chart-2: oklch(0.854 0.039 306.551);
  --chart-3: oklch(0.882 0.023 63.746);
  --chart-4: oklch(0.881 0.032 306.674);
  --chart-5: oklch(0.896 0.038 162.341);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.985 0.001 163.411);
  --muted: oklch(0.148 0.017 305.813);
  --muted-foreground: oklch(0.675 0.013 306.883);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.993 0.001 163.428);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.993 0.001 163.428);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.894 0.035 162.433);
  --primary-foreground: oklch(0.4 0.059 158.842);
  --secondary: oklch(0.854 0.039 306.551);
  --secondary-foreground: oklch(0.323 0.073 304.163);
  --accent: oklch(0.882 0.023 63.746);
  --accent-foreground: oklch(0.374 0.043 62.14);
  --destructive: oklch(0.651 0.214 37.461);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.894 0.035 162.433);
  --chart-1: oklch(0.894 0.035 162.433);
  --chart-2: oklch(0.854 0.039 306.551);
  --chart-3: oklch(0.882 0.023 63.746);
  --chart-4: oklch(0.881 0.032 306.674);
  --chart-5: oklch(0.896 0.038 162.341);
}