Gran and magenta is a shadcn/ui theme built around a green primary color (#239f4a) with purple accents (#9f2378). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#239f4a) on a neutral background (#010402).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010402black |
| Foreground | #010904black | #fcfdfcwhite |
| Card | #fcfcfcsnow | #030804black |
| Card foreground | #010402black | #ffffffwhite |
| Popover | #fcfcfcsnow | #030804black |
| Popover foreground | #010402black | #ffffffwhite |
| Primary | #239f4aseagreen | #239f4aseagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #9f2378mediumvioletred | #9f2378mediumvioletred |
| Secondary foreground | #fdf7fbsnow | #fdf7fbsnow |
| Muted | #f6eef4whitesmoke | #11090eblack |
| Muted foreground | #585557dimgray | #aaa7a9darkgray |
| Accent | #9f2378mediumvioletred | #9f2378mediumvioletred |
| Accent foreground | #fdf7fbsnow | #fdf7fbsnow |
| Destructive | #990300darkred | #eb0400red |
| Destructive foreground | #ffcdccpink | #ffffffwhite |
| Border | #eff1efwhitesmoke | #242925darkslategray |
| Input | #eff1efwhitesmoke | #242925darkslategray |
| Ring | #239f4aseagreen | #239f4aseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.15:1 | AAA |
| Text on card | 20.15:1 | AAA |
| Primary button | 3.42:1 | AA Large |
| Secondary button | 6.66:1 | AA |
| Muted text | 6.48:1 | AA |
| Accent | 6.66:1 | AA |
| Destructive | 6.28:1 | AA |
| Text on background | 20.20:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 3.42:1 | AA Large |
| Secondary button | 6.66:1 | AA |
| Muted text | 8.25:1 | AAA |
| Accent | 6.66:1 | AA |
| Destructive | 4.62:1 | AA |
Paste this into your globals.css to use Gran and magenta in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.125 0.024 156.031);
--muted: oklch(0.958 0.011 336.791);
--muted-foreground: oklch(0.453 0.006 336.809);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.099 0.019 156.031);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.099 0.019 156.031);
--border: oklch(0.955 0.003 156.498);
--input: oklch(0.955 0.003 156.498);
--primary: oklch(0.618 0.162 148.852);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.487 0.18 344.09);
--secondary-foreground: oklch(0.981 0.009 336.739);
--accent: oklch(0.487 0.18 344.09);
--accent-foreground: oklch(0.981 0.009 336.739);
--destructive: oklch(0.43 0.175 29.478);
--destructive-foreground: oklch(0.891 0.057 19.414);
--ring: oklch(0.618 0.162 148.852);
--chart-1: oklch(0.618 0.162 148.852);
--chart-2: oklch(0.487 0.18 344.09);
--chart-3: oklch(0.487 0.18 344.09);
--chart-4: oklch(0.514 0.191 344.157);
--chart-5: oklch(0.625 0.167 148.552);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.013 156.201);
--foreground: oklch(0.993 0.001 156.539);
--muted: oklch(0.152 0.018 338.653);
--muted-foreground: oklch(0.731 0.005 336.698);
--popover: oklch(0.122 0.016 156.201);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.122 0.016 156.201);
--card-foreground: oklch(1 0 180);
--border: oklch(0.274 0.01 155.811);
--input: oklch(0.274 0.01 155.811);
--primary: oklch(0.618 0.162 148.852);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.487 0.18 344.09);
--secondary-foreground: oklch(0.981 0.009 336.739);
--accent: oklch(0.487 0.18 344.09);
--accent-foreground: oklch(0.981 0.009 336.739);
--destructive: oklch(0.59 0.241 29.378);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.618 0.162 148.852);
--chart-1: oklch(0.618 0.162 148.852);
--chart-2: oklch(0.487 0.18 344.09);
--chart-3: oklch(0.487 0.18 344.09);
--chart-4: oklch(0.514 0.191 344.157);
--chart-5: oklch(0.625 0.167 148.552);
}