YellowBit is a shadcn/ui theme built around a vivid yellow primary color (#f5c400) with near-white accents (#ededed). The light mode uses a neutral background (#dedede). Dark mode keeps the vivid yellow primary (#e0e004) on an orange-tinted background (#0c0a09).
| Token | Light | Dark |
|---|---|---|
| Background | #dededegainsboro | #0c0a09black |
| Foreground | #212121black | #ecececwhitesmoke |
| Card | #ffffffwhite | #0c0a09black |
| Card foreground | #212121black | #ecececwhitesmoke |
| Popover | #ffffffwhite | #0c0a09black |
| Popover foreground | #212121black | #fafaf9snow |
| Primary | #f5c400gold | #e0e004gold |
| Primary foreground | #422006maroon | #3d1c03black |
| Secondary | #a56838sienna | #34231edarkslategray |
| Secondary foreground | #ecececwhitesmoke | #ecececwhitesmoke |
| Muted | #f5f5f4whitesmoke | #292524darkslategray |
| Muted foreground | #422006maroon | #a8a29edarkgray |
| Accent | #edededwhitesmoke | #484240darkslategray |
| Accent foreground | #1c1917black | #ecececwhitesmoke |
| Destructive | #ef4444tomato | #ab1717firebrick |
| Destructive foreground | #fafaf9snow | #ecececwhitesmoke |
| Border | #858585gray | #302b2adarkslategray |
| Input | #806253dimgray | #292524darkslategray |
| Ring | #0c0a09black | #facc15gold |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 12.00:1 | AAA |
| Text on card | 16.10:1 | AAA |
| Primary button | 8.85:1 | AAA |
| Secondary button | 3.83:1 | AA Large |
| Muted text | 13.36:1 | AAA |
| Accent | 14.98:1 | AAA |
| Destructive | 3.60:1 | AA Large |
| Text on background | 16.72:1 | AAA |
| Text on card | 16.72:1 | AAA |
| Primary button | 10.81:1 | AAA |
| Secondary button | 12.67:1 | AAA |
| Muted text | 6.01:1 | AA |
| Accent | 8.37:1 | AAA |
| Destructive | 6.21:1 | AA |
Paste this into your globals.css to use YellowBit in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.902 0 180);
--foreground: oklch(0.248 0 180);
--muted: oklch(0.97 0.001 106.424);
--muted-foreground: oklch(0.286 0.064 53.813);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.248 0 180);
--card: oklch(1 0 180);
--card-foreground: oklch(0.248 0 180);
--border: oklch(0.618 0 175.601);
--input: oklch(0.523 0.046 47.828);
--primary: oklch(0.839 0.172 90.233);
--primary-foreground: oklch(0.285 0.064 53.823);
--secondary: oklch(0.574 0.101 56.355);
--secondary-foreground: oklch(0.943 0 180);
--accent: oklch(0.947 0 158.199);
--accent-foreground: oklch(0.216 0.006 56.043);
--destructive: oklch(0.637 0.208 25.326);
--destructive-foreground: oklch(0.985 0.001 106.424);
--ring: oklch(0.147 0.004 49.314);
--chart-1: oklch(0.839 0.172 90.233);
--chart-2: oklch(0.574 0.101 56.355);
--chart-3: oklch(0.947 0 158.199);
--chart-4: oklch(0.602 0.107 56.308);
--chart-5: oklch(0.847 0.174 89.917);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.147 0.004 49.314);
--foreground: oklch(0.943 0 180);
--muted: oklch(0.269 0.006 34.297);
--muted-foreground: oklch(0.716 0.009 56.26);
--popover: oklch(0.147 0.004 49.314);
--popover-foreground: oklch(0.985 0.001 106.424);
--card: oklch(0.147 0.004 49.314);
--card-foreground: oklch(0.943 0 180);
--border: oklch(0.295 0.007 34.297);
--input: oklch(0.269 0.006 34.297);
--primary: oklch(0.877 0.191 109.762);
--primary-foreground: oklch(0.269 0.062 54.139);
--secondary: oklch(0.275 0.029 34.545);
--secondary-foreground: oklch(0.943 0 180);
--accent: oklch(0.384 0.009 34.297);
--accent-foreground: oklch(0.943 0 180);
--destructive: oklch(0.475 0.181 27.683);
--destructive-foreground: oklch(0.943 0 180);
--ring: oklch(0.861 0.173 91.941);
--chart-1: oklch(0.877 0.191 109.762);
--chart-2: oklch(0.275 0.029 34.545);
--chart-3: oklch(0.384 0.009 34.297);
--chart-4: oklch(0.305 0.033 34.568);
--chart-5: oklch(0.887 0.193 109.768);
}