Yahoo is a shadcn/ui theme built around a vivid deep purple primary color (#790671) with muted purple accents (#cfb0cd). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep purple primary (#790671) on a neutral background (#070307).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070307black |
| Foreground | #040104black | #fdfcfdwhite |
| Card | #ffffffwhite | #070307black |
| Card foreground | #040104black | #fdfcfdwhite |
| Popover | #ffffffwhite | #070307black |
| Popover foreground | #040104black | #fdfcfdwhite |
| Primary | #790671purple | #790671purple |
| Primary foreground | #fbb6f7pink | #fbb6f7pink |
| Secondary | #d5c8d4thistle | #2d242ddarkslategray |
| Secondary foreground | #3d2e3cdarkslategray | #c9bbc8silver |
| Muted | #e6d0e5gainsboro | #2f192ddarkslategray |
| Muted foreground | #6b5269dimgray | #ad94abdarkgray |
| Accent | #cfb0cdthistle | #473346darkslategray |
| Accent foreground | #2f1d2edarkslategray | #ddd0dcgainsboro |
| Destructive | #820808maroon | #f33535crimson |
| Destructive foreground | #fbc0c0lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #790671purple | #790671purple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.76:1 | AAA |
| Text on card | 20.76:1 | AAA |
| Primary button | 6.30:1 | AA |
| Secondary button | 7.87:1 | AAA |
| Muted text | 4.79:1 | AA |
| Accent | 8.02:1 | AAA |
| Destructive | 6.74:1 | AA |
| Text on background | 20.00:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 6.30:1 | AA |
| Secondary button | 8.12:1 | AAA |
| Muted text | 5.87:1 | AA |
| Accent | 7.69:1 | AAA |
| Destructive | 3.90:1 | AA Large |
Paste this into your globals.css to use Yahoo in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.084 0.027 329.408);
--muted: oklch(0.883 0.037 327.948);
--muted-foreground: oklch(0.472 0.048 328.488);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.084 0.027 329.408);
--card: oklch(1 0 180);
--card-foreground: oklch(0.084 0.027 329.408);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.402 0.177 331.699);
--primary-foreground: oklch(0.861 0.114 328.772);
--secondary: oklch(0.847 0.023 327.808);
--secondary-foreground: oklch(0.324 0.032 328.47);
--accent: oklch(0.792 0.052 328.174);
--accent-foreground: oklch(0.262 0.041 328.973);
--destructive: oklch(0.385 0.152 28.438);
--destructive-foreground: oklch(0.862 0.068 18.562);
--ring: oklch(0.402 0.177 331.699);
--chart-1: oklch(0.402 0.177 331.699);
--chart-2: oklch(0.847 0.023 327.808);
--chart-3: oklch(0.792 0.052 328.174);
--chart-4: oklch(0.871 0.019 327.759);
--chart-5: oklch(0.406 0.18 331.767);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.111 0.017 328.521);
--foreground: oklch(0.992 0.003 327.576);
--muted: oklch(0.251 0.049 329.315);
--muted-foreground: oklch(0.697 0.043 328.138);
--popover: oklch(0.111 0.017 328.521);
--popover-foreground: oklch(0.992 0.003 327.576);
--card: oklch(0.111 0.017 328.521);
--card-foreground: oklch(0.992 0.003 327.576);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.402 0.177 331.699);
--primary-foreground: oklch(0.861 0.114 328.772);
--secondary: oklch(0.275 0.02 328.234);
--secondary-foreground: oklch(0.807 0.023 327.821);
--accent: oklch(0.352 0.041 328.623);
--accent-foreground: oklch(0.871 0.022 327.789);
--destructive: oklch(0.63 0.225 26.646);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.402 0.177 331.699);
--chart-1: oklch(0.402 0.177 331.699);
--chart-2: oklch(0.275 0.02 328.234);
--chart-3: oklch(0.352 0.041 328.623);
--chart-4: oklch(0.305 0.023 328.262);
--chart-5: oklch(0.406 0.18 331.767);
}