New Green Flash is a shadcn/ui theme built around a green primary color (#7ec856) with violet accents (#a056c8). The light mode uses a neutral background (#fcfefb). Dark mode keeps the green primary (#7ec856) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfefbwhite | #000000black |
| Foreground | #081103black | #f7f9f5whitesmoke |
| Card | #f9fdf7mintcream | #030303black |
| Card foreground | #060d02black | #fafbf9snow |
| Popover | #fcfefbwhite | #000000black |
| Popover foreground | #081103black | #f7f9f5whitesmoke |
| Primary | #7ec856yellowgreen | #7ec856yellowgreen |
| Primary foreground | #000000black | #000000black |
| Secondary | #a056c8mediumorchid | #a056c8mediumorchid |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f1ecf3whitesmoke | #100c13black |
| Muted foreground | #5a4b63dimgray | #ac9cb4darkgray |
| Accent | #a056c8mediumorchid | #a056c8mediumorchid |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #ba1d08firebrick | #f52a0forangered |
| Destructive foreground | #fff6f5lavenderblush | #ffffffwhite |
| Border | #eaece9linen | #191c17black |
| Input | #eaece9linen | #191c17black |
| Ring | #7ec856yellowgreen | #7ec856yellowgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.97:1 | AAA |
| Text on card | 19.17:1 | AAA |
| Primary button | 10.27:1 | AAA |
| Secondary button | 4.52:1 | AA |
| Muted text | 6.89:1 | AA |
| Accent | 4.52:1 | AA |
| Destructive | 6.05:1 | AA |
| Text on background | 19.82:1 | AAA |
| Text on card | 19.92:1 | AAA |
| Primary button | 10.27:1 | AAA |
| Secondary button | 4.52:1 | AA |
| Muted text | 7.53:1 | AAA |
| Accent | 4.52:1 | AA |
| Destructive | 4.02:1 | AA Large |
Paste this into your globals.css to use New Green Flash in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.005 134.248);
--foreground: oklch(0.164 0.034 133.471);
--muted: oklch(0.95 0.01 314.164);
--muted-foreground: oklch(0.437 0.044 313.665);
--popover: oklch(0.995 0.005 134.248);
--popover-foreground: oklch(0.164 0.034 133.471);
--card: oklch(0.99 0.01 134.276);
--card-foreground: oklch(0.146 0.029 132.596);
--border: oklch(0.941 0.005 134.249);
--input: oklch(0.941 0.005 134.249);
--primary: oklch(0.759 0.167 136.014);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.588 0.18 312.153);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.588 0.18 312.153);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.507 0.193 30.851);
--destructive-foreground: oklch(0.98 0.009 26.502);
--ring: oklch(0.759 0.167 136.014);
--chart-1: oklch(0.759 0.167 136.014);
--chart-2: oklch(0.588 0.18 312.153);
--chart-3: oklch(0.588 0.18 312.153);
--chart-4: oklch(0.615 0.168 312.46);
--chart-5: oklch(0.767 0.175 136.14);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.98 0.006 134.253);
--muted: oklch(0.163 0.015 313.718);
--muted-foreground: oklch(0.715 0.039 313.921);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.98 0.006 134.253);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.987 0.004 134.242);
--border: oklch(0.22 0.009 134.448);
--input: oklch(0.22 0.009 134.448);
--primary: oklch(0.759 0.167 136.014);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.588 0.18 312.153);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.588 0.18 312.153);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.623 0.237 30.856);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.759 0.167 136.014);
--chart-1: oklch(0.759 0.167 136.014);
--chart-2: oklch(0.588 0.18 312.153);
--chart-3: oklch(0.588 0.18 312.153);
--chart-4: oklch(0.615 0.168 312.46);
--chart-5: oklch(0.767 0.175 136.14);
}