Amusing is a shadcn/ui theme built around a purple primary color (#943d93) with pink accents (#943d67). The light mode uses a neutral background (#fcf8fc). Dark mode keeps the purple primary (#943d93) on a purple-tinted background (#0c040b).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8fcsnow | #0c040bblack |
| Foreground | #170316black | #fbf8fbsnow |
| Card | #faf4faghostwhite | #0f050fblack |
| Card foreground | #120212black | #fdfcfdwhite |
| Popover | #faf4faghostwhite | #0f050fblack |
| Popover foreground | #120212black | #fdfcfdwhite |
| Primary | #943d93rebeccapurple | #943d93rebeccapurple |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #6a3d94rebeccapurple | #6a3d94rebeccapurple |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e1d8e8gainsboro | #1f1727black |
| Muted foreground | #4f4955darkslategray | #b0aab6darkgray |
| Accent | #943d67dimgray | #943d67dimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #bf3908firebrick | #f55014orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #943d93rebeccapurple | #943d93rebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.80:1 | AAA |
| Text on card | 18.64:1 | AAA |
| Primary button | 6.27:1 | AA |
| Secondary button | 7.76:1 | AAA |
| Muted text | 6.30:1 | AA |
| Accent | 6.72:1 | AA |
| Destructive | 5.52:1 | AA |
| Text on background | 19.22:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 6.27:1 | AA |
| Secondary button | 7.76:1 | AAA |
| Muted text | 7.68:1 | AAA |
| Accent | 6.72:1 | AA |
| Destructive | 3.47:1 | AA Large |
Paste this into your globals.css to use Amusing in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.007 326.108);
--foreground: oklch(0.151 0.055 328.471);
--muted: oklch(0.895 0.023 308.853);
--muted-foreground: oklch(0.415 0.022 308.562);
--popover: oklch(0.975 0.01 326.136);
--popover-foreground: oklch(0.137 0.048 328.382);
--card: oklch(0.975 0.01 326.136);
--card-foreground: oklch(0.137 0.048 328.382);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.51 0.16 328.257);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.456 0.142 305.311);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.49 0.127 352.672);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.539 0.178 36.571);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.51 0.16 328.257);
--chart-1: oklch(0.51 0.16 328.257);
--chart-2: oklch(0.456 0.142 305.311);
--chart-3: oklch(0.49 0.127 352.672);
--chart-4: oklch(0.479 0.15 305.27);
--chart-5: oklch(0.512 0.169 328.36);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.026 327.474);
--foreground: oklch(0.984 0.005 326.093);
--muted: oklch(0.221 0.033 307.55);
--muted-foreground: oklch(0.746 0.019 308.854);
--popover: oklch(0.139 0.03 327.584);
--popover-foreground: oklch(0.992 0.002 326.073);
--card: oklch(0.139 0.03 327.584);
--card-foreground: oklch(0.992 0.002 326.073);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.51 0.16 328.257);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.456 0.142 305.311);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.49 0.127 352.672);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.655 0.211 37.13);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.51 0.16 328.257);
--chart-1: oklch(0.51 0.16 328.257);
--chart-2: oklch(0.456 0.142 305.311);
--chart-3: oklch(0.49 0.127 352.672);
--chart-4: oklch(0.479 0.15 305.27);
--chart-5: oklch(0.512 0.169 328.36);
}