Grotesque is a shadcn/ui theme built around a light green primary color (#f2fcf6) with light teal accents (#f2fcfb). The light mode uses a neutral background (#fbfdfc). Dark mode keeps the light green primary (#f2fcf6) on a green-tinted background (#050b07).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfcwhite | #050b07black |
| Foreground | #010402black | #f9fbfamintcream |
| Card | #f8fcf9mintcream | #060e09black |
| Card foreground | #000000black | #fcfdfcwhite |
| Popover | #f8fcf9mintcream | #060e09black |
| Popover foreground | #000000black | #fcfdfcwhite |
| Primary | #f2fcf6mintcream | #f2fcf6mintcream |
| Primary foreground | #0e4822darkgreen | #0e4822darkgreen |
| Secondary | #f4fcf2honeydew | #f4fcf2honeydew |
| Secondary foreground | #18480edarkgreen | #18480edarkgreen |
| Muted | #dfe9dcgainsboro | #182316black |
| Muted foreground | #545a53dimgray | #a6aca5darkgray |
| Accent | #f2fcfbmintcream | #f2fcfbmintcream |
| Accent foreground | #0e483fdarkslategray | #0e483fdarkslategray |
| Destructive | #c52e0dfirebrick | #e1350eorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f2fcf6mintcream | #f2fcf6mintcream |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.23:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 10.20:1 | AAA |
| Secondary button | 10.19:1 | AAA |
| Muted text | 5.68:1 | AA |
| Accent | 9.99:1 | AAA |
| Destructive | 5.58:1 | AA |
| Text on background | 19.15:1 | AAA |
| Text on card | 19.15:1 | AAA |
| Primary button | 10.20:1 | AAA |
| Secondary button | 10.19:1 | AAA |
| Muted text | 7.06:1 | AAA |
| Accent | 9.99:1 | AAA |
| Destructive | 4.44:1 | AA Large |
Paste this into your globals.css to use Grotesque in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 157.209);
--foreground: oklch(0.098 0.016 156.89);
--muted: oklch(0.924 0.021 140.497);
--muted-foreground: oklch(0.461 0.013 140.487);
--popover: oklch(0.987 0.005 157.153);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.987 0.005 157.153);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.983 0.014 156.973);
--primary-foreground: oklch(0.356 0.088 149.999);
--secondary: oklch(0.983 0.016 140.506);
--secondary-foreground: oklch(0.357 0.102 140.662);
--accent: oklch(0.984 0.011 185.156);
--accent-foreground: oklch(0.364 0.06 178.938);
--destructive: oklch(0.539 0.191 33.124);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.983 0.014 156.973);
--chart-1: oklch(0.983 0.014 156.973);
--chart-2: oklch(0.983 0.016 140.506);
--chart-3: oklch(0.984 0.011 185.156);
--chart-4: oklch(1 0 180);
--chart-5: oklch(0.983 0.015 156.959);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.015 157.01);
--foreground: oklch(0.986 0.003 157.202);
--muted: oklch(0.239 0.028 140.368);
--muted-foreground: oklch(0.737 0.012 140.507);
--popover: oklch(0.154 0.017 156.134);
--popover-foreground: oklch(0.993 0.002 157.234);
--card: oklch(0.154 0.017 156.134);
--card-foreground: oklch(0.993 0.002 157.234);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.983 0.014 156.973);
--primary-foreground: oklch(0.356 0.088 149.999);
--secondary: oklch(0.983 0.016 140.506);
--secondary-foreground: oklch(0.357 0.102 140.662);
--accent: oklch(0.984 0.011 185.156);
--accent-foreground: oklch(0.364 0.06 178.938);
--destructive: oklch(0.596 0.213 33.025);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.983 0.014 156.973);
--chart-1: oklch(0.983 0.014 156.973);
--chart-2: oklch(0.983 0.016 140.506);
--chart-3: oklch(0.984 0.011 185.156);
--chart-4: oklch(1 0 180);
--chart-5: oklch(0.983 0.015 156.959);
}