Convert is a shadcn/ui theme built around a green primary color (#9ea739) with green accents (#67a739). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the green primary (#9ea739) on a neutral background (#030302).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcf8snow | #030302black |
| Foreground | #151603black | #f8f8f6whitesmoke |
| Card | #fafaf5whitesmoke | #060704black |
| Card foreground | #111202black | #fafbf9snow |
| Popover | #fafaf5whitesmoke | #060704black |
| Popover foreground | #111202black | #fafbf9snow |
| Primary | #9ea739yellowgreen | #9ea739yellowgreen |
| Primary foreground | #0e0f05black | #0e0f05black |
| Secondary | #a77939peru | #a77939peru |
| Secondary foreground | #000000black | #000000black |
| Muted | #e9e4ddgainsboro | #221d16black |
| Muted foreground | #4b463fdarkslategray | #c0bbb4silver |
| Accent | #67a739olivedrab | #67a739olivedrab |
| Accent foreground | #090f05black | #090f05black |
| Destructive | #780602maroon | #f50d05red |
| Destructive foreground | #fdb2aflightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9ea739yellowgreen | #9ea739yellowgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 17.74:1 | AAA |
| Text on card | 18.04:1 | AAA |
| Primary button | 7.39:1 | AAA |
| Secondary button | 5.45:1 | AA |
| Muted text | 7.39:1 | AAA |
| Accent | 6.63:1 | AA |
| Destructive | 6.65:1 | AA |
| Text on background | 19.37:1 | AAA |
| Text on card | 19.48:1 | AAA |
| Primary button | 7.39:1 | AAA |
| Secondary button | 5.45:1 | AA |
| Muted text | 8.75:1 | AAA |
| Accent | 6.63:1 | AA |
| Destructive | 4.25:1 | AA Large |
Paste this into your globals.css to use Convert in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.005 110.338);
--foreground: oklch(0.195 0.036 113.34);
--muted: oklch(0.921 0.011 76.593);
--muted-foreground: oklch(0.396 0.014 76.445);
--popover: oklch(0.984 0.007 110.385);
--popover-foreground: oklch(0.175 0.032 113.012);
--card: oklch(0.984 0.007 110.385);
--card-foreground: oklch(0.175 0.032 113.012);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.7 0.132 113.881);
--primary-foreground: oklch(0.165 0.021 112.241);
--secondary: oklch(0.61 0.099 73.153);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.663 0.157 134.602);
--accent-foreground: oklch(0.159 0.024 131.539);
--destructive: oklch(0.363 0.144 29.556);
--destructive-foreground: oklch(0.833 0.089 21.351);
--ring: oklch(0.7 0.132 113.881);
--chart-1: oklch(0.7 0.132 113.881);
--chart-2: oklch(0.61 0.099 73.153);
--chart-3: oklch(0.663 0.157 134.602);
--chart-4: oklch(0.64 0.104 73.104);
--chart-5: oklch(0.71 0.138 114.017);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.008 111.14);
--foreground: oklch(0.979 0.002 110.293);
--muted: oklch(0.235 0.015 76.126);
--muted-foreground: oklch(0.795 0.012 76.58);
--popover: oklch(0.124 0.01 111.14);
--popover-foreground: oklch(0.986 0.002 110.277);
--card: oklch(0.124 0.01 111.14);
--card-foreground: oklch(0.986 0.002 110.277);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.7 0.132 113.881);
--primary-foreground: oklch(0.165 0.021 112.241);
--secondary: oklch(0.61 0.099 73.153);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.663 0.157 134.602);
--accent-foreground: oklch(0.159 0.024 131.539);
--destructive: oklch(0.612 0.247 29.374);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.7 0.132 113.881);
--chart-1: oklch(0.7 0.132 113.881);
--chart-2: oklch(0.61 0.099 73.153);
--chart-3: oklch(0.663 0.157 134.602);
--chart-4: oklch(0.64 0.104 73.104);
--chart-5: oklch(0.71 0.138 114.017);
}