Feng is a shadcn/ui theme built around a neutral gray primary color (#3b3f37) with neutral gray accents (#373f37). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the neutral gray primary (#3b3f37) on a green-tinted background (#0b0f05).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfcwhite | #0b0f05black |
| Foreground | #0e1603black | #fdfdfcwhite |
| Card | #fdfdfcwhite | #0b0f05black |
| Card foreground | #0e1603black | #fdfdfcwhite |
| Popover | #fdfdfcwhite | #0b0f05black |
| Popover foreground | #0e1603black | #fdfdfcwhite |
| Primary | #3b3f37darkslategray | #3b3f37darkslategray |
| Primary foreground | #d4d7d1lightgrey | #d4d7d1lightgrey |
| Secondary | #3f3e37darkslategray | #3f3e37darkslategray |
| Secondary foreground | #d7d6d1lightgrey | #d7d6d1lightgrey |
| Muted | #edece3beige | #1c1b12black |
| Muted foreground | #4c4a39darkolivegreen | #c6c5b3silver |
| Accent | #373f37darkslategray | #373f37darkslategray |
| Accent foreground | #d1d7d1lightgrey | #d1d7d1lightgrey |
| Destructive | #710f0amaroon | #eb1f14red |
| Destructive foreground | #f8b7b4lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3b3f37darkslategray | #3b3f37darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.20:1 | AAA |
| Text on card | 18.20:1 | AAA |
| Primary button | 7.41:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 7.55:1 | AAA |
| Accent | 7.46:1 | AAA |
| Destructive | 7.02:1 | AAA |
| Text on background | 19.00:1 | AAA |
| Text on card | 19.00:1 | AAA |
| Primary button | 7.41:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 9.90:1 | AAA |
| Accent | 7.46:1 | AAA |
| Destructive | 4.44:1 | AA Large |
Paste this into your globals.css to use Feng in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 125.774);
--foreground: oklch(0.187 0.04 127.795);
--muted: oklch(0.942 0.012 103.318);
--muted-foreground: oklch(0.406 0.028 104.165);
--popover: oklch(0.994 0.003 125.774);
--popover-foreground: oklch(0.187 0.04 127.795);
--card: oklch(0.994 0.003 125.774);
--card-foreground: oklch(0.187 0.04 127.795);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.361 0.015 126.288);
--primary-foreground: oklch(0.874 0.009 125.873);
--secondary: oklch(0.363 0.013 103.68);
--secondary-foreground: oklch(0.876 0.008 103.253);
--accent: oklch(0.357 0.017 143.377);
--accent-foreground: oklch(0.872 0.01 143.574);
--destructive: oklch(0.353 0.132 29.011);
--destructive-foreground: oklch(0.84 0.076 22.233);
--ring: oklch(0.361 0.015 126.288);
--chart-1: oklch(0.361 0.015 126.288);
--chart-2: oklch(0.363 0.013 103.68);
--chart-3: oklch(0.357 0.017 143.377);
--chart-4: oklch(0.393 0.014 103.692);
--chart-5: oklch(0.365 0.021 126.516);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.161 0.023 126.446);
--foreground: oklch(0.993 0.002 125.761);
--muted: oklch(0.22 0.017 104.27);
--muted-foreground: oklch(0.819 0.024 103.58);
--popover: oklch(0.161 0.023 126.446);
--popover-foreground: oklch(0.993 0.002 125.761);
--card: oklch(0.161 0.023 126.446);
--card-foreground: oklch(0.993 0.002 125.761);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.361 0.015 126.288);
--primary-foreground: oklch(0.874 0.009 125.873);
--secondary: oklch(0.363 0.013 103.68);
--secondary-foreground: oklch(0.876 0.008 103.253);
--accent: oklch(0.357 0.017 143.377);
--accent-foreground: oklch(0.872 0.01 143.574);
--destructive: oklch(0.599 0.233 29.365);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.361 0.015 126.288);
--chart-1: oklch(0.361 0.015 126.288);
--chart-2: oklch(0.363 0.013 103.68);
--chart-3: oklch(0.357 0.017 143.377);
--chart-4: oklch(0.393 0.014 103.692);
--chart-5: oklch(0.365 0.021 126.516);
}