These is a shadcn/ui theme built around a green primary color (#90ba3b) with muted light green accents (#dde0d7). The light mode uses a neutral background (#fbfdf7). Dark mode keeps the green primary (#90ba3b) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdf7snow | #000000black |
| Foreground | #0c1005black | #ffffffwhite |
| Card | #f9fbf3floralwhite | #030303black |
| Card foreground | #090c04black | #ffffffwhite |
| Popover | #fbfdf7snow | #000000black |
| Popover foreground | #0c1005black | #ffffffwhite |
| Primary | #90ba3byellowgreen | #90ba3byellowgreen |
| Primary foreground | #181f0ablack | #181f0ablack |
| Secondary | #ebecealinen | #151613black |
| Secondary foreground | #53564edarkslategray | #b0b4a7darkgray |
| Muted | #daded4gainsboro | #282b21darkslategray |
| Muted foreground | #525946darkolivegreen | #b3b9a6darkgray |
| Accent | #dde0d7gainsboro | #292d1fdarkslategray |
| Accent foreground | #454a3adarkslategray | #c3cbb4silver |
| Destructive | #9d0b0bdarkred | #f24040tomato |
| Destructive foreground | #fddedemistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #90ba3byellowgreen | #90ba3byellowgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.71:1 | AAA |
| Text on card | 18.91:1 | AAA |
| Primary button | 7.47:1 | AAA |
| Secondary button | 6.28:1 | AA |
| Muted text | 5.34:1 | AA |
| Accent | 6.82:1 | AA |
| Destructive | 6.68:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.47:1 | AAA |
| Secondary button | 8.59:1 | AAA |
| Muted text | 7.12:1 | AAA |
| Accent | 8.40:1 | AAA |
| Destructive | 3.76:1 | AA Large |
Paste this into your globals.css to use These in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.007 121.612);
--foreground: oklch(0.163 0.024 122.787);
--muted: oklch(0.894 0.014 121.742);
--muted-foreground: oklch(0.451 0.031 122.62);
--popover: oklch(0.99 0.007 121.612);
--popover-foreground: oklch(0.163 0.024 122.787);
--card: oklch(0.985 0.011 121.673);
--card-foreground: oklch(0.146 0.021 121.42);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.734 0.16 126.085);
--primary-foreground: oklch(0.226 0.039 124.634);
--secondary: oklch(0.941 0.003 121.541);
--secondary-foreground: oklch(0.447 0.013 121.981);
--accent: oklch(0.901 0.012 121.706);
--accent-foreground: oklch(0.4 0.027 122.59);
--destructive: oklch(0.442 0.175 28.471);
--destructive-foreground: oklch(0.925 0.034 17.791);
--ring: oklch(0.734 0.16 126.085);
--chart-1: oklch(0.734 0.16 126.085);
--chart-2: oklch(0.941 0.003 121.541);
--chart-3: oklch(0.901 0.012 121.706);
--chart-4: oklch(0.963 0.002 121.522);
--chart-5: oklch(0.743 0.167 126.328);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.283 0.018 122.549);
--muted-foreground: oklch(0.777 0.027 122.061);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.734 0.16 126.085);
--primary-foreground: oklch(0.226 0.039 124.634);
--secondary: oklch(0.198 0.007 122.034);
--secondary-foreground: oklch(0.762 0.019 121.893);
--accent: oklch(0.289 0.025 122.928);
--accent-foreground: oklch(0.829 0.032 122.127);
--destructive: oklch(0.638 0.214 25.703);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.734 0.16 126.085);
--chart-1: oklch(0.734 0.16 126.085);
--chart-2: oklch(0.198 0.007 122.034);
--chart-3: oklch(0.289 0.025 122.928);
--chart-4: oklch(0.233 0.009 122.099);
--chart-5: oklch(0.743 0.167 126.328);
}