Yellow 2 with slight tint is a shadcn/ui theme built around a vivid yellow primary color (#ffc800) with muted light yellow accents (#d0cab3). The light mode uses a neutral background (#fdfcf6). Dark mode keeps the vivid yellow primary (#ffc800) on a yellow-tinted background (#0f0d05).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcf6snow | #0f0d05black |
| Foreground | #080702black | #fdfdfcwhite |
| Card | #fdfaf2floralwhite | #131006black |
| Card foreground | #040301black | #ffffffwhite |
| Popover | #fdfcf6snow | #0f0d05black |
| Popover foreground | #080702black | #fdfdfcwhite |
| Primary | #ffc800gold | #ffc800gold |
| Primary foreground | #332800black | #332800black |
| Secondary | #d8d5calightgrey | #161513black |
| Secondary foreground | #413d2fdarkslategray | #b5b2a6darkgray |
| Muted | #ebe9e0beige | #1f1d14black |
| Muted foreground | #5e5c55dimgray | #aaa8a1darkgray |
| Accent | #d0cab3silver | #29271edarkslategray |
| Accent foreground | #332e1fdarkslategray | #c7c2b3silver |
| Destructive | #af0d0dfirebrick | #df1111red |
| Destructive foreground | #fef1f1lavenderblush | #ffffffwhite |
| Border | #efeeeblinen | #1f1e19black |
| Input | #efeeeblinen | #1f1e19black |
| Ring | #ffc800gold | #ffc800gold |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.61:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 9.34:1 | AAA |
| Secondary button | 7.41:1 | AAA |
| Muted text | 5.49:1 | AA |
| Accent | 8.25:1 | AAA |
| Destructive | 6.57:1 | AA |
| Text on background | 19.07:1 | AAA |
| Text on card | 18.95:1 | AAA |
| Primary button | 9.34:1 | AAA |
| Secondary button | 8.56:1 | AAA |
| Muted text | 7.10:1 | AAA |
| Accent | 8.42:1 | AAA |
| Destructive | 4.97:1 | AA |
Paste this into your globals.css to use Yellow 2 with slight tint in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.007 93.945);
--foreground: oklch(0.128 0.018 98.935);
--muted: oklch(0.933 0.012 94.001);
--muted-foreground: oklch(0.474 0.011 94.108);
--popover: oklch(0.99 0.007 93.945);
--popover-foreground: oklch(0.128 0.018 98.935);
--card: oklch(0.985 0.011 93.984);
--card-foreground: oklch(0.101 0.014 98.935);
--border: oklch(0.949 0.004 93.909);
--input: oklch(0.949 0.004 93.909);
--primary: oklch(0.857 0.175 88.369);
--primary-foreground: oklch(0.281 0.058 92.808);
--secondary: oklch(0.873 0.016 94.055);
--secondary-foreground: oklch(0.36 0.024 94.414);
--accent: oklch(0.838 0.032 94.232);
--accent-foreground: oklch(0.302 0.027 94.488);
--destructive: oklch(0.479 0.19 28.494);
--destructive-foreground: oklch(0.968 0.014 17.402);
--ring: oklch(0.857 0.175 88.369);
--chart-1: oklch(0.857 0.175 88.369);
--chart-2: oklch(0.873 0.016 94.055);
--chart-3: oklch(0.838 0.032 94.232);
--chart-4: oklch(0.895 0.013 94.021);
--chart-5: oklch(0.865 0.177 88.019);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.159 0.018 95.999);
--foreground: oklch(0.993 0.001 93.874);
--muted: oklch(0.229 0.017 94.442);
--muted-foreground: oklch(0.732 0.01 94.011);
--popover: oklch(0.159 0.018 95.999);
--popover-foreground: oklch(0.993 0.001 93.874);
--card: oklch(0.175 0.021 95.117);
--card-foreground: oklch(1 0 180);
--border: oklch(0.233 0.008 94.215);
--input: oklch(0.233 0.008 94.215);
--primary: oklch(0.857 0.175 88.369);
--primary-foreground: oklch(0.281 0.058 92.808);
--secondary: oklch(0.197 0.006 94.156);
--secondary-foreground: oklch(0.762 0.016 94.087);
--accent: oklch(0.271 0.015 94.361);
--accent-foreground: oklch(0.814 0.022 94.136);
--destructive: oklch(0.572 0.228 28.645);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.857 0.175 88.369);
--chart-1: oklch(0.857 0.175 88.369);
--chart-2: oklch(0.197 0.006 94.156);
--chart-3: oklch(0.271 0.015 94.361);
--chart-4: oklch(0.233 0.008 94.186);
--chart-5: oklch(0.865 0.177 88.019);
}