Nelly2 is a shadcn/ui theme built around a green primary color (#a7d7ba) with teal accents (#a7d7d3). The light mode uses a neutral background (#fbfefc). Dark mode keeps the green primary (#a7d7ba) on a neutral background (#020302).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #020302black |
| Foreground | #010402black | #ffffffwhite |
| Card | #fbfefcwhite | #020302black |
| Card foreground | #010402black | #ffffffwhite |
| Popover | #fbfefcwhite | #020302black |
| Popover foreground | #010402black | #ffffffwhite |
| Primary | #a7d7basilver | #a7d7basilver |
| Primary foreground | #183523darkslategray | #183523darkslategray |
| Secondary | #acd7a7silver | #acd7a7silver |
| Secondary foreground | #1b3518darkgreen | #1b3518darkgreen |
| Muted | #d2e7cfgainsboro | #1a3018black |
| Muted foreground | #4a6148darkolivegreen | #a1b79edarkgray |
| Accent | #a7d7d3lightblue | #a7d7d3lightblue |
| Accent foreground | #183532darkslategray | #183532darkslategray |
| Destructive | #950f0fdarkred | #e81717crimson |
| Destructive foreground | #fbdadamistyrose | #ffffffwhite |
| Border | #e8eeealavender | #212c25darkslategray |
| Input | #e8eeealavender | #212c25darkslategray |
| Ring | #a7d7basilver | #a7d7basilver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.24:1 | AAA |
| Text on card | 20.24:1 | AAA |
| Primary button | 8.34:1 | AAA |
| Secondary button | 8.33:1 | AAA |
| Muted text | 5.20:1 | AA |
| Accent | 8.37:1 | AAA |
| Destructive | 6.89:1 | AA |
| Text on background | 20.63:1 | AAA |
| Text on card | 20.63:1 | AAA |
| Primary button | 8.34:1 | AAA |
| Secondary button | 8.33:1 | AAA |
| Muted text | 6.62:1 | AA |
| Accent | 8.37:1 | AAA |
| Destructive | 4.59:1 | AA |
Paste this into your globals.css to use Nelly2 in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 160.165);
--foreground: oklch(0.099 0.017 160.087);
--muted: oklch(0.907 0.04 142.446);
--muted-foreground: oklch(0.466 0.049 142.198);
--popover: oklch(0.994 0.003 160.165);
--popover-foreground: oklch(0.099 0.017 160.087);
--card: oklch(0.994 0.003 160.165);
--card-foreground: oklch(0.099 0.017 160.087);
--border: oklch(0.942 0.008 160.035);
--input: oklch(0.942 0.008 160.035);
--primary: oklch(0.839 0.065 158.319);
--primary-foreground: oklch(0.3 0.048 155.737);
--secondary: oklch(0.837 0.081 142.23);
--secondary-foreground: oklch(0.298 0.06 141.832);
--accent: oklch(0.845 0.051 188.661);
--accent-foreground: oklch(0.304 0.036 187.047);
--destructive: oklch(0.426 0.165 28.063);
--destructive-foreground: oklch(0.916 0.037 17.853);
--ring: oklch(0.839 0.065 158.319);
--chart-1: oklch(0.839 0.065 158.319);
--chart-2: oklch(0.837 0.081 142.23);
--chart-3: oklch(0.845 0.051 188.661);
--chart-4: oklch(0.856 0.071 142.287);
--chart-5: oklch(0.841 0.07 158.168);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.095 0.008 160.165);
--foreground: oklch(1 0 180);
--muted: oklch(0.283 0.051 141.897);
--muted-foreground: oklch(0.757 0.043 142.391);
--popover: oklch(0.095 0.008 160.165);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.095 0.008 160.165);
--card-foreground: oklch(1 0 180);
--border: oklch(0.28 0.02 158.454);
--input: oklch(0.28 0.02 158.454);
--primary: oklch(0.839 0.065 158.319);
--primary-foreground: oklch(0.3 0.048 155.737);
--secondary: oklch(0.837 0.081 142.23);
--secondary-foreground: oklch(0.298 0.06 141.832);
--accent: oklch(0.845 0.051 188.661);
--accent-foreground: oklch(0.304 0.036 187.047);
--destructive: oklch(0.591 0.233 28.416);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.839 0.065 158.319);
--chart-1: oklch(0.839 0.065 158.319);
--chart-2: oklch(0.837 0.081 142.23);
--chart-3: oklch(0.845 0.051 188.661);
--chart-4: oklch(0.856 0.071 142.287);
--chart-5: oklch(0.841 0.07 158.168);
}