Coal is a shadcn/ui theme built around a vivid orange primary color (#e15923) with vivid yellow accents (#e1b823). The light mode uses a neutral background (#fefcfb). Dark mode keeps the vivid orange primary (#e15923) on an orange-tinted background (#100805).
| Token | Light | Dark |
|---|---|---|
| Background | #fefcfbsnow | #100805black |
| Foreground | #090301black | #fdfcfcsnow |
| Card | #fdf9f7snow | #140a06black |
| Card foreground | #040201black | #ffffffwhite |
| Popover | #fdf9f7snow | #140a06black |
| Popover foreground | #040201black | #ffffffwhite |
| Primary | #e15923chocolate | #e15923chocolate |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e1234ccrimson | #e1234ccrimson |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f4e7ealinen | #180b0eblack |
| Muted foreground | #5d5b5bdimgray | #a4a2a3darkgray |
| Accent | #e1b823goldenrod | #e1b823goldenrod |
| Accent foreground | #312807black | #312807black |
| Destructive | #be3904firebrick | #fa5514orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e15923chocolate | #e15923chocolate |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.00:1 | AAA |
| Text on card | 19.74:1 | AAA |
| Primary button | 3.71:1 | AA Large |
| Secondary button | 4.61:1 | AA |
| Muted text | 5.59:1 | AA |
| Accent | 7.70:1 | AAA |
| Destructive | 5.57:1 | AA |
| Text on background | 19.39:1 | AAA |
| Text on card | 19.55:1 | AAA |
| Primary button | 3.71:1 | AA Large |
| Secondary button | 4.61:1 | AA |
| Muted text | 7.55:1 | AAA |
| Accent | 7.70:1 | AAA |
| Destructive | 3.28:1 | AA Large |
Paste this into your globals.css to use Coal in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 43.108);
--foreground: oklch(0.112 0.018 54.774);
--muted: oklch(0.938 0.014 2.487);
--muted-foreground: oklch(0.473 0.002 2.208);
--popover: oklch(0.984 0.005 43.086);
--popover-foreground: oklch(0.089 0.015 54.774);
--card: oklch(0.984 0.005 43.086);
--card-foreground: oklch(0.089 0.015 54.774);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.634 0.181 39.666);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.59 0.219 16.792);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.796 0.155 91.542);
--accent-foreground: oklch(0.28 0.05 93.229);
--destructive: oklch(0.537 0.177 37.04);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.634 0.181 39.666);
--chart-1: oklch(0.634 0.181 39.666);
--chart-2: oklch(0.59 0.219 16.792);
--chart-3: oklch(0.796 0.155 91.542);
--chart-4: oklch(0.603 0.212 14.858);
--chart-5: oklch(0.638 0.187 39.319);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.144 0.017 48.328);
--foreground: oklch(0.992 0.001 43.126);
--muted: oklch(0.171 0.023 5.653);
--muted-foreground: oklch(0.715 0.002 2.151);
--popover: oklch(0.156 0.02 45.734);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.156 0.02 45.734);
--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.634 0.181 39.666);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.59 0.219 16.792);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.796 0.155 91.542);
--accent-foreground: oklch(0.28 0.05 93.229);
--destructive: oklch(0.669 0.211 38.035);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.634 0.181 39.666);
--chart-1: oklch(0.634 0.181 39.666);
--chart-2: oklch(0.59 0.219 16.792);
--chart-3: oklch(0.796 0.155 91.542);
--chart-4: oklch(0.603 0.212 14.858);
--chart-5: oklch(0.638 0.187 39.319);
}