Teenager is a shadcn/ui theme built around a light green primary color (#b1deb0) with light purple accents (#dcb0de). The light mode uses a neutral background (#f7fdf6). Dark mode keeps the light green primary (#b1deb0) on a neutral background (#020802).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdf6mintcream | #020802black |
| Foreground | #051505black | #f9fbf9mintcream |
| Card | #f3fcf2honeydew | #030c03black |
| Card foreground | #041104black | #fcfdfcwhite |
| Popover | #f7fdf6mintcream | #020802black |
| Popover foreground | #051505black | #f9fbf9mintcream |
| Primary | #b1deb0silver | #b1deb0silver |
| Primary foreground | #1c411bdarkgreen | #1c411bdarkgreen |
| Secondary | #dcb0deplum | #dcb0deplum |
| Secondary foreground | #3f1b41darkslategray | #3f1b41darkslategray |
| Muted | #e3dee3gainsboro | #211c21black |
| Muted foreground | #4e3b4edarkslategray | #c3b1c4silver |
| Accent | #dcb0deplum | #dcb0deplum |
| Accent foreground | #3f1b41darkslategray | #3f1b41darkslategray |
| Destructive | #6d0a03maroon | #f82616orangered |
| Destructive foreground | #fcaca6lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b1deb0silver | #b1deb0silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.25:1 | AAA |
| Text on card | 18.45:1 | AAA |
| Primary button | 7.65:1 | AAA |
| Secondary button | 7.83:1 | AAA |
| Muted text | 7.66:1 | AAA |
| Accent | 7.83:1 | AAA |
| Destructive | 6.83:1 | AA |
| Text on background | 19.43:1 | AAA |
| Text on card | 19.44:1 | AAA |
| Primary button | 7.65:1 | AAA |
| Secondary button | 7.83:1 | AAA |
| Muted text | 8.31:1 | AAA |
| Accent | 7.83:1 | AAA |
| Destructive | 3.98:1 | AA Large |
Paste this into your globals.css to use Teenager in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.011 144.544);
--foreground: oklch(0.175 0.04 142.788);
--muted: oklch(0.905 0.009 324.684);
--muted-foreground: oklch(0.381 0.04 325.263);
--popover: oklch(0.988 0.011 144.544);
--popover-foreground: oklch(0.175 0.04 142.788);
--card: oklch(0.982 0.017 144.506);
--card-foreground: oklch(0.158 0.035 142.773);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.857 0.078 144.009);
--primary-foreground: oklch(0.337 0.076 143.05);
--secondary: oklch(0.811 0.08 325.219);
--secondary-foreground: oklch(0.292 0.08 326.127);
--accent: oklch(0.811 0.08 325.219);
--accent-foreground: oklch(0.292 0.08 326.127);
--destructive: oklch(0.342 0.131 30.132);
--destructive-foreground: oklch(0.82 0.096 23.884);
--ring: oklch(0.857 0.078 144.009);
--chart-1: oklch(0.857 0.078 144.009);
--chart-2: oklch(0.811 0.08 325.219);
--chart-3: oklch(0.811 0.08 325.219);
--chart-4: oklch(0.837 0.069 325.123);
--chart-5: oklch(0.859 0.084 143.966);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.025 142.846);
--foreground: oklch(0.986 0.004 144.591);
--muted: oklch(0.234 0.013 324.967);
--muted-foreground: oklch(0.781 0.034 324.891);
--popover: oklch(0.123 0.025 142.846);
--popover-foreground: oklch(0.986 0.004 144.591);
--card: oklch(0.141 0.029 142.849);
--card-foreground: oklch(0.993 0.002 144.605);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.857 0.078 144.009);
--primary-foreground: oklch(0.337 0.076 143.05);
--secondary: oklch(0.811 0.08 325.219);
--secondary-foreground: oklch(0.292 0.08 326.127);
--accent: oklch(0.811 0.08 325.219);
--accent-foreground: oklch(0.292 0.08 326.127);
--destructive: oklch(0.626 0.241 29.705);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.857 0.078 144.009);
--chart-1: oklch(0.857 0.078 144.009);
--chart-2: oklch(0.811 0.08 325.219);
--chart-3: oklch(0.811 0.08 325.219);
--chart-4: oklch(0.837 0.069 325.123);
--chart-5: oklch(0.859 0.084 143.966);
}