Graphic is a shadcn/ui theme built around a deep green primary color (#2d5d30) with deep purple accents (#5d2d5a). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#2d5d30) on a neutral background (#020402).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020402black |
| Foreground | #061307black | #f8fcf8mintcream |
| Card | #ffffffwhite | #020402black |
| Card foreground | #061307black | #f8fcf8mintcream |
| Popover | #ffffffwhite | #020402black |
| Popover foreground | #061307black | #f8fcf8mintcream |
| Primary | #2d5d30darkslategray | #2d5d30darkslategray |
| Primary foreground | #d2e9d4gainsboro | #d2e9d4gainsboro |
| Secondary | #5d2d5adarkslateblue | #5d2d5adarkslateblue |
| Secondary foreground | #e9d2e8gainsboro | #e9d2e8gainsboro |
| Muted | #ede8edlavender | #171216black |
| Muted foreground | #493c48darkslategray | #c3b6c2silver |
| Accent | #5d2d5adarkslateblue | #5d2d5adarkslateblue |
| Accent foreground | #e9d2e8gainsboro | #e9d2e8gainsboro |
| Destructive | #941d10brown | #e7311dorangered |
| Destructive foreground | #fbdddamistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2d5d30darkslategray | #2d5d30darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.02:1 | AAA |
| Text on card | 19.02:1 | AAA |
| Primary button | 6.01:1 | AA |
| Secondary button | 7.48:1 | AAA |
| Muted text | 8.59:1 | AAA |
| Accent | 7.48:1 | AAA |
| Destructive | 6.76:1 | AA |
| Text on background | 19.90:1 | AAA |
| Text on card | 19.90:1 | AAA |
| Primary button | 6.01:1 | AA |
| Secondary button | 7.48:1 | AAA |
| Muted text | 9.50:1 | AAA |
| Accent | 7.48:1 | AAA |
| Destructive | 4.31:1 | AA Large |
Paste this into your globals.css to use Graphic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.171 0.032 145.754);
--muted: oklch(0.937 0.007 327.623);
--muted-foreground: oklch(0.374 0.027 328.24);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.171 0.032 145.754);
--card: oklch(1 0 180);
--card-foreground: oklch(0.171 0.032 145.754);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.432 0.089 145.172);
--primary-foreground: oklch(0.912 0.038 147.124);
--secondary: oklch(0.378 0.095 329.772);
--secondary-foreground: oklch(0.89 0.039 327.963);
--accent: oklch(0.378 0.095 329.772);
--accent-foreground: oklch(0.89 0.039 327.963);
--destructive: oklch(0.434 0.156 30.484);
--destructive-foreground: oklch(0.922 0.033 25.325);
--ring: oklch(0.432 0.089 145.172);
--chart-1: oklch(0.432 0.089 145.172);
--chart-2: oklch(0.378 0.095 329.772);
--chart-3: oklch(0.378 0.095 329.772);
--chart-4: oklch(0.406 0.103 329.803);
--chart-5: oklch(0.436 0.096 144.996);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.013 146.558);
--foreground: oklch(0.987 0.006 147.481);
--muted: oklch(0.19 0.011 328.096);
--muted-foreground: oklch(0.791 0.023 327.824);
--popover: oklch(0.096 0.013 146.558);
--popover-foreground: oklch(0.987 0.006 147.481);
--card: oklch(0.096 0.013 146.558);
--card-foreground: oklch(0.987 0.006 147.481);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.432 0.089 145.172);
--primary-foreground: oklch(0.912 0.038 147.124);
--secondary: oklch(0.378 0.095 329.772);
--secondary-foreground: oklch(0.89 0.039 327.963);
--accent: oklch(0.378 0.095 329.772);
--accent-foreground: oklch(0.89 0.039 327.963);
--destructive: oklch(0.604 0.219 30.501);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.432 0.089 145.172);
--chart-1: oklch(0.432 0.089 145.172);
--chart-2: oklch(0.378 0.095 329.772);
--chart-3: oklch(0.378 0.095 329.772);
--chart-4: oklch(0.406 0.103 329.803);
--chart-5: oklch(0.436 0.096 144.996);
}