Adult is a shadcn/ui theme built around a muted violet primary color (#6e5d74) with muted teal accents (#5d746e). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted violet primary (#6e5d74) on a violet-tinted background (#0a030c).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0a030cblack |
| Foreground | #030104black | #ffffffwhite |
| Card | #ffffffwhite | #0a030cblack |
| Card foreground | #030104black | #ffffffwhite |
| Popover | #ffffffwhite | #0a030cblack |
| Popover foreground | #030104black | #ffffffwhite |
| Primary | #6e5d74dimgray | #6e5d74dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #746e5ddimgray | #746e5ddimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eae7e1gainsboro | #1e1b15black |
| Muted foreground | #665f4ddimgray | #b2ab99darkgray |
| Accent | #5d746edimgray | #5d746edimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #881402darkred | #fb3618orangered |
| Destructive foreground | #fec6bepink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6e5d74dimgray | #6e5d74dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.79:1 | AAA |
| Text on card | 20.79:1 | AAA |
| Primary button | 6.03:1 | AA |
| Secondary button | 5.10:1 | AA |
| Muted text | 5.15:1 | AA |
| Accent | 5.01:1 | AA |
| Destructive | 6.55:1 | AA |
| Text on background | 20.34:1 | AAA |
| Text on card | 20.34:1 | AAA |
| Primary button | 6.03:1 | AA |
| Secondary button | 5.10:1 | AA |
| Muted text | 7.48:1 | AAA |
| Accent | 5.01:1 | AA |
| Destructive | 3.70:1 | AA Large |
Paste this into your globals.css to use Adult in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.082 0.022 318.852);
--muted: oklch(0.929 0.009 88.85);
--muted-foreground: oklch(0.486 0.029 89.015);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.082 0.022 318.852);
--card: oklch(1 0 180);
--card-foreground: oklch(0.082 0.022 318.852);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.503 0.041 316.369);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.538 0.026 89.006);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.539 0.029 176.059);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.403 0.152 31.657);
--destructive-foreground: oklch(0.875 0.065 28.499);
--ring: oklch(0.503 0.041 316.369);
--chart-1: oklch(0.503 0.041 316.369);
--chart-2: oklch(0.538 0.026 89.006);
--chart-3: oklch(0.539 0.029 176.059);
--chart-4: oklch(0.565 0.028 89.006);
--chart-5: oklch(0.499 0.052 316.299);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.027 318.247);
--foreground: oklch(1 0 180);
--muted: oklch(0.224 0.012 89.013);
--muted-foreground: oklch(0.743 0.026 88.973);
--popover: oklch(0.12 0.027 318.247);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.12 0.027 318.247);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.503 0.041 316.369);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.538 0.026 89.006);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.539 0.029 176.059);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.643 0.235 31.504);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.503 0.041 316.369);
--chart-1: oklch(0.503 0.041 316.369);
--chart-2: oklch(0.538 0.026 89.006);
--chart-3: oklch(0.539 0.029 176.059);
--chart-4: oklch(0.565 0.028 89.006);
--chart-5: oklch(0.499 0.052 316.299);
}