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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.59:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 6.63:1 | AA |
| Secondary button | 8.15:1 | AAA |
| Muted text | 5.22:1 | AA |
| Accent | 7.23:1 | AAA |
| Destructive | 6.26:1 | AA |
| Text on background | 20.08:1 | AAA |
| Text on card | 20.28:1 | AAA |
| Primary button | 6.63:1 | AA |
| Secondary button | 8.15:1 | AAA |
| Muted text | 6.71:1 | AA |
| Accent | 7.23:1 | AAA |
| Destructive | 3.53:1 | AA Large |
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);
}