Youthful is a shadcn/ui theme built around a near-black primary color (#0b0b04) with near-black accents (#0b040b). The light mode uses a neutral background (#fefefb). Dark mode keeps the near-black primary (#0b0b04) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefefbwhite | #000000black |
| Foreground | #000000black | #fafaf5whitesmoke |
| Card | #fdfdf7snow | #030303black |
| Card foreground | #000000black | #fcfcf8snow |
| Popover | #fdfdf7snow | #030303black |
| Popover foreground | #000000black | #fcfcf8snow |
| Primary | #0b0b04black | #0b0b04black |
| Primary foreground | #9aa13ayellowgreen | #9aa13ayellowgreen |
| Secondary | #040b0bblack | #040b0bblack |
| Secondary foreground | #74c7cdskyblue | #74c7cdskyblue |
| Muted | #edf2f2whitesmoke | #0d1112black |
| Muted foreground | #4f6364dimgray | #9bafb0darkgray |
| Accent | #0b040bblack | #0b040bblack |
| Accent foreground | #cd74c7orchid | #cd74c7orchid |
| Destructive | #75150bmaroon | #db2814firebrick |
| Destructive foreground | #f8bfb9lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0b0b04black | #0b0b04black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.77:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.07:1 | AAA |
| Secondary button | 10.21:1 | AAA |
| Muted text | 5.62:1 | AA |
| Accent | 6.67:1 | AA |
| Destructive | 7.04:1 | AAA |
| Text on background | 20.05:1 | AAA |
| Text on card | 20.10:1 | AAA |
| Primary button | 7.07:1 | AAA |
| Secondary button | 10.21:1 | AAA |
| Muted text | 8.25:1 | AAA |
| Accent | 6.67:1 | AA |
| Destructive | 4.83:1 | AA |
Paste this into your globals.css to use Youthful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.996 0.004 109.554);
--foreground: oklch(0 0 0);
--muted: oklch(0.957 0.005 202.159);
--muted-foreground: oklch(0.482 0.024 201.755);
--popover: oklch(0.992 0.008 109.629);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0.008 109.629);
--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.147 0.017 111.038);
--primary-foreground: oklch(0.684 0.126 112.896);
--secondary: oklch(0.14 0.013 200.464);
--secondary-foreground: oklch(0.78 0.081 201.558);
--accent: oklch(0.126 0.023 328.793);
--accent-foreground: oklch(0.686 0.152 329.531);
--destructive: oklch(0.367 0.131 30.464);
--destructive-foreground: oklch(0.855 0.067 25.817);
--ring: oklch(0.147 0.017 111.038);
--chart-1: oklch(0.147 0.017 111.038);
--chart-2: oklch(0.14 0.013 200.464);
--chart-3: oklch(0.126 0.023 328.793);
--chart-4: oklch(0.186 0.019 201.506);
--chart-5: oklch(0.148 0.019 111.136);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.984 0.007 109.62);
--muted: oklch(0.175 0.007 201.822);
--muted-foreground: oklch(0.739 0.022 201.915);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.989 0.005 109.572);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.989 0.005 109.572);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.147 0.017 111.038);
--primary-foreground: oklch(0.684 0.126 112.896);
--secondary: oklch(0.14 0.013 200.464);
--secondary-foreground: oklch(0.78 0.081 201.558);
--accent: oklch(0.126 0.023 328.793);
--accent-foreground: oklch(0.686 0.152 329.531);
--destructive: oklch(0.576 0.215 30.518);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.147 0.017 111.038);
--chart-1: oklch(0.147 0.017 111.038);
--chart-2: oklch(0.14 0.013 200.464);
--chart-3: oklch(0.126 0.023 328.793);
--chart-4: oklch(0.186 0.019 201.506);
--chart-5: oklch(0.148 0.019 111.136);
}