Yellow Dark is a shadcn/ui theme built around a vivid yellow primary color (#ffc642) with near-white accents (#ecebe9). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the vivid yellow primary (#ffc642) on a yellow-tinted background (#0b0905).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfcwhite | #0b0905black |
| Foreground | #040301black | #fdfdfcwhite |
| Card | #fdfdfcwhite | #0b0905black |
| Card foreground | #040301black | #fdfdfcwhite |
| Popover | #fdfdfcwhite | #0b0905black |
| Popover foreground | #040301black | #fdfdfcwhite |
| Primary | #ffc642sandybrown | #ffc642sandybrown |
| Primary foreground | #0f0b00black | #0f0b00black |
| Secondary | #ecebe9linen | #2e2c29darkslategray |
| Secondary foreground | #57544cdarkolivegreen | #c8c6c1silver |
| Muted | #ebe8e0beige | #1f1c14black |
| Muted foreground | #645c4adimgray | #b5ae9bdarkgray |
| Accent | #ecebe9linen | #2e2c29darkslategray |
| Accent foreground | #57544cdarkolivegreen | #c8c6c1silver |
| Destructive | #c13b06firebrick | #f74c08orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e8e6e3gainsboro | #24221eblack |
| Input | #e8e6e3gainsboro | #24221eblack |
| Ring | #ffc642sandybrown | #ffc642sandybrown |
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 | 12.58:1 | AAA |
| Secondary button | 6.35:1 | AA |
| Muted text | 5.38:1 | AA |
| Accent | 6.35:1 | AA |
| Destructive | 5.39:1 | AA |
| Text on background | 19.57:1 | AAA |
| Text on card | 19.57:1 | AAA |
| Primary button | 12.58:1 | AAA |
| Secondary button | 8.12:1 | AAA |
| Muted text | 7.72:1 | AAA |
| Accent | 8.12:1 | AAA |
| Destructive | 3.50:1 | AA Large |
Paste this into your globals.css to use Yellow Dark in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 87.429);
--foreground: oklch(0.1 0.014 93.83);
--muted: oklch(0.93 0.01 87.474);
--muted-foreground: oklch(0.477 0.03 87.558);
--popover: oklch(0.994 0.002 87.429);
--popover-foreground: oklch(0.1 0.014 93.83);
--card: oklch(0.994 0.002 87.429);
--card-foreground: oklch(0.1 0.014 93.83);
--border: oklch(0.926 0.005 87.446);
--input: oklch(0.926 0.005 87.446);
--primary: oklch(0.857 0.155 84.372);
--primary-foreground: oklch(0.15 0.031 94.413);
--secondary: oklch(0.941 0.003 87.436);
--secondary-foreground: oklch(0.446 0.014 87.544);
--accent: oklch(0.941 0.003 87.436);
--accent-foreground: oklch(0.446 0.014 87.544);
--destructive: oklch(0.545 0.178 37.224);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.857 0.155 84.372);
--chart-1: oklch(0.857 0.155 84.372);
--chart-2: oklch(0.941 0.003 87.436);
--chart-3: oklch(0.941 0.003 87.436);
--chart-4: oklch(0.963 0.002 87.429);
--chart-5: oklch(0.862 0.158 84.132);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.011 91.296);
--foreground: oklch(0.993 0 87.422);
--muted: oklch(0.225 0.014 87.558);
--muted-foreground: oklch(0.751 0.027 87.556);
--popover: oklch(0.139 0.011 91.296);
--popover-foreground: oklch(0.993 0 87.422);
--card: oklch(0.139 0.011 91.296);
--card-foreground: oklch(0.993 0 87.422);
--border: oklch(0.254 0.008 87.548);
--input: oklch(0.254 0.008 87.548);
--primary: oklch(0.857 0.155 84.372);
--primary-foreground: oklch(0.15 0.031 94.413);
--secondary: oklch(0.295 0.007 87.523);
--secondary-foreground: oklch(0.826 0.007 87.464);
--accent: oklch(0.295 0.007 87.523);
--accent-foreground: oklch(0.826 0.007 87.464);
--destructive: oklch(0.654 0.217 36.8);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.857 0.155 84.372);
--chart-1: oklch(0.857 0.155 84.372);
--chart-2: oklch(0.295 0.007 87.523);
--chart-3: oklch(0.295 0.007 87.523);
--chart-4: oklch(0.326 0.008 87.526);
--chart-5: oklch(0.862 0.158 84.132);
}