Giant is a shadcn/ui theme built around a light green primary color (#f2fdf2) with light purple accents (#fcf2fd). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#f2fdf2) on a green-tinted background (#070e07).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070e07black |
| Foreground | #000000black | #ffffffwhite |
| Card | #ffffffwhite | #070e07black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #070e07black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #f2fdf2honeydew | #f2fdf2honeydew |
| Primary foreground | #0f4a0ddarkgreen | #0f4a0ddarkgreen |
| Secondary | #fcf2fdghostwhite | #fcf2fdghostwhite |
| Secondary foreground | #9c1ca0darkmagenta | #9c1ca0darkmagenta |
| Muted | #eee7eelavender | #171118black |
| Muted foreground | #473748darkslategray | #c7b7c8silver |
| Accent | #fcf2fdghostwhite | #fcf2fdghostwhite |
| Accent foreground | #9c1ca0darkmagenta | #9c1ca0darkmagenta |
| Destructive | #a72c11firebrick | #d53815firebrick |
| Destructive foreground | #fdf0ecseashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f2fdf2honeydew | #f2fdf2honeydew |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 10.01:1 | AAA |
| Secondary button | 6.24:1 | AA |
| Muted text | 9.07:1 | AAA |
| Accent | 6.24:1 | AA |
| Destructive | 6.25:1 | AA |
| Text on background | 19.55:1 | AAA |
| Text on card | 19.55:1 | AAA |
| Primary button | 10.01:1 | AAA |
| Secondary button | 6.24:1 | AA |
| Muted text | 9.75:1 | AAA |
| Accent | 6.24:1 | AA |
| Destructive | 4.74:1 | AA |
Paste this into your globals.css to use Giant in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.936 0.011 324.693);
--muted-foreground: oklch(0.362 0.035 325.211);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.018 144.501);
--primary-foreground: oklch(0.358 0.108 142.525);
--secondary: oklch(0.972 0.018 324.735);
--secondary-foreground: oklch(0.5 0.212 326.636);
--accent: oklch(0.972 0.018 324.735);
--accent-foreground: oklch(0.5 0.212 326.636);
--destructive: oklch(0.484 0.164 33.595);
--destructive-foreground: oklch(0.964 0.015 32.668);
--ring: oklch(0.983 0.018 144.501);
--chart-1: oklch(0.983 0.018 144.501);
--chart-2: oklch(0.972 0.018 324.735);
--chart-3: oklch(0.972 0.018 324.735);
--chart-4: oklch(1 0 180);
--chart-5: oklch(0.983 0.019 144.496);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.152 0.02 143.566);
--foreground: oklch(1 0 180);
--muted: oklch(0.189 0.016 325.148);
--muted-foreground: oklch(0.798 0.029 324.847);
--popover: oklch(0.152 0.02 143.566);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.152 0.02 143.566);
--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.983 0.018 144.501);
--primary-foreground: oklch(0.358 0.108 142.525);
--secondary: oklch(0.972 0.018 324.735);
--secondary-foreground: oklch(0.5 0.212 326.636);
--accent: oklch(0.972 0.018 324.735);
--accent-foreground: oklch(0.5 0.212 326.636);
--destructive: oklch(0.578 0.199 33.455);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.983 0.018 144.501);
--chart-1: oklch(0.983 0.018 144.501);
--chart-2: oklch(0.972 0.018 324.735);
--chart-3: oklch(0.972 0.018 324.735);
--chart-4: oklch(1 0 180);
--chart-5: oklch(0.983 0.019 144.496);
}