Greenish is a shadcn/ui theme built around a deep teal primary color (#1a322c) with deep cyan accents (#1a2c32). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep teal primary (#1a322c) on a neutral background (#030706).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030706black |
| Foreground | #020d0ablack | #f9fbfbghostwhite |
| Card | #ffffffwhite | #030706black |
| Card foreground | #020d0ablack | #f9fbfbghostwhite |
| Popover | #ffffffwhite | #030706black |
| Popover foreground | #020d0ablack | #f9fbfbghostwhite |
| Primary | #1a322cdarkslategray | #1a322cdarkslategray |
| Primary foreground | #abd4c9lightsteelblue | #abd4c9lightsteelblue |
| Secondary | #1a3220darkslategray | #1a3220darkslategray |
| Secondary foreground | #abd4b5silver | #abd4b5silver |
| Muted | #d5e7d9gainsboro | #182a1dblack |
| Muted foreground | #435b49darkslategray | #a4bcaadarkgray |
| Accent | #1a2c32darkslategray | #1a2c32darkslategray |
| Accent foreground | #abc9d4lightsteelblue | #abc9d4lightsteelblue |
| Destructive | #81230esaddlebrown | #dc3c18orangered |
| Destructive foreground | #f9d1c8pink | #ffffffwhite |
| Border | #e8eeeclavender | #161d1bblack |
| Input | #e8eeeclavender | #161d1bblack |
| Ring | #1a322cdarkslategray | #1a322cdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.72:1 | AAA |
| Text on card | 19.72:1 | AAA |
| Primary button | 8.40:1 | AAA |
| Secondary button | 8.37:1 | AAA |
| Muted text | 5.73:1 | AA |
| Accent | 8.26:1 | AAA |
| Destructive | 6.88:1 | AA |
| Text on background | 19.46:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 8.40:1 | AAA |
| Secondary button | 8.37:1 | AAA |
| Muted text | 7.45:1 | AAA |
| Accent | 8.26:1 | AAA |
| Destructive | 4.44:1 | AA Large |
Paste this into your globals.css to use Greenish in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.146 0.021 178.763);
--muted: oklch(0.91 0.026 153.379);
--muted-foreground: oklch(0.446 0.041 152.198);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.146 0.021 178.763);
--card: oklch(1 0 180);
--card-foreground: oklch(0.146 0.021 178.763);
--border: oklch(0.943 0.007 179.659);
--input: oklch(0.943 0.007 179.659);
--primary: oklch(0.297 0.033 176.095);
--primary-foreground: oklch(0.837 0.045 178.227);
--secondary: oklch(0.293 0.045 150.807);
--secondary-foreground: oklch(0.831 0.06 152.568);
--accent: oklch(0.282 0.027 220.949);
--accent-foreground: oklch(0.818 0.036 219.943);
--destructive: oklch(0.404 0.131 33.832);
--destructive-foreground: oklch(0.892 0.047 32.77);
--ring: oklch(0.297 0.033 176.095);
--chart-1: oklch(0.297 0.033 176.095);
--chart-2: oklch(0.293 0.045 150.807);
--chart-3: oklch(0.282 0.027 220.949);
--chart-4: oklch(0.328 0.053 150.667);
--chart-5: oklch(0.3 0.035 175.754);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.012 179.906);
--foreground: oklch(0.987 0.003 179.778);
--muted: oklch(0.265 0.035 151.381);
--muted-foreground: oklch(0.772 0.036 153.056);
--popover: oklch(0.123 0.012 179.906);
--popover-foreground: oklch(0.987 0.003 179.778);
--card: oklch(0.123 0.012 179.906);
--card-foreground: oklch(0.987 0.003 179.778);
--border: oklch(0.224 0.012 178.269);
--input: oklch(0.224 0.012 178.269);
--primary: oklch(0.297 0.033 176.095);
--primary-foreground: oklch(0.837 0.045 178.227);
--secondary: oklch(0.293 0.045 150.807);
--secondary-foreground: oklch(0.831 0.06 152.568);
--accent: oklch(0.282 0.027 220.949);
--accent-foreground: oklch(0.818 0.036 219.943);
--destructive: oklch(0.594 0.202 33.553);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.297 0.033 176.095);
--chart-1: oklch(0.297 0.033 176.095);
--chart-2: oklch(0.293 0.045 150.807);
--chart-3: oklch(0.282 0.027 220.949);
--chart-4: oklch(0.328 0.053 150.667);
--chart-5: oklch(0.3 0.035 175.754);
}