Natural is a shadcn/ui theme built around a vivid light green primary color (#ddfcb6) with vivid light violet accents (#d4b6fc). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light green primary (#ddfcb6) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #080e02black | #fdfdfcwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #080e02black | #fdfdfcwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #080e02black | #fdfdfcwhite |
| Primary | #ddfcb6palegoldenrod | #ddfcb6palegoldenrod |
| Primary foreground | #0e1801black | #0e1801black |
| Secondary | #d4b6fcthistle | #d4b6fcthistle |
| Secondary foreground | #38067aindigo | #38067aindigo |
| Muted | #f2eef6whitesmoke | #0c0911black |
| Muted foreground | #564e5fdimgray | #a7a0b1darkgray |
| Accent | #d4b6fcthistle | #d4b6fcthistle |
| Accent foreground | #38067aindigo | #38067aindigo |
| Destructive | #841f0bmaroon | #de3412orangered |
| Destructive foreground | #facfc6pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ddfcb6palegoldenrod | #ddfcb6palegoldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.55:1 | AAA |
| Text on card | 19.55:1 | AAA |
| Primary button | 16.20:1 | AAA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 6.92:1 | AA |
| Accent | 8.05:1 | AAA |
| Destructive | 6.78:1 | AA |
| Text on background | 20.63:1 | AAA |
| Text on card | 20.63:1 | AAA |
| Primary button | 16.20:1 | AAA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 7.82:1 | AAA |
| Accent | 8.05:1 | AAA |
| Destructive | 4.56:1 | AA |
Paste this into your globals.css to use Natural in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.151 0.031 125.216);
--muted: oklch(0.955 0.011 305.585);
--muted-foreground: oklch(0.438 0.03 304.84);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.151 0.031 125.216);
--card: oklch(1 0 180);
--card-foreground: oklch(0.151 0.031 125.216);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.951 0.096 127.159);
--primary-foreground: oklch(0.194 0.047 127.988);
--secondary: oklch(0.826 0.101 304.094);
--secondary-foreground: oklch(0.309 0.166 292.349);
--accent: oklch(0.826 0.101 304.094);
--accent-foreground: oklch(0.309 0.166 292.349);
--destructive: oklch(0.406 0.139 32.889);
--destructive-foreground: oklch(0.89 0.051 31.263);
--ring: oklch(0.951 0.096 127.159);
--chart-1: oklch(0.951 0.096 127.159);
--chart-2: oklch(0.826 0.101 304.094);
--chart-3: oklch(0.826 0.101 304.094);
--chart-4: oklch(0.86 0.08 304.495);
--chart-5: oklch(0.954 0.099 127.204);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.994 0.002 125.767);
--muted: oklch(0.147 0.018 304.263);
--muted-foreground: oklch(0.716 0.026 305.254);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.994 0.002 125.767);
--card: oklch(0 0 0);
--card-foreground: oklch(0.994 0.002 125.767);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.951 0.096 127.159);
--primary-foreground: oklch(0.194 0.047 127.988);
--secondary: oklch(0.826 0.101 304.094);
--secondary-foreground: oklch(0.309 0.166 292.349);
--accent: oklch(0.826 0.101 304.094);
--accent-foreground: oklch(0.309 0.166 292.349);
--destructive: oklch(0.589 0.21 32.603);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.951 0.096 127.159);
--chart-1: oklch(0.951 0.096 127.159);
--chart-2: oklch(0.826 0.101 304.094);
--chart-3: oklch(0.826 0.101 304.094);
--chart-4: oklch(0.86 0.08 304.495);
--chart-5: oklch(0.954 0.099 127.204);
}