Conversion is a shadcn/ui theme built around an indigo primary color (#4c41af) with violet accents (#8341af). The light mode uses a neutral background (#ffffff). Dark mode keeps the indigo primary (#4c41af) on an indigo-tinted background (#06050a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #06050ablack |
| Foreground | #070514black | #f9f9faghostwhite |
| Card | #ffffffwhite | #06050ablack |
| Card foreground | #070514black | #f9f9faghostwhite |
| Popover | #ffffffwhite | #06050ablack |
| Popover foreground | #070514black | #f9f9faghostwhite |
| Primary | #4c41afdarkslateblue | #4c41afdarkslateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #416dafsteelblue | #416dafsteelblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d3dae4gainsboro | #1b222cdarkslategray |
| Muted foreground | #4e555fdimgray | #a0a7b1darkgray |
| Accent | #8341afrebeccapurple | #8341afrebeccapurple |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #9a3904saddlebrown | #ea5606orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4c41afdarkslateblue | #4c41afdarkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.17:1 | AAA |
| Text on card | 20.17:1 | AAA |
| Primary button | 7.85:1 | AAA |
| Secondary button | 5.22:1 | AA |
| Muted text | 5.33:1 | AA |
| Accent | 6.30:1 | AA |
| Destructive | 7.10:1 | AAA |
| Text on background | 19.30:1 | AAA |
| Text on card | 19.30:1 | AAA |
| Primary button | 7.85:1 | AAA |
| Secondary button | 5.22:1 | AA |
| Muted text | 6.59:1 | AA |
| Accent | 6.30:1 | AA |
| Destructive | 3.61:1 | AA Large |
Paste this into your globals.css to use Conversion in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.131 0.034 286.435);
--muted: oklch(0.885 0.015 258.35);
--muted-foreground: oklch(0.447 0.019 258.372);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.131 0.034 286.435);
--card: oklch(1 0 180);
--card-foreground: oklch(0.131 0.034 286.435);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.452 0.169 281.789);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.534 0.115 258.307);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.509 0.173 309.176);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.475 0.141 41.891);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.452 0.169 281.789);
--chart-1: oklch(0.452 0.169 281.789);
--chart-2: oklch(0.534 0.115 258.307);
--chart-3: oklch(0.509 0.173 309.176);
--chart-4: oklch(0.558 0.121 258.31);
--chart-5: oklch(0.447 0.178 280.882);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.014 289.672);
--foreground: oklch(0.984 0.001 290.988);
--muted: oklch(0.25 0.021 258.353);
--muted-foreground: oklch(0.725 0.017 258.359);
--popover: oklch(0.12 0.014 289.672);
--popover-foreground: oklch(0.984 0.001 290.988);
--card: oklch(0.12 0.014 289.672);
--card-foreground: oklch(0.984 0.001 290.988);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.452 0.169 281.789);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.534 0.115 258.307);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.509 0.173 309.176);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.643 0.196 40.828);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.452 0.169 281.789);
--chart-1: oklch(0.452 0.169 281.789);
--chart-2: oklch(0.534 0.115 258.307);
--chart-3: oklch(0.509 0.173 309.176);
--chart-4: oklch(0.558 0.121 258.31);
--chart-5: oklch(0.447 0.178 280.882);
}