Graphic is a shadcn/ui theme built around a vivid cyan primary color (#82d3f3) with vivid blue accents (#829af3). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid cyan primary (#82d3f3) on a neutral background (#020608).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020608black |
| Foreground | #010304black | #f9fafbghostwhite |
| Card | #fcfcfcsnow | #030a0cblack |
| Card foreground | #000000black | #fcfdfdwhite |
| Popover | #fcfcfcsnow | #030a0cblack |
| Popover foreground | #000000black | #fcfdfdwhite |
| Primary | #82d3f3lightskyblue | #82d3f3lightskyblue |
| Primary foreground | #062d3cdarkslategray | #062d3cdarkslategray |
| Secondary | #82f3daaquamarine | #82f3daaquamarine |
| Secondary foreground | #063c31darkslategray | #063c31darkslategray |
| Muted | #cee8e3gainsboro | #17312bdarkslategray |
| Muted foreground | #606261dimgray | #9d9f9fdarkgray |
| Accent | #829af3cornflowerblue | #829af3cornflowerblue |
| Accent foreground | #06123cmidnightblue | #06123cmidnightblue |
| Destructive | #a30500darkred | #ff2b24orangered |
| Destructive foreground | #ffd8d6mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #82d3f3lightskyblue | #82d3f3lightskyblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.66:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 8.63:1 | AAA |
| Secondary button | 9.26:1 | AAA |
| Muted text | 4.77:1 | AA |
| Accent | 6.78:1 | AA |
| Destructive | 6.20:1 | AA |
| Text on background | 19.43:1 | AAA |
| Text on card | 19.60:1 | AAA |
| Primary button | 8.63:1 | AAA |
| Secondary button | 9.26:1 | AAA |
| Muted text | 5.25:1 | AA |
| Accent | 6.78:1 | AA |
| Destructive | 3.73: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.094 0.009 217.966);
--muted: oklch(0.911 0.028 181.187);
--muted-foreground: oklch(0.494 0.003 181.925);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.825 0.091 225.317);
--primary-foreground: oklch(0.279 0.05 229.524);
--secondary: oklch(0.889 0.11 177.797);
--secondary-foreground: oklch(0.321 0.058 173.776);
--accent: oklch(0.705 0.133 270.971);
--accent-foreground: oklch(0.205 0.084 266.308);
--destructive: oklch(0.452 0.183 29.685);
--destructive-foreground: oklch(0.914 0.044 20.33);
--ring: oklch(0.825 0.091 225.317);
--chart-1: oklch(0.825 0.091 225.317);
--chart-2: oklch(0.889 0.11 177.797);
--chart-3: oklch(0.705 0.133 270.971);
--chart-4: oklch(0.899 0.1 178.384);
--chart-5: oklch(0.827 0.094 225.437);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.118 0.012 217.723);
--foreground: oklch(0.985 0.001 223.144);
--muted: oklch(0.289 0.034 178.137);
--muted-foreground: oklch(0.701 0.002 181.975);
--popover: oklch(0.135 0.014 218.574);
--popover-foreground: oklch(0.993 0.001 223.137);
--card: oklch(0.135 0.014 218.574);
--card-foreground: oklch(0.993 0.001 223.137);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.825 0.091 225.317);
--primary-foreground: oklch(0.279 0.05 229.524);
--secondary: oklch(0.889 0.11 177.797);
--secondary-foreground: oklch(0.321 0.058 173.776);
--accent: oklch(0.705 0.133 270.971);
--accent-foreground: oklch(0.205 0.084 266.308);
--destructive: oklch(0.643 0.243 28.639);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.825 0.091 225.317);
--chart-1: oklch(0.825 0.091 225.317);
--chart-2: oklch(0.889 0.11 177.797);
--chart-3: oklch(0.705 0.133 270.971);
--chart-4: oklch(0.899 0.1 178.384);
--chart-5: oklch(0.827 0.094 225.437);
}