Awful is a shadcn/ui theme built around a vivid deep purple primary color (#2b0327) with vivid deep pink accents (#2b0313). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep purple primary (#2b0327) on a purple-tinted background (#0b050a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0b050ablack |
| Foreground | #040104black | #fbf9fbsnow |
| Card | #ffffffwhite | #0b050ablack |
| Card foreground | #040104black | #fbf9fbsnow |
| Popover | #ffffffwhite | #0b050ablack |
| Popover foreground | #040104black | #fbf9fbsnow |
| Primary | #2b0327black | #2b0327black |
| Primary foreground | #f66ae8violet | #f66ae8violet |
| Secondary | #1b032bblack | #1b032bblack |
| Secondary foreground | #be6af6mediumorchid | #be6af6mediumorchid |
| Muted | #e4dceagainsboro | #1e1523black |
| Muted foreground | #48454adarkslategray | #b8b5basilver |
| Accent | #2b0313black | #2b0313black |
| Accent foreground | #f66aa2hotpink | #f66aa2hotpink |
| Destructive | #ce2d0dfirebrick | #f25536tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2b0327black | #2b0327black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.76:1 | AAA |
| Text on card | 20.76:1 | AAA |
| Primary button | 7.11:1 | AAA |
| Secondary button | 6.01:1 | AA |
| Muted text | 7.05:1 | AAA |
| Accent | 6.67:1 | AA |
| Destructive | 5.23:1 | AA |
| Text on background | 19.31:1 | AAA |
| Text on card | 19.31:1 | AAA |
| Primary button | 7.11:1 | AAA |
| Secondary button | 6.01:1 | AA |
| Muted text | 8.74:1 | AAA |
| Accent | 6.67:1 | AA |
| Destructive | 6.13:1 | AA |
Paste this into your globals.css to use Awful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.084 0.024 330.153);
--muted: oklch(0.905 0.022 312.18);
--muted-foreground: oklch(0.395 0.008 312.21);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.084 0.024 330.153);
--card: oklch(1 0 180);
--card-foreground: oklch(0.084 0.024 330.153);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.205 0.084 332.596);
--primary-foreground: oklch(0.738 0.221 331.592);
--secondary: oklch(0.178 0.08 308.268);
--secondary-foreground: oklch(0.678 0.208 309.65);
--accent: oklch(0.193 0.07 0.472);
--accent-foreground: oklch(0.711 0.179 357.617);
--destructive: oklch(0.555 0.2 32.474);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.205 0.084 332.596);
--chart-1: oklch(0.205 0.084 332.596);
--chart-2: oklch(0.178 0.08 308.268);
--chart-3: oklch(0.193 0.07 0.472);
--chart-4: oklch(0.209 0.097 307.082);
--chart-5: oklch(0.205 0.086 332.685);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.02 329.577);
--foreground: oklch(0.984 0.004 328.633);
--muted: oklch(0.213 0.031 311.263);
--muted-foreground: oklch(0.778 0.007 312.295);
--popover: oklch(0.126 0.02 329.577);
--popover-foreground: oklch(0.984 0.004 328.633);
--card: oklch(0.126 0.02 329.577);
--card-foreground: oklch(0.984 0.004 328.633);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.205 0.084 332.596);
--primary-foreground: oklch(0.738 0.221 331.592);
--secondary: oklch(0.178 0.08 308.268);
--secondary-foreground: oklch(0.678 0.208 309.65);
--accent: oklch(0.193 0.07 0.472);
--accent-foreground: oklch(0.711 0.179 357.617);
--destructive: oklch(0.658 0.198 33.212);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.205 0.084 332.596);
--chart-1: oklch(0.205 0.084 332.596);
--chart-2: oklch(0.178 0.08 308.268);
--chart-3: oklch(0.193 0.07 0.472);
--chart-4: oklch(0.209 0.097 307.082);
--chart-5: oklch(0.205 0.086 332.685);
}