Juvenile is a shadcn/ui theme built around a light indigo primary color (#dddff3) with light violet accents (#e6ddf3). The light mode uses a neutral background (#fbfcfd). Dark mode keeps the light indigo primary (#dddff3) on an indigo-tinted background (#07080d).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfdwhite | #07080dblack |
| Foreground | #020308black | #fcfcfdwhite |
| Card | #fbfcfdwhite | #07080dblack |
| Card foreground | #020308black | #fcfcfdwhite |
| Popover | #fbfcfdwhite | #07080dblack |
| Popover foreground | #020308black | #fcfcfdwhite |
| Primary | #dddff3lavender | #dddff3lavender |
| Primary foreground | #292f75midnightblue | #292f75midnightblue |
| Secondary | #ddeaf3lavender | #ddeaf3lavender |
| Secondary foreground | #295575darkslategray | #295575darkslategray |
| Muted | #d8e2e8gainsboro | #172027black |
| Muted foreground | #434547darkslategray | #b8babcsilver |
| Accent | #e6ddf3lavender | #e6ddf3lavender |
| Accent foreground | #492975darkslateblue | #492975darkslateblue |
| Destructive | #8a150fdarkred | #e73127crimson |
| Destructive foreground | #fad3d1pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dddff3lavender | #dddff3lavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.03:1 | AAA |
| Text on card | 20.03:1 | AAA |
| Primary button | 9.05:1 | AAA |
| Secondary button | 6.46:1 | AA |
| Muted text | 7.31:1 | AAA |
| Accent | 8.62:1 | AAA |
| Destructive | 6.97:1 | AA |
| Text on background | 19.53:1 | AAA |
| Text on card | 19.53:1 | AAA |
| Primary button | 9.05:1 | AAA |
| Secondary button | 6.46:1 | AA |
| Muted text | 8.49:1 | AAA |
| Accent | 8.62:1 | AAA |
| Destructive | 4.31:1 | AA Large |
Paste this into your globals.css to use Juvenile in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 282.17);
--foreground: oklch(0.096 0.021 275.577);
--muted: oklch(0.907 0.014 238.575);
--muted-foreground: oklch(0.389 0.004 238.521);
--popover: oklch(0.99 0.003 282.17);
--popover-foreground: oklch(0.096 0.021 275.577);
--card: oklch(0.99 0.003 282.17);
--card-foreground: oklch(0.096 0.021 275.577);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.908 0.028 281.695);
--primary-foreground: oklch(0.345 0.118 274.489);
--secondary: oklch(0.93 0.019 238.649);
--secondary-foreground: oklch(0.434 0.072 242.034);
--accent: oklch(0.911 0.031 304.572);
--accent-foreground: oklch(0.364 0.125 299.283);
--destructive: oklch(0.409 0.152 28.963);
--destructive-foreground: oklch(0.9 0.044 21.557);
--ring: oklch(0.908 0.028 281.695);
--chart-1: oklch(0.908 0.028 281.695);
--chart-2: oklch(0.93 0.019 238.649);
--chart-3: oklch(0.911 0.031 304.572);
--chart-4: oklch(0.953 0.012 238.546);
--chart-5: oklch(0.906 0.029 281.66);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.135 0.013 279.847);
--foreground: oklch(0.991 0.002 282.182);
--muted: oklch(0.237 0.018 239.622);
--muted-foreground: oklch(0.789 0.004 238.428);
--popover: oklch(0.135 0.013 279.847);
--popover-foreground: oklch(0.991 0.002 282.182);
--card: oklch(0.135 0.013 279.847);
--card-foreground: oklch(0.991 0.002 282.182);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.908 0.028 281.695);
--primary-foreground: oklch(0.345 0.118 274.489);
--secondary: oklch(0.93 0.019 238.649);
--secondary-foreground: oklch(0.434 0.072 242.034);
--accent: oklch(0.911 0.031 304.572);
--accent-foreground: oklch(0.364 0.125 299.283);
--destructive: oklch(0.604 0.218 28.712);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.908 0.028 281.695);
--chart-1: oklch(0.908 0.028 281.695);
--chart-2: oklch(0.93 0.019 238.649);
--chart-3: oklch(0.911 0.031 304.572);
--chart-4: oklch(0.953 0.012 238.546);
--chart-5: oklch(0.906 0.029 281.66);
}