Graph is a shadcn/ui theme built around a green primary color (#90dd2c) with green accents (#38dd2c). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#90dd2c) on a neutral background (#050803).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050803black |
| Foreground | #0b1004black | #f8faf4whitesmoke |
| Card | #fcfcfcsnow | #080b04black |
| Card foreground | #080c03black | #fafcf8snow |
| Popover | #fcfcfcsnow | #080b04black |
| Popover foreground | #080c03black | #fafcf8snow |
| Primary | #90dd2cyellowgreen | #90dd2cyellowgreen |
| Primary foreground | #223509darkgreen | #223509darkgreen |
| Secondary | #ddd12cgoldenrod | #ddd12cgoldenrod |
| Secondary foreground | #353209black | #353209black |
| Muted | #e2e1d5gainsboro | #2a2a1ddarkslategray |
| Muted foreground | #757357dimgray | #a8a68arosybrown |
| Accent | #38dd2climegreen | #38dd2climegreen |
| Accent foreground | #0c3509darkgreen | #0c3509darkgreen |
| Destructive | #9f330fsaddlebrown | #ec6032tomato |
| Destructive foreground | #fce9e3mistyrose | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #90dd2cyellowgreen | #90dd2cyellowgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.26:1 | AAA |
| Text on card | 19.30:1 | AAA |
| Primary button | 7.93:1 | AAA |
| Secondary button | 8.20:1 | AAA |
| Muted text | 3.67:1 | AA Large |
| Accent | 7.53:1 | AAA |
| Destructive | 6.08:1 | AA |
| Text on background | 19.17:1 | AAA |
| Text on card | 19.15:1 | AAA |
| Primary button | 7.93:1 | AAA |
| Secondary button | 8.20:1 | AAA |
| Muted text | 5.87:1 | AA |
| Accent | 7.53:1 | AAA |
| Destructive | 6.29:1 | AA |
Paste this into your globals.css to use Graph in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.163 0.026 126.516);
--muted: oklch(0.908 0.017 103.416);
--muted-foreground: oklch(0.55 0.042 104.28);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.146 0.022 125.132);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.146 0.022 125.132);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.816 0.21 131.199);
--primary-foreground: oklch(0.3 0.071 130.211);
--secondary: oklch(0.844 0.169 105.094);
--secondary-foreground: oklch(0.31 0.058 105.226);
--accent: oklch(0.784 0.246 142.128);
--accent-foreground: oklch(0.288 0.084 142.132);
--destructive: oklch(0.476 0.15 36.908);
--destructive-foreground: oklch(0.949 0.023 39.375);
--ring: oklch(0.816 0.21 131.199);
--chart-1: oklch(0.816 0.21 131.199);
--chart-2: oklch(0.844 0.169 105.094);
--chart-3: oklch(0.784 0.246 142.128);
--chart-4: oklch(0.853 0.165 105.186);
--chart-5: oklch(0.825 0.215 131.426);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.017 124.963);
--foreground: oklch(0.982 0.008 125.85);
--muted: oklch(0.28 0.022 104.311);
--muted-foreground: oklch(0.72 0.04 103.982);
--popover: oklch(0.145 0.02 125.124);
--popover-foreground: oklch(0.988 0.005 125.812);
--card: oklch(0.145 0.02 125.124);
--card-foreground: oklch(0.988 0.005 125.812);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.816 0.21 131.199);
--primary-foreground: oklch(0.3 0.071 130.211);
--secondary: oklch(0.844 0.169 105.094);
--secondary-foreground: oklch(0.31 0.058 105.226);
--accent: oklch(0.784 0.246 142.128);
--accent-foreground: oklch(0.288 0.084 142.132);
--destructive: oklch(0.662 0.183 38.119);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.816 0.21 131.199);
--chart-1: oklch(0.816 0.21 131.199);
--chart-2: oklch(0.844 0.169 105.094);
--chart-3: oklch(0.784 0.246 142.128);
--chart-4: oklch(0.853 0.165 105.186);
--chart-5: oklch(0.825 0.215 131.426);
}