Yellowish is a shadcn/ui theme built around a green primary color (#89e061) with violet accents (#b861e0). The light mode uses a neutral background (#f9fdf7). Dark mode keeps the green primary (#89e061) on a neutral background (#040803).
| Token | Light | Dark |
|---|---|---|
| Background | #f9fdf7mintcream | #040803black |
| Foreground | #040802black | #fcfdfcwhite |
| Card | #f6fcf3whitesmoke | #060b04black |
| Card foreground | #020401black | #ffffffwhite |
| Popover | #f9fdf7mintcream | #040803black |
| Popover foreground | #040802black | #fcfdfcwhite |
| Primary | #89e061lightgreen | #89e061lightgreen |
| Primary foreground | #060d03black | #060d03black |
| Secondary | #b861e0mediumorchid | #b861e0mediumorchid |
| Secondary foreground | #000000black | #000000black |
| Muted | #e6e3e8gainsboro | #1a171cblack |
| Muted foreground | #473e4cdarkslategray | #bdb3c1silver |
| Accent | #b861e0mediumorchid | #b861e0mediumorchid |
| Accent foreground | #000000black | #000000black |
| Destructive | #db380aorangered | #ea3b0borangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #89e061lightgreen | #89e061lightgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.59:1 | AAA |
| Text on card | 19.69:1 | AAA |
| Primary button | 12.08:1 | AAA |
| Secondary button | 5.83:1 | AA |
| Muted text | 8.03:1 | AAA |
| Accent | 5.83:1 | AA |
| Destructive | 4.58:1 | AA |
| Text on background | 19.80:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 12.08:1 | AAA |
| Secondary button | 5.83:1 | AA |
| Muted text | 8.74:1 | AAA |
| Accent | 5.83:1 | AA |
| Destructive | 4.09:1 | AA Large |
Paste this into your globals.css to use Yellowish in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.009 135.466);
--foreground: oklch(0.125 0.021 133.817);
--muted: oklch(0.921 0.006 315.399);
--muted-foreground: oklch(0.379 0.026 315.137);
--popover: oklch(0.989 0.009 135.466);
--popover-foreground: oklch(0.125 0.021 133.817);
--card: oklch(0.983 0.013 135.485);
--card-foreground: oklch(0.099 0.017 133.817);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.825 0.183 136.893);
--primary-foreground: oklch(0.146 0.029 133.736);
--secondary: oklch(0.646 0.196 313.796);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.646 0.196 313.796);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.587 0.206 34.125);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.825 0.183 136.893);
--chart-1: oklch(0.825 0.183 136.893);
--chart-2: oklch(0.646 0.196 313.796);
--chart-3: oklch(0.646 0.196 313.796);
--chart-4: oklch(0.672 0.181 314.065);
--chart-5: oklch(0.83 0.189 136.976);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.019 133.98);
--foreground: oklch(0.993 0.002 135.437);
--muted: oklch(0.212 0.009 315.249);
--muted-foreground: oklch(0.78 0.022 315.309);
--popover: oklch(0.124 0.019 133.98);
--popover-foreground: oklch(0.993 0.002 135.437);
--card: oklch(0.142 0.022 134.059);
--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.825 0.183 136.893);
--primary-foreground: oklch(0.146 0.029 133.736);
--secondary: oklch(0.646 0.196 313.796);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.646 0.196 313.796);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.616 0.216 34.06);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.825 0.183 136.893);
--chart-1: oklch(0.825 0.183 136.893);
--chart-2: oklch(0.646 0.196 313.796);
--chart-3: oklch(0.646 0.196 313.796);
--chart-4: oklch(0.672 0.181 314.065);
--chart-5: oklch(0.83 0.189 136.976);
}