Asymmetry is a shadcn/ui theme built around a muted pink primary color (#8c737a) with muted red accents (#8c7873). The light mode uses a neutral background (#fcf8f9). Dark mode keeps the muted pink primary (#8c737a) on a pink-tinted background (#100508).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8f9snow | #100508black |
| Foreground | #0c0406black | #ffffffwhite |
| Card | #faf4f6whitesmoke | #14060ablack |
| Card foreground | #080204black | #ffffffwhite |
| Popover | #faf4f6whitesmoke | #14060ablack |
| Popover foreground | #080204black | #ffffffwhite |
| Primary | #8c737agray | #8c737agray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #8c7387gray | #8c7387gray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f7edf5whitesmoke | #120810black |
| Muted foreground | #4a4a4adarkslategray | #b5b5b5silver |
| Accent | #8c7873gray | #8c7873gray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #bb2402firebrick | #fd5630tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8c737agray | #8c737agray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.23:1 | AAA |
| Text on card | 18.99:1 | AAA |
| Primary button | 4.33:1 | AA Large |
| Secondary button | 4.27:1 | AA Large |
| Muted text | 7.77:1 | AAA |
| Accent | 4.16:1 | AA Large |
| Destructive | 6.25:1 | AA |
| Text on background | 20.08:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 4.33:1 | AA Large |
| Secondary button | 4.27:1 | AA Large |
| Muted text | 9.60:1 | AAA |
| Accent | 4.16:1 | AA Large |
| Destructive | 6.53:1 | AA |
Paste this into your globals.css to use Asymmetry in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.005 356.794);
--foreground: oklch(0.121 0.02 356.588);
--muted: oklch(0.957 0.015 332.236);
--muted-foreground: oklch(0.409 0 190.305);
--popover: oklch(0.973 0.007 356.864);
--popover-foreground: oklch(0.106 0.018 356.395);
--card: oklch(0.973 0.007 356.864);
--card-foreground: oklch(0.106 0.018 356.395);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.581 0.034 358.272);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.586 0.043 333.062);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.59 0.027 34.324);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.513 0.19 32.627);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.581 0.034 358.272);
--chart-1: oklch(0.581 0.034 358.272);
--chart-2: oklch(0.586 0.043 333.062);
--chart-3: oklch(0.59 0.027 34.324);
--chart-4: oklch(0.612 0.04 332.95);
--chart-5: oklch(0.577 0.044 358.771);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.135 0.023 357.975);
--foreground: oklch(1 0 180);
--muted: oklch(0.152 0.024 334.041);
--muted-foreground: oklch(0.773 0 180);
--popover: oklch(0.147 0.027 359.833);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.147 0.027 359.833);
--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.581 0.034 358.272);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.586 0.043 333.062);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.59 0.027 34.324);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.675 0.21 34.015);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.581 0.034 358.272);
--chart-1: oklch(0.581 0.034 358.272);
--chart-2: oklch(0.586 0.043 333.062);
--chart-3: oklch(0.59 0.027 34.324);
--chart-4: oklch(0.612 0.04 332.95);
--chart-5: oklch(0.577 0.044 358.771);
}