Yellow is a shadcn/ui theme built around a red primary color (#8d3030) with orange accents (#8d5e30). The light mode uses a neutral background (#ffffff). Dark mode keeps the red primary (#8d3030) on a neutral background (#070303).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070303black |
| Foreground | #160404black | #fbf9f9snow |
| Card | #ffffffwhite | #070303black |
| Card foreground | #160404black | #fbf9f9snow |
| Popover | #ffffffwhite | #070303black |
| Popover foreground | #160404black | #fbf9f9snow |
| Primary | #8d3030brown | #8d3030brown |
| Primary foreground | #fbf4f4lavenderblush | #fbf4f4lavenderblush |
| Secondary | #8d305ebrown | #8d305ebrown |
| Secondary foreground | #fbf4f7lavenderblush | #fbf4f7lavenderblush |
| Muted | #efe6eblinen | #191014black |
| Muted foreground | #66575edimgray | #a899a1darkgray |
| Accent | #8d5e30sienna | #8d5e30sienna |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #791f0bmaroon | #ea401aorangered |
| Destructive foreground | #f9c9bepink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8d3030brown | #8d3030brown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.93:1 | AAA |
| Text on card | 19.93:1 | AAA |
| Primary button | 7.46:1 | AAA |
| Secondary button | 7.14:1 | AAA |
| Muted text | 5.55:1 | AA |
| Accent | 5.55:1 | AA |
| Destructive | 6.98:1 | AA |
| Text on background | 19.52:1 | AAA |
| Text on card | 19.52:1 | AAA |
| Primary button | 7.46:1 | AAA |
| Secondary button | 7.14:1 | AAA |
| Muted text | 6.88:1 | AA |
| Accent | 5.55:1 | AA |
| Destructive | 4.00:1 | AA Large |
Paste this into your globals.css to use Yellow in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.141 0.037 22.965);
--muted: oklch(0.933 0.012 345.488);
--muted-foreground: oklch(0.473 0.023 346.36);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.141 0.037 22.965);
--card: oklch(1 0 180);
--card-foreground: oklch(0.141 0.037 22.965);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.445 0.126 23.753);
--primary-foreground: oklch(0.972 0.008 17.295);
--secondary: oklch(0.458 0.134 352.747);
--secondary-foreground: oklch(0.973 0.009 345.395);
--accent: oklch(0.523 0.087 63.873);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.386 0.128 33.748);
--destructive-foreground: oklch(0.874 0.057 32.83);
--ring: oklch(0.445 0.126 23.753);
--chart-1: oklch(0.445 0.126 23.753);
--chart-2: oklch(0.458 0.134 352.747);
--chart-3: oklch(0.523 0.087 63.873);
--chart-4: oklch(0.484 0.143 352.826);
--chart-5: oklch(0.446 0.133 24.256);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.01 18.726);
--foreground: oklch(0.983 0.002 17.196);
--muted: oklch(0.186 0.019 347.625);
--muted-foreground: oklch(0.699 0.021 345.899);
--popover: oklch(0.109 0.01 18.726);
--popover-foreground: oklch(0.983 0.002 17.196);
--card: oklch(0.109 0.01 18.726);
--card-foreground: oklch(0.983 0.002 17.196);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.445 0.126 23.753);
--primary-foreground: oklch(0.972 0.008 17.295);
--secondary: oklch(0.458 0.134 352.747);
--secondary-foreground: oklch(0.973 0.009 345.395);
--accent: oklch(0.523 0.087 63.873);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.621 0.211 33.54);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.445 0.126 23.753);
--chart-1: oklch(0.445 0.126 23.753);
--chart-2: oklch(0.458 0.134 352.747);
--chart-3: oklch(0.523 0.087 63.873);
--chart-4: oklch(0.484 0.143 352.826);
--chart-5: oklch(0.446 0.133 24.256);
}