Young is a shadcn/ui theme built around a vivid deep red primary color (#621b09) with near-white accents (#ebeaea). The light mode uses a neutral background (#fdf8f7). Dark mode keeps the vivid deep red primary (#621b09) on a red-tinted background (#0e0806).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf8f7snow | #0e0806black |
| Foreground | #000000black | #fcf9f8snow |
| Card | #fbf5f3whitesmoke | #110a08black |
| Card foreground | #000000black | #fdfcfbsnow |
| Popover | #fdf8f7snow | #0e0806black |
| Popover foreground | #000000black | #fcf9f8snow |
| Primary | #621b09maroon | #621b09maroon |
| Primary foreground | #f7b6a6lightpink | #f7b6a6lightpink |
| Secondary | #ebeaealinen | #3b2e2bdarkslategray |
| Secondary foreground | #525151darkslategray | #d4c7c4lightgrey |
| Muted | #e0d9d7gainsboro | #28211fblack |
| Muted foreground | #735e59dimgray | #a6918crosybrown |
| Accent | #ebeaealinen | #3b2e2bdarkslategray |
| Accent foreground | #525151darkslategray | #d4c7c4lightgrey |
| Destructive | #bf4612firebrick | #ee7744coral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #621b09maroon | #621b09maroon |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.97:1 | AAA |
| Text on card | 19.47:1 | AAA |
| Primary button | 7.26:1 | AAA |
| Secondary button | 6.60:1 | AA |
| Muted text | 4.32:1 | AA Large |
| Accent | 6.60:1 | AA |
| Destructive | 5.11:1 | AA |
| Text on background | 18.98:1 | AAA |
| Text on card | 19.12:1 | AAA |
| Primary button | 7.26:1 | AAA |
| Secondary button | 7.90:1 | AAA |
| Muted text | 5.30:1 | AA |
| Accent | 7.90:1 | AAA |
| Destructive | 7.35:1 | AAA |
Paste this into your globals.css to use Young in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.005 34.309);
--foreground: oklch(0 0 0);
--muted: oklch(0.889 0.008 34.303);
--muted-foreground: oklch(0.501 0.029 34.355);
--popover: oklch(0.983 0.005 34.309);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.975 0.007 34.305);
--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.336 0.106 34.728);
--primary-foreground: oklch(0.833 0.079 34.498);
--secondary: oklch(0.939 0 34.317);
--secondary-foreground: oklch(0.436 0.002 34.31);
--accent: oklch(0.939 0 34.317);
--accent-foreground: oklch(0.436 0.002 34.31);
--destructive: oklch(0.555 0.166 39.708);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.336 0.106 34.728);
--chart-1: oklch(0.336 0.106 34.728);
--chart-2: oklch(0.939 0 34.317);
--chart-3: oklch(0.939 0 34.317);
--chart-4: oklch(0.962 0 34.317);
--chart-5: oklch(0.337 0.109 34.642);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.142 0.012 37.195);
--foreground: oklch(0.983 0.003 34.311);
--muted: oklch(0.256 0.011 34.32);
--muted-foreground: oklch(0.674 0.027 34.313);
--popover: oklch(0.142 0.012 37.195);
--popover-foreground: oklch(0.983 0.003 34.311);
--card: oklch(0.154 0.014 35.48);
--card-foreground: oklch(0.992 0.002 34.314);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.336 0.106 34.728);
--primary-foreground: oklch(0.833 0.079 34.498);
--secondary: oklch(0.315 0.02 34.374);
--secondary-foreground: oklch(0.84 0.015 34.297);
--accent: oklch(0.315 0.02 34.374);
--accent-foreground: oklch(0.84 0.015 34.297);
--destructive: oklch(0.698 0.16 42.613);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.336 0.106 34.728);
--chart-1: oklch(0.336 0.106 34.728);
--chart-2: oklch(0.315 0.02 34.374);
--chart-3: oklch(0.315 0.02 34.374);
--chart-4: oklch(0.344 0.023 34.38);
--chart-5: oklch(0.337 0.109 34.642);
}