Awful is a shadcn/ui theme built around a neutral gray primary color (#c8cac4) with muted light green accents (#d7dccb). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#c8cac4) on a neutral background (#060704).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #060704black |
| Foreground | #060802black | #ffffffwhite |
| Card | #fcfcfcsnow | #090a05black |
| Card foreground | #030401black | #ffffffwhite |
| Popover | #fcfcfcsnow | #090a05black |
| Popover foreground | #030401black | #ffffffwhite |
| Primary | #c8cac4silver | #c8cac4silver |
| Primary foreground | #2f302cdarkslategray | #2f302cdarkslategray |
| Secondary | #e4e6e0gainsboro | #1a1b18black |
| Secondary foreground | #4d5341darkolivegreen | #b4b6afdarkgray |
| Muted | #e6ecdabeige | #202513black |
| Muted foreground | #555b49darkolivegreen | #b1b6a4darkgray |
| Accent | #d7dccblightgrey | #303229darkslategray |
| Accent foreground | #3f4630darkslategray | #c9cdc1silver |
| Destructive | #cf190cfirebrick | #f23426orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c8cac4silver | #c8cac4silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.12:1 | AAA |
| Text on card | 20.11:1 | AAA |
| Primary button | 8.02:1 | AAA |
| Secondary button | 6.36:1 | AA |
| Muted text | 5.82:1 | AA |
| Accent | 7.03:1 | AAA |
| Destructive | 5.51:1 | AA |
| Text on background | 20.23:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 8.02:1 | AAA |
| Secondary button | 8.47:1 | AAA |
| Muted text | 7.58:1 | AAA |
| Accent | 8.00:1 | AAA |
| Destructive | 3.95:1 | AA Large |
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.129 0.019 119.904);
--muted: oklch(0.933 0.024 120.468);
--muted-foreground: oklch(0.459 0.029 121.115);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.102 0.015 119.904);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.102 0.015 119.904);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.835 0.008 120.197);
--primary-foreground: oklch(0.307 0.008 120.493);
--secondary: oklch(0.922 0.009 120.207);
--secondary-foreground: oklch(0.431 0.029 121.191);
--accent: oklch(0.886 0.023 120.473);
--accent-foreground: oklch(0.381 0.037 121.739);
--destructive: oklch(0.545 0.213 29.75);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.835 0.008 120.197);
--chart-1: oklch(0.835 0.008 120.197);
--chart-2: oklch(0.922 0.009 120.207);
--chart-3: oklch(0.886 0.023 120.473);
--chart-4: oklch(0.944 0.007 120.157);
--chart-5: oklch(0.839 0.013 120.292);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.011 119.959);
--foreground: oklch(1 0 180);
--muted: oklch(0.253 0.032 122.272);
--muted-foreground: oklch(0.768 0.026 120.604);
--popover: oklch(0.141 0.012 119.959);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.141 0.012 119.959);
--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.835 0.008 120.197);
--primary-foreground: oklch(0.307 0.008 120.493);
--secondary: oklch(0.219 0.004 120.348);
--secondary-foreground: oklch(0.772 0.009 120.23);
--accent: oklch(0.313 0.016 120.926);
--accent-foreground: oklch(0.841 0.016 120.354);
--destructive: oklch(0.626 0.227 29.342);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.835 0.008 120.197);
--chart-1: oklch(0.835 0.008 120.197);
--chart-2: oklch(0.219 0.004 120.348);
--chart-3: oklch(0.313 0.016 120.926);
--chart-4: oklch(0.252 0.005 120.375);
--chart-5: oklch(0.839 0.013 120.292);
}