Youthful is a shadcn/ui theme built around a vivid teal primary color (#03ddd2) with neutral gray accents (#d8d9d9). The light mode uses a neutral background (#f7fdfc). Dark mode keeps the vivid teal primary (#03ddd2) on a teal-tinted background (#04100f).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdfcmintcream | #04100fblack |
| Foreground | #010404black | #f9fbfbghostwhite |
| Card | #f7fdfcmintcream | #04100fblack |
| Card foreground | #010404black | #f9fbfbghostwhite |
| Popover | #f7fdfcmintcream | #04100fblack |
| Popover foreground | #010404black | #f9fbfbghostwhite |
| Primary | #03ddd2darkturquoise | #03ddd2darkturquoise |
| Primary foreground | #001413black | #001413black |
| Secondary | #d8d9d9gainsboro | #2b3131darkslategray |
| Secondary foreground | #3f4040darkslategray | #c3cbcasilver |
| Muted | #dfe7e7gainsboro | #182020black |
| Muted foreground | #636969dimgray | #969c9cdarkgray |
| Accent | #d8d9d9gainsboro | #2b3131darkslategray |
| Accent foreground | #3f4040darkslategray | #c3cbcasilver |
| Destructive | #8c0f0ddarkred | #e91916red |
| Destructive foreground | #fbd1d0pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #03ddd2darkturquoise | #03ddd2darkturquoise |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.95:1 | AAA |
| Text on card | 19.95:1 | AAA |
| Primary button | 11.07:1 | AAA |
| Secondary button | 7.36:1 | AAA |
| Muted text | 4.45:1 | AA Large |
| Accent | 7.36:1 | AAA |
| Destructive | 6.91:1 | AA |
| Text on background | 18.61:1 | AAA |
| Text on card | 18.61:1 | AAA |
| Primary button | 11.07:1 | AAA |
| Secondary button | 8.01:1 | AAA |
| Muted text | 5.93:1 | AA |
| Accent | 8.01:1 | AAA |
| Destructive | 4.53:1 | AA |
Paste this into your globals.css to use Youthful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.006 193.497);
--foreground: oklch(0.099 0.011 192.437);
--muted: oklch(0.922 0.009 193.414);
--muted-foreground: oklch(0.516 0.008 193.317);
--popover: oklch(0.989 0.006 193.497);
--popover-foreground: oklch(0.099 0.011 192.437);
--card: oklch(0.989 0.006 193.497);
--card-foreground: oklch(0.099 0.011 192.437);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.809 0.14 188.48);
--primary-foreground: oklch(0.173 0.029 190.784);
--secondary: oklch(0.885 0.001 193.588);
--secondary-foreground: oklch(0.372 0.002 193.515);
--accent: oklch(0.885 0.001 193.588);
--accent-foreground: oklch(0.372 0.002 193.515);
--destructive: oklch(0.409 0.158 28.391);
--destructive-foreground: oklch(0.896 0.047 19.211);
--ring: oklch(0.809 0.14 188.48);
--chart-1: oklch(0.809 0.14 188.48);
--chart-2: oklch(0.885 0.001 193.588);
--chart-3: oklch(0.885 0.001 193.588);
--chart-4: oklch(0.908 0.001 193.593);
--chart-5: oklch(0.818 0.142 188.386);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.161 0.018 191.707);
--foreground: oklch(0.986 0.002 193.568);
--muted: oklch(0.236 0.012 192.591);
--muted-foreground: oklch(0.688 0.007 193.404);
--popover: oklch(0.161 0.018 191.707);
--popover-foreground: oklch(0.986 0.002 193.568);
--card: oklch(0.161 0.018 191.707);
--card-foreground: oklch(0.986 0.002 193.568);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.809 0.14 188.48);
--primary-foreground: oklch(0.173 0.029 190.784);
--secondary: oklch(0.307 0.009 193.035);
--secondary-foreground: oklch(0.835 0.009 193.403);
--accent: oklch(0.307 0.009 193.035);
--accent-foreground: oklch(0.835 0.009 193.403);
--destructive: oklch(0.594 0.234 28.735);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.809 0.14 188.48);
--chart-1: oklch(0.809 0.14 188.48);
--chart-2: oklch(0.307 0.009 193.035);
--chart-3: oklch(0.307 0.009 193.035);
--chart-4: oklch(0.339 0.01 193.016);
--chart-5: oklch(0.818 0.142 188.386);
}