Nelly is a shadcn/ui theme built around a green primary color (#a7d7ba) with orange accents (#d7baa7). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the green primary (#a7d7ba) on a neutral background (#020302).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfcwhite | #020302black |
| Foreground | #05150bblack | #ffffffwhite |
| Card | #f8fcfamintcream | #030705black |
| Card foreground | #041109black | #ffffffwhite |
| Popover | #f8fcfamintcream | #030705black |
| Popover foreground | #041109black | #ffffffwhite |
| Primary | #a7d7basilver | #a7d7basilver |
| Primary foreground | #183523darkslategray | #183523darkslategray |
| Secondary | #baa7d7lightsteelblue | #baa7d7lightsteelblue |
| Secondary foreground | #231835midnightblue | #231835midnightblue |
| Muted | #f2f0f4whitesmoke | #0c0b0fblack |
| Muted foreground | #554e5fdimgray | #a7a0b1darkgray |
| Accent | #d7baa7tan | #d7baa7tan |
| Accent foreground | #352318black | #352318black |
| Destructive | #e02500orangered | #ff370forangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #dfe7e2gainsboro | #1f2823darkslategray |
| Input | #dfe7e2gainsboro | #1f2823darkslategray |
| Ring | #a7d7basilver | #a7d7basilver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.43:1 | AAA |
| Text on card | 18.59:1 | AAA |
| Primary button | 8.34:1 | AAA |
| Secondary button | 7.66:1 | AAA |
| Muted text | 7.03:1 | AAA |
| Accent | 8.19:1 | AAA |
| Destructive | 4.71:1 | AA |
| Text on background | 20.62:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 8.34:1 | AAA |
| Secondary button | 7.66:1 | AAA |
| Muted text | 7.76:1 | AAA |
| Accent | 8.19:1 | AAA |
| Destructive | 3.61:1 | AA Large |
Paste this into your globals.css to use Nelly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 160.181);
--foreground: oklch(0.176 0.03 156.695);
--muted: oklch(0.958 0.006 304.26);
--muted-foreground: oklch(0.437 0.029 303.381);
--popover: oklch(0.987 0.005 160.127);
--popover-foreground: oklch(0.16 0.026 158.306);
--card: oklch(0.987 0.005 160.127);
--card-foreground: oklch(0.16 0.026 158.306);
--border: oklch(0.92 0.01 159.989);
--input: oklch(0.92 0.01 159.989);
--primary: oklch(0.839 0.065 158.319);
--primary-foreground: oklch(0.3 0.048 155.737);
--secondary: oklch(0.761 0.071 302.994);
--secondary-foreground: oklch(0.238 0.056 300.722);
--accent: oklch(0.81 0.043 55.704);
--accent-foreground: oklch(0.276 0.034 54.544);
--destructive: oklch(0.583 0.222 31.794);
--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.761 0.071 302.994);
--chart-3: oklch(0.81 0.043 55.704);
--chart-4: oklch(0.791 0.062 303.213);
--chart-5: oklch(0.841 0.07 158.168);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.009 160.158);
--foreground: oklch(1 0 180);
--muted: oklch(0.152 0.009 303.497);
--muted-foreground: oklch(0.716 0.026 303.825);
--popover: oklch(0.12 0.011 160.158);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.12 0.011 160.158);
--card-foreground: oklch(1 0 180);
--border: oklch(0.267 0.017 158.721);
--input: oklch(0.267 0.017 158.721);
--primary: oklch(0.839 0.065 158.319);
--primary-foreground: oklch(0.3 0.048 155.737);
--secondary: oklch(0.761 0.071 302.994);
--secondary-foreground: oklch(0.238 0.056 300.722);
--accent: oklch(0.81 0.043 55.704);
--accent-foreground: oklch(0.276 0.034 54.544);
--destructive: oklch(0.65 0.238 32.305);
--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.761 0.071 302.994);
--chart-3: oklch(0.81 0.043 55.704);
--chart-4: oklch(0.791 0.062 303.213);
--chart-5: oklch(0.841 0.07 158.168);
}