Amusing is a shadcn/ui theme built around a deep red primary color (#1c0908) with deep indigo accents (#09081c). The light mode uses a neutral background (#fefbfb). Dark mode keeps the deep red primary (#1c0908) on a red-tinted background (#0a0505).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #0a0505black |
| Foreground | #040101black | #fdfcfcsnow |
| Card | #fefbfbsnow | #0a0505black |
| Card foreground | #040101black | #fdfcfcsnow |
| Popover | #fefbfbsnow | #0a0505black |
| Popover foreground | #040101black | #fdfcfcsnow |
| Primary | #1c0908black | #1c0908black |
| Primary foreground | #da807clightcoral | #da807clightcoral |
| Secondary | #081c09black | #081c09black |
| Secondary foreground | #35bb3blimegreen | #35bb3blimegreen |
| Muted | #dde4ddgainsboro | #1b221bblack |
| Muted foreground | #435644darkslategray | #a9bcaadarkgray |
| Accent | #09081cblack | #09081cblack |
| Accent foreground | #cdcbf0thistle | #cdcbf0thistle |
| Destructive | #cc1205firebrick | #fa4538tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1c0908black | #1c0908black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.23:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 6.74:1 | AA |
| Secondary button | 7.06:1 | AAA |
| Muted text | 6.11:1 | AA |
| Accent | 12.61:1 | AAA |
| Destructive | 5.74:1 | AA |
| Text on background | 19.75:1 | AAA |
| Text on card | 19.75:1 | AAA |
| Primary button | 6.74:1 | AA |
| Secondary button | 7.06:1 | AAA |
| Muted text | 8.08:1 | AAA |
| Accent | 12.61:1 | AAA |
| Destructive | 3.51:1 | AA Large |
Paste this into your globals.css to use Amusing in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 20.923);
--foreground: oklch(0.081 0.018 27.656);
--muted: oklch(0.912 0.012 146.913);
--muted-foreground: oklch(0.431 0.036 146.215);
--popover: oklch(0.991 0.003 20.923);
--popover-foreground: oklch(0.081 0.018 27.656);
--card: oklch(0.991 0.003 20.923);
--card-foreground: oklch(0.081 0.018 27.656);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.17 0.034 24.735);
--primary-foreground: oklch(0.696 0.112 23.543);
--secondary: oklch(0.203 0.045 144.742);
--secondary-foreground: oklch(0.695 0.202 143.643);
--accent: oklch(0.149 0.042 282.515);
--accent-foreground: oklch(0.856 0.051 287.556);
--destructive: oklch(0.536 0.213 29.804);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.17 0.034 24.735);
--chart-1: oklch(0.17 0.034 24.735);
--chart-2: oklch(0.203 0.045 144.742);
--chart-3: oklch(0.149 0.042 282.515);
--chart-4: oklch(0.246 0.06 144.358);
--chart-5: oklch(0.169 0.036 25.113);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.012 23.178);
--foreground: oklch(0.992 0.001 20.897);
--muted: oklch(0.243 0.017 146.369);
--muted-foreground: oklch(0.775 0.032 146.65);
--popover: oklch(0.125 0.012 23.178);
--popover-foreground: oklch(0.992 0.001 20.897);
--card: oklch(0.125 0.012 23.178);
--card-foreground: oklch(0.992 0.001 20.897);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.17 0.034 24.735);
--primary-foreground: oklch(0.696 0.112 23.543);
--secondary: oklch(0.203 0.045 144.742);
--secondary-foreground: oklch(0.695 0.202 143.643);
--accent: oklch(0.149 0.042 282.515);
--accent-foreground: oklch(0.856 0.051 287.556);
--destructive: oklch(0.655 0.219 28.716);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.17 0.034 24.735);
--chart-1: oklch(0.17 0.034 24.735);
--chart-2: oklch(0.203 0.045 144.742);
--chart-3: oklch(0.149 0.042 282.515);
--chart-4: oklch(0.246 0.06 144.358);
--chart-5: oklch(0.169 0.036 25.113);
}