Yellow is a shadcn/ui theme built around a muted violet primary color (#b59bc5) with muted green accents (#abc59b). The light mode uses a neutral background (#fbf7fd). Dark mode keeps the muted violet primary (#b59bc5) on a violet-tinted background (#08050a).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf7fdghostwhite | #08050ablack |
| Foreground | #0c0410black | #faf9fbghostwhite |
| Card | #fbf7fdghostwhite | #08050ablack |
| Card foreground | #0c0410black | #faf9fbghostwhite |
| Popover | #fbf7fdghostwhite | #08050ablack |
| Popover foreground | #0c0410black | #faf9fbghostwhite |
| Primary | #b59bc5darkgray | #b59bc5darkgray |
| Primary foreground | #18111dblack | #18111dblack |
| Secondary | #abc59bdarkgray | #abc59bdarkgray |
| Secondary foreground | #161d11black | #161d11black |
| Muted | #d8dcd6gainsboro | #262923darkslategray |
| Muted foreground | #525f49darkolivegreen | #a8b6a0darkgray |
| Accent | #abc59bdarkgray | #abc59bdarkgray |
| Accent foreground | #161d11black | #161d11black |
| Destructive | #7d1408maroon | #f24936tomato |
| Destructive foreground | #fbc2bclightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b59bc5darkgray | #b59bc5darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.99:1 | AAA |
| Text on card | 18.99:1 | AAA |
| Primary button | 7.45:1 | AAA |
| Secondary button | 9.15:1 | AAA |
| Muted text | 4.88:1 | AA |
| Accent | 9.15:1 | AAA |
| Destructive | 6.88:1 | AA |
| Text on background | 19.30:1 | AAA |
| Text on card | 19.30:1 | AAA |
| Primary button | 7.45:1 | AAA |
| Secondary button | 9.15:1 | AAA |
| Muted text | 6.91:1 | AA |
| Accent | 9.15:1 | AAA |
| Destructive | 3.63:1 | AA Large |
Paste this into your globals.css to use Yellow in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.01 312.916);
--foreground: oklch(0.131 0.031 313.111);
--muted: oklch(0.889 0.009 133.057);
--muted-foreground: oklch(0.468 0.038 133.582);
--popover: oklch(0.98 0.01 312.916);
--popover-foreground: oklch(0.131 0.031 313.111);
--card: oklch(0.98 0.01 312.916);
--card-foreground: oklch(0.131 0.031 313.111);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.727 0.065 312.381);
--primary-foreground: oklch(0.193 0.026 312.056);
--secondary: oklch(0.792 0.063 133.565);
--secondary-foreground: oklch(0.219 0.025 133.855);
--accent: oklch(0.792 0.063 133.565);
--accent-foreground: oklch(0.219 0.025 133.855);
--destructive: oklch(0.381 0.141 30.55);
--destructive-foreground: oklch(0.863 0.066 25.794);
--ring: oklch(0.727 0.065 312.381);
--chart-1: oklch(0.727 0.065 312.381);
--chart-2: oklch(0.792 0.063 133.565);
--chart-3: oklch(0.792 0.063 133.565);
--chart-4: oklch(0.812 0.057 133.488);
--chart-5: oklch(0.724 0.072 312.307);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.016 314.118);
--foreground: oklch(0.983 0.003 312.962);
--muted: oklch(0.276 0.012 133.299);
--muted-foreground: oklch(0.759 0.034 133.302);
--popover: oklch(0.124 0.016 314.118);
--popover-foreground: oklch(0.983 0.003 312.962);
--card: oklch(0.124 0.016 314.118);
--card-foreground: oklch(0.983 0.003 312.962);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.727 0.065 312.381);
--primary-foreground: oklch(0.193 0.026 312.056);
--secondary: oklch(0.792 0.063 133.565);
--secondary-foreground: oklch(0.219 0.025 133.855);
--accent: oklch(0.792 0.063 133.565);
--accent-foreground: oklch(0.219 0.025 133.855);
--destructive: oklch(0.645 0.209 30.057);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.727 0.065 312.381);
--chart-1: oklch(0.727 0.065 312.381);
--chart-2: oklch(0.792 0.063 133.565);
--chart-3: oklch(0.792 0.063 133.565);
--chart-4: oklch(0.812 0.057 133.488);
--chart-5: oklch(0.724 0.072 312.307);
}