Convert is a shadcn/ui theme built around a light purple primary color (#f8e2f7) with light pink accents (#f8e2ec). The light mode uses a neutral background (#fefbfe). Dark mode keeps the light purple primary (#f8e2f7) on a purple-tinted background (#100410).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfewhite | #100410black |
| Foreground | #0c030cblack | #ffffffwhite |
| Card | #fdf6fdsnow | #140514black |
| Card foreground | #080208black | #ffffffwhite |
| Popover | #fdf6fdsnow | #140514black |
| Popover foreground | #080208black | #ffffffwhite |
| Primary | #f8e2f7lavenderblush | #f8e2f7lavenderblush |
| Primary foreground | #872184darkmagenta | #872184darkmagenta |
| Secondary | #eee2f8lavender | #eee2f8lavender |
| Secondary foreground | #582187rebeccapurple | #582187rebeccapurple |
| Muted | #f2f1f4whitesmoke | #0d0b0eblack |
| Muted foreground | #433f46darkslategray | #bdb9c0silver |
| Accent | #f8e2ecmistyrose | #f8e2ecmistyrose |
| Accent foreground | #872151brown | #872151brown |
| Destructive | #761405maroon | #dc2509orangered |
| Destructive foreground | #fcbbb1lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f8e2f7lavenderblush | #f8e2f7lavenderblush |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.74:1 | AAA |
| Text on card | 19.40:1 | AAA |
| Primary button | 6.68:1 | AA |
| Secondary button | 8.52:1 | AAA |
| Muted text | 9.14:1 | AAA |
| Accent | 7.23:1 | AAA |
| Destructive | 6.90:1 | AA |
| Text on background | 20.03:1 | AAA |
| Text on card | 19.75:1 | AAA |
| Primary button | 6.68:1 | AA |
| Secondary button | 8.52:1 | AAA |
| Muted text | 10.13:1 | AAA |
| Accent | 7.23:1 | AAA |
| Destructive | 4.85:1 | AA |
Paste this into your globals.css to use Convert in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.006 326.592);
--foreground: oklch(0.125 0.028 328.068);
--muted: oklch(0.959 0.004 309.739);
--muted-foreground: oklch(0.374 0.012 309.465);
--popover: oklch(0.982 0.012 326.643);
--popover-foreground: oklch(0.109 0.024 327.982);
--card: oklch(0.982 0.012 326.643);
--card-foreground: oklch(0.109 0.024 327.982);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.937 0.036 326.871);
--primary-foreground: oklch(0.453 0.177 329.483);
--secondary: oklch(0.929 0.032 309.448);
--secondary-foreground: oklch(0.386 0.161 303.936);
--accent: oklch(0.934 0.027 347.677);
--accent-foreground: oklch(0.428 0.144 356.746);
--destructive: oklch(0.367 0.134 31.728);
--destructive-foreground: oklch(0.848 0.077 28.672);
--ring: oklch(0.937 0.036 326.871);
--chart-1: oklch(0.937 0.036 326.871);
--chart-2: oklch(0.929 0.032 309.448);
--chart-3: oklch(0.934 0.027 347.677);
--chart-4: oklch(0.96 0.018 309.6);
--chart-5: oklch(0.937 0.038 326.888);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.035 328.362);
--foreground: oklch(1 0 180);
--muted: oklch(0.154 0.007 309.339);
--muted-foreground: oklch(0.792 0.01 309.659);
--popover: oklch(0.152 0.04 328.508);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.152 0.04 328.508);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.937 0.036 326.871);
--primary-foreground: oklch(0.453 0.177 329.483);
--secondary: oklch(0.929 0.032 309.448);
--secondary-foreground: oklch(0.386 0.161 303.936);
--accent: oklch(0.934 0.027 347.677);
--accent-foreground: oklch(0.428 0.144 356.746);
--destructive: oklch(0.576 0.218 31.197);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.937 0.036 326.871);
--chart-1: oklch(0.937 0.036 326.871);
--chart-2: oklch(0.929 0.032 309.448);
--chart-3: oklch(0.934 0.027 347.677);
--chart-4: oklch(0.96 0.018 309.6);
--chart-5: oklch(0.937 0.038 326.888);
}