Adolescent is a shadcn/ui theme built around a neutral gray primary color (#706e61) with neutral gray accents (#6e6170). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#706e61) on a neutral background (#040301).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040301black |
| Foreground | #0d0c02black | #faf9f5whitesmoke |
| Card | #fcfcfcsnow | #070703black |
| Card foreground | #090801black | #fcfbf8snow |
| Popover | #ffffffwhite | #040301black |
| Popover foreground | #0d0c02black | #faf9f5whitesmoke |
| Primary | #706e61dimgray | #706e61dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #61706edimgray | #61706edimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #deedeblavender | #12211fblack |
| Muted foreground | #434646darkslategray | #b9bcbbsilver |
| Accent | #6e6170dimgray | #6e6170dimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #b41e04firebrick | #f02805orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #706e61dimgray | #706e61dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.61:1 | AAA |
| Text on card | 19.62:1 | AAA |
| Primary button | 5.13:1 | AA |
| Secondary button | 5.18:1 | AA |
| Muted text | 7.90:1 | AAA |
| Accent | 5.81:1 | AA |
| Destructive | 6.71:1 | AA |
| Text on background | 19.53:1 | AAA |
| Text on card | 19.50:1 | AAA |
| Primary button | 5.13:1 | AA |
| Secondary button | 5.18:1 | AA |
| Muted text | 8.69:1 | AAA |
| Accent | 5.81:1 | AA |
| Destructive | 4.19:1 | AA Large |
Paste this into your globals.css to use Adolescent in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.151 0.025 102.988);
--muted: oklch(0.934 0.016 187.327);
--muted-foreground: oklch(0.392 0.004 187.516);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.151 0.025 102.988);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.132 0.021 103.711);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.536 0.019 99.845);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.532 0.018 186.907);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.511 0.028 321.74);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.496 0.187 31.711);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.536 0.019 99.845);
--chart-1: oklch(0.536 0.019 99.845);
--chart-2: oklch(0.532 0.018 186.907);
--chart-3: oklch(0.511 0.028 321.74);
--chart-4: oklch(0.559 0.019 186.901);
--chart-5: oklch(0.543 0.027 100.023);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.1 0.011 102.329);
--foreground: oklch(0.982 0.006 99.431);
--muted: oklch(0.233 0.021 185.358);
--muted-foreground: oklch(0.791 0.003 187.652);
--popover: oklch(0.1 0.011 102.329);
--popover-foreground: oklch(0.982 0.006 99.431);
--card: oklch(0.126 0.013 102.329);
--card-foreground: oklch(0.988 0.004 99.401);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.536 0.019 99.845);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.532 0.018 186.907);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.511 0.028 321.74);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.613 0.234 31.418);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.536 0.019 99.845);
--chart-1: oklch(0.536 0.019 99.845);
--chart-2: oklch(0.532 0.018 186.907);
--chart-3: oklch(0.511 0.028 321.74);
--chart-4: oklch(0.559 0.019 186.901);
--chart-5: oklch(0.543 0.027 100.023);
}