Youthful is a shadcn/ui theme built around a muted purple primary color (#835d78) with muted red accents (#835d65). The light mode uses a neutral background (#fefbfd). Dark mode keeps the muted purple primary (#835d78) on a purple-tinted background (#0f050c).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #0f050cblack |
| Foreground | #000000black | #fbf9fasnow |
| Card | #fefbfdsnow | #0f050cblack |
| Card foreground | #000000black | #fbf9fasnow |
| Popover | #fefbfdsnow | #0f050cblack |
| Popover foreground | #000000black | #fbf9fasnow |
| Primary | #835d78dimgray | #835d78dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #7b5d83dimgray | #7b5d83dimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e3cdeagainsboro | #2c1532darkslategray |
| Muted foreground | #433946darkslategray | #c3b9c6silver |
| Accent | #835d65dimgray | #835d65dimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #cf1717firebrick | #e61e1ecrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #835d78dimgray | #835d78dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.43:1 | AAA |
| Text on card | 20.43:1 | AAA |
| Primary button | 5.50:1 | AA |
| Secondary button | 5.61:1 | AA |
| Muted text | 7.42:1 | AAA |
| Accent | 5.63:1 | AA |
| Destructive | 5.56:1 | AA |
| Text on background | 19.09:1 | AAA |
| Text on card | 19.09:1 | AAA |
| Primary button | 5.50:1 | AA |
| Secondary button | 5.61:1 | AA |
| Muted text | 8.77:1 | AAA |
| Accent | 5.63:1 | AA |
| Destructive | 4.59:1 | AA |
Paste this into your globals.css to use Youthful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 335.261);
--foreground: oklch(0 0 0);
--muted: oklch(0.875 0.046 318.872);
--muted-foreground: oklch(0.361 0.025 318.864);
--popover: oklch(0.991 0.004 335.261);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.991 0.004 335.261);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.528 0.063 337.234);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.523 0.069 318.827);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.521 0.051 4.688);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.543 0.212 28.19);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.528 0.063 337.234);
--chart-1: oklch(0.528 0.063 337.234);
--chart-2: oklch(0.523 0.069 318.827);
--chart-3: oklch(0.521 0.051 4.688);
--chart-4: oklch(0.548 0.072 318.826);
--chart-5: oklch(0.526 0.074 337.583);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.024 337.096);
--foreground: oklch(0.984 0.002 335.234);
--muted: oklch(0.243 0.06 318.651);
--muted-foreground: oklch(0.797 0.021 318.881);
--popover: oklch(0.138 0.024 337.096);
--popover-foreground: oklch(0.984 0.002 335.234);
--card: oklch(0.138 0.024 337.096);
--card-foreground: oklch(0.984 0.002 335.234);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.528 0.063 337.234);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.523 0.069 318.827);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.521 0.051 4.688);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.591 0.228 28.002);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.528 0.063 337.234);
--chart-1: oklch(0.528 0.063 337.234);
--chart-2: oklch(0.523 0.069 318.827);
--chart-3: oklch(0.521 0.051 4.688);
--chart-4: oklch(0.548 0.072 318.826);
--chart-5: oklch(0.526 0.074 337.583);
}