Amusing is a shadcn/ui theme built around a deep violet primary color (#160a29) with neutral gray accents (#e3e2e4). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the deep violet primary (#160a29) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f8fcghostwhite | #000000black |
| Foreground | #090311black | #faf8fbghostwhite |
| Card | #f7f4fbghostwhite | #030303black |
| Card foreground | #06030dblack | #fcfcfdwhite |
| Popover | #f7f4fbghostwhite | #030303black |
| Popover foreground | #06030dblack | #fcfcfdwhite |
| Primary | #160a29black | #160a29black |
| Primary foreground | #a783e2mediumpurple | #a783e2mediumpurple |
| Secondary | #e3e2e4gainsboro | #16131bblack |
| Secondary foreground | #4a484bdarkslategray | #aca1bfdarkgray |
| Muted | #efeef1whitesmoke | #0f0e11black |
| Muted foreground | #4b4851darkslategray | #b1aeb7darkgray |
| Accent | #e3e2e4gainsboro | #16131bblack |
| Accent foreground | #4a484bdarkslategray | #aca1bfdarkgray |
| Destructive | #cf0b07firebrick | #f72f2bcrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #160a29black | #160a29black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.19:1 | AAA |
| Text on card | 18.75:1 | AAA |
| Primary button | 6.30:1 | AA |
| Secondary button | 7.02:1 | AAA |
| Muted text | 7.77:1 | AAA |
| Accent | 7.02:1 | AAA |
| Destructive | 5.68:1 | AA |
| Text on background | 19.88:1 | AAA |
| Text on card | 20.16:1 | AAA |
| Primary button | 6.30:1 | AA |
| Secondary button | 7.54:1 | AAA |
| Muted text | 8.80:1 | AAA |
| Accent | 7.54:1 | AAA |
| Destructive | 3.88:1 | AA Large |
Paste this into your globals.css to use Amusing in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.006 303.542);
--foreground: oklch(0.123 0.035 302.92);
--muted: oklch(0.952 0.003 303.587);
--muted-foreground: oklch(0.408 0.016 303.068);
--popover: oklch(0.971 0.01 303.491);
--popover-foreground: oklch(0.111 0.03 304.432);
--card: oklch(0.971 0.01 303.491);
--card-foreground: oklch(0.111 0.03 304.432);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.182 0.062 297.585);
--primary-foreground: oklch(0.683 0.14 300.408);
--secondary: oklch(0.915 0.002 303.614);
--secondary-foreground: oklch(0.406 0.005 303.454);
--accent: oklch(0.915 0.002 303.614);
--accent-foreground: oklch(0.406 0.005 303.454);
--destructive: oklch(0.539 0.217 29.103);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.182 0.062 297.585);
--chart-1: oklch(0.182 0.062 297.585);
--chart-2: oklch(0.915 0.002 303.614);
--chart-3: oklch(0.915 0.002 303.614);
--chart-4: oklch(0.938 0.001 303.621);
--chart-5: oklch(0.181 0.064 297.195);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.982 0.004 303.576);
--muted: oklch(0.166 0.005 303.172);
--muted-foreground: oklch(0.756 0.014 303.375);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.991 0.002 303.608);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.991 0.002 303.608);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.182 0.062 297.585);
--primary-foreground: oklch(0.683 0.14 300.408);
--secondary: oklch(0.193 0.018 302.246);
--secondary-foreground: oklch(0.728 0.045 302.731);
--accent: oklch(0.193 0.018 302.246);
--accent-foreground: oklch(0.728 0.045 302.731);
--destructive: oklch(0.632 0.234 27.775);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.182 0.062 297.585);
--chart-1: oklch(0.182 0.062 297.585);
--chart-2: oklch(0.193 0.018 302.246);
--chart-3: oklch(0.193 0.018 302.246);
--chart-4: oklch(0.223 0.023 302.086);
--chart-5: oklch(0.181 0.064 297.195);
}