Charge is a shadcn/ui theme built around a green primary color (#b3cd8e) with green accents (#93cd8e). The light mode uses a neutral background (#fafcf7). Dark mode keeps the green primary (#b3cd8e) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fafcf7snow | #000000black |
| Foreground | #0e1505black | #fafcf8snow |
| Card | #f8fbf4whitesmoke | #030303black |
| Card foreground | #0b1004black | #fdfdfbsnow |
| Popover | #f8fbf4whitesmoke | #030303black |
| Popover foreground | #0b1004black | #fdfdfbsnow |
| Primary | #b3cd8edarkseagreen | #b3cd8edarkseagreen |
| Primary foreground | #161c0cblack | #161c0cblack |
| Secondary | #cdc88etan | #cdc88etan |
| Secondary foreground | #1c1b0cblack | #1c1b0cblack |
| Muted | #efeddcbeige | #232110black |
| Muted foreground | #606057dimgray | #a8a79fdarkgray |
| Accent | #93cd8edarkseagreen | #93cd8edarkseagreen |
| Accent foreground | #0e1c0cblack | #0e1c0cblack |
| Destructive | #810c08maroon | #f02019crimson |
| Destructive foreground | #fbc3c1pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b3cd8edarkseagreen | #b3cd8edarkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.08:1 | AAA |
| Text on card | 18.44:1 | AAA |
| Primary button | 9.99:1 | AAA |
| Secondary button | 10.10:1 | AAA |
| Muted text | 5.39:1 | AA |
| Accent | 9.56:1 | AAA |
| Destructive | 6.84:1 | AA |
| Text on background | 20.34:1 | AAA |
| Text on card | 20.30:1 | AAA |
| Primary button | 9.99:1 | AAA |
| Secondary button | 10.10:1 | AAA |
| Muted text | 6.68:1 | AA |
| Accent | 9.56:1 | AAA |
| Destructive | 4.25:1 | AA Large |
Paste this into your globals.css to use Charge in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.007 125.142);
--foreground: oklch(0.182 0.032 127.004);
--muted: oklch(0.944 0.023 102.6);
--muted-foreground: oklch(0.486 0.013 102.643);
--popover: oklch(0.984 0.01 125.192);
--popover-foreground: oklch(0.165 0.028 125.981);
--card: oklch(0.984 0.01 125.192);
--card-foreground: oklch(0.165 0.028 125.981);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.814 0.09 126.681);
--primary-foreground: oklch(0.216 0.031 127.24);
--secondary: oklch(0.823 0.077 103.548);
--secondary-foreground: oklch(0.219 0.026 103.821);
--accent: oklch(0.793 0.107 142.49);
--accent-foreground: oklch(0.209 0.037 142.302);
--destructive: oklch(0.386 0.15 28.948);
--destructive-foreground: oklch(0.866 0.065 20.775);
--ring: oklch(0.814 0.09 126.681);
--chart-1: oklch(0.814 0.09 126.681);
--chart-2: oklch(0.823 0.077 103.548);
--chart-3: oklch(0.793 0.107 142.49);
--chart-4: oklch(0.84 0.07 103.426);
--chart-5: oklch(0.819 0.096 126.801);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.988 0.006 125.124);
--muted: oklch(0.246 0.03 103.848);
--muted-foreground: oklch(0.727 0.012 102.478);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.994 0.003 125.084);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.994 0.003 125.084);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.814 0.09 126.681);
--primary-foreground: oklch(0.216 0.031 127.24);
--secondary: oklch(0.823 0.077 103.548);
--secondary-foreground: oklch(0.219 0.026 103.821);
--accent: oklch(0.793 0.107 142.49);
--accent-foreground: oklch(0.209 0.037 142.302);
--destructive: oklch(0.61 0.237 28.947);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.814 0.09 126.681);
--chart-1: oklch(0.814 0.09 126.681);
--chart-2: oklch(0.823 0.077 103.548);
--chart-3: oklch(0.793 0.107 142.49);
--chart-4: oklch(0.84 0.07 103.426);
--chart-5: oklch(0.819 0.096 126.801);
}