Amusing is a shadcn/ui theme built around a violet primary color (#9872e4) with green accents (#72e498). The light mode uses a neutral background (#ffffff). Dark mode keeps the violet primary (#9872e4) on a neutral background (#050307).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050307black |
| Foreground | #06040bblack | #ffffffwhite |
| Card | #fcfcfcsnow | #07050ablack |
| Card foreground | #040308black | #ffffffwhite |
| Popover | #ffffffwhite | #050307black |
| Popover foreground | #06040bblack | #ffffffwhite |
| Primary | #9872e4mediumpurple | #9872e4mediumpurple |
| Primary foreground | #000000black | #000000black |
| Secondary | #e49872darksalmon | #e49872darksalmon |
| Secondary foreground | #1e0e06black | #1e0e06black |
| Muted | #eae1dcgainsboro | #231a15black |
| Muted foreground | #564943darkolivegreen | #bcafa9darkgray |
| Accent | #72e498mediumaquamarine | #72e498mediumaquamarine |
| Accent foreground | #061e0eblack | #061e0eblack |
| Destructive | #9d2a10brown | #ec6546tomato |
| Destructive foreground | #fce8e3mistyrose | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9872e4mediumpurple | #9872e4mediumpurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.38:1 | AAA |
| Text on card | 20.11:1 | AAA |
| Primary button | 5.84:1 | AA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 6.68:1 | AA |
| Accent | 11.05:1 | AAA |
| Destructive | 6.41:1 | AA |
| Text on background | 20.51:1 | AAA |
| Text on card | 20.28:1 | AAA |
| Primary button | 5.84:1 | AA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 8.01:1 | AAA |
| Accent | 11.05:1 | AAA |
| Destructive | 6.49:1 | AA |
Paste this into your globals.css to use Amusing in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.116 0.022 301.828);
--muted: oklch(0.915 0.013 48.585);
--muted-foreground: oklch(0.417 0.021 48.194);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.116 0.022 301.828);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.102 0.019 301.958);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.639 0.168 296.763);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.747 0.106 47.193);
--secondary-foreground: oklch(0.184 0.032 48.434);
--accent: oklch(0.833 0.151 152.663);
--accent-foreground: oklch(0.21 0.044 152.108);
--destructive: oklch(0.464 0.155 33.68);
--destructive-foreground: oklch(0.946 0.023 32.682);
--ring: oklch(0.639 0.168 296.763);
--chart-1: oklch(0.639 0.168 296.763);
--chart-2: oklch(0.747 0.106 47.193);
--chart-3: oklch(0.833 0.151 152.663);
--chart-4: oklch(0.769 0.096 47.421);
--chart-5: oklch(0.636 0.175 296.488);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.107 0.013 301.782);
--foreground: oklch(1 0 180);
--muted: oklch(0.226 0.018 47.901);
--muted-foreground: oklch(0.764 0.018 48.475);
--popover: oklch(0.107 0.013 301.782);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.122 0.014 301.782);
--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.639 0.168 296.763);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.747 0.106 47.193);
--secondary-foreground: oklch(0.184 0.032 48.434);
--accent: oklch(0.833 0.151 152.663);
--accent-foreground: oklch(0.21 0.044 152.108);
--destructive: oklch(0.669 0.174 34.128);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.639 0.168 296.763);
--chart-1: oklch(0.639 0.168 296.763);
--chart-2: oklch(0.747 0.106 47.193);
--chart-3: oklch(0.833 0.151 152.663);
--chart-4: oklch(0.769 0.096 47.421);
--chart-5: oklch(0.636 0.175 296.488);
}