Afterthought is a shadcn/ui theme built around a deep cyan primary color (#0c1c22) with deep green accents (#1c220c). The light mode uses a neutral background (#f8fbfb). Dark mode keeps the deep cyan primary (#0c1c22) on a neutral background (#010304).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fbfbghostwhite | #010304black |
| Foreground | #041116black | #ffffffwhite |
| Card | #f5f8fawhitesmoke | #030607black |
| Card foreground | #030d12black | #ffffffwhite |
| Popover | #f8fbfbghostwhite | #010304black |
| Popover foreground | #041116black | #ffffffwhite |
| Primary | #0c1c22black | #0c1c22black |
| Primary foreground | #8bc0d5skyblue | #8bc0d5skyblue |
| Secondary | #220c1cblack | #220c1cblack |
| Secondary foreground | #d58bc0orchid | #d58bc0orchid |
| Muted | #e4cddegainsboro | #321b2bdarkslategray |
| Muted foreground | #656164dimgray | #9e9a9cdarkgray |
| Accent | #1c220cblack | #1c220cblack |
| Accent foreground | #96b842yellowgreen | #96b842yellowgreen |
| Destructive | #e64100orangered | #ff6529tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0c1c22black | #0c1c22black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.36:1 | AAA |
| Text on card | 18.43:1 | AAA |
| Primary button | 8.82:1 | AAA |
| Secondary button | 7.28:1 | AAA |
| Muted text | 4.09:1 | AA Large |
| Accent | 7.21:1 | AAA |
| Destructive | 4.11:1 | AA Large |
| Text on background | 20.65:1 | AAA |
| Text on card | 20.32:1 | AAA |
| Primary button | 8.82:1 | AAA |
| Secondary button | 7.28:1 | AAA |
| Muted text | 5.70:1 | AA |
| Accent | 7.21:1 | AAA |
| Destructive | 7.16:1 | AAA |
Paste this into your globals.css to use Afterthought in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.985 0.003 223.157);
--foreground: oklch(0.166 0.023 223.503);
--muted: oklch(0.873 0.034 335.875);
--muted-foreground: oklch(0.499 0.007 335.433);
--popover: oklch(0.985 0.003 223.157);
--popover-foreground: oklch(0.166 0.023 223.503);
--card: oklch(0.978 0.004 223.171);
--card-foreground: oklch(0.151 0.02 221.411);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.214 0.024 225.429);
--primary-foreground: oklch(0.778 0.063 224.428);
--secondary: oklch(0.196 0.045 339.027);
--secondary-foreground: oklch(0.728 0.113 337.813);
--accent: oklch(0.238 0.038 122.367);
--accent-foreground: oklch(0.734 0.148 123.548);
--destructive: oklch(0.613 0.209 36.226);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.214 0.024 225.429);
--chart-1: oklch(0.214 0.024 225.429);
--chart-2: oklch(0.196 0.045 339.027);
--chart-3: oklch(0.238 0.038 122.367);
--chart-4: oklch(0.228 0.057 339.402);
--chart-5: oklch(0.215 0.026 225.652);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.093 0.008 218.634);
--foreground: oklch(1 0 180);
--muted: oklch(0.259 0.045 338.12);
--muted-foreground: oklch(0.689 0.006 335.353);
--popover: oklch(0.093 0.008 218.634);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.118 0.01 218.634);
--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.214 0.024 225.429);
--primary-foreground: oklch(0.778 0.063 224.428);
--secondary: oklch(0.196 0.045 339.027);
--secondary-foreground: oklch(0.728 0.113 337.813);
--accent: oklch(0.238 0.038 122.367);
--accent-foreground: oklch(0.734 0.148 123.548);
--destructive: oklch(0.697 0.2 39.636);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.214 0.024 225.429);
--chart-1: oklch(0.214 0.024 225.429);
--chart-2: oklch(0.196 0.045 339.027);
--chart-3: oklch(0.238 0.038 122.367);
--chart-4: oklch(0.228 0.057 339.402);
--chart-5: oklch(0.215 0.026 225.652);
}