Elderly is a shadcn/ui theme built around a muted deep blue primary color (#202427) with muted deep indigo accents (#202027). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep blue primary (#202427) on a neutral background (#010304).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010304black |
| Foreground | #020b12black | #fcfcfdwhite |
| Card | #ffffffwhite | #010304black |
| Card foreground | #020b12black | #fcfcfdwhite |
| Popover | #ffffffwhite | #010304black |
| Popover foreground | #020b12black | #fcfcfdwhite |
| Primary | #202427darkslategray | #202427darkslategray |
| Primary foreground | #b6bdc3silver | #b6bdc3silver |
| Secondary | #202727darkslategray | #202727darkslategray |
| Secondary foreground | #b6c3c3silver | #b6c3c3silver |
| Muted | #edf7f7whitesmoke | #081212black |
| Muted foreground | #474d4ddarkslategray | #b2b8b8silver |
| Accent | #202027black | #202027black |
| Accent foreground | #b6b7c3silver | #b6b7c3silver |
| Destructive | #a63411brown | #e9572bchocolate |
| Destructive foreground | #fdf0edseashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #202427darkslategray | #202427darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.82:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 8.23:1 | AAA |
| Secondary button | 8.36:1 | AAA |
| Muted text | 7.91:1 | AAA |
| Accent | 8.10:1 | AAA |
| Destructive | 6.03:1 | AA |
| Text on background | 20.18:1 | AAA |
| Text on card | 20.18:1 | AAA |
| Primary button | 8.23:1 | AAA |
| Secondary button | 8.36:1 | AAA |
| Muted text | 9.45:1 | AAA |
| Accent | 8.10:1 | AAA |
| Destructive | 3.58:1 | AA Large |
Paste this into your globals.css to use Elderly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.142 0.024 238.771);
--muted: oklch(0.969 0.011 194.583);
--muted-foreground: oklch(0.414 0.008 194.446);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.142 0.024 238.771);
--card: oklch(1 0 180);
--card-foreground: oklch(0.142 0.024 238.771);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.258 0.008 244.494);
--primary-foreground: oklch(0.795 0.012 244.273);
--secondary: oklch(0.267 0.01 194.088);
--secondary-foreground: oklch(0.808 0.015 194.455);
--accent: oklch(0.248 0.013 283.841);
--accent-foreground: oklch(0.781 0.018 284.394);
--destructive: oklch(0.491 0.156 36.117);
--destructive-foreground: oklch(0.965 0.015 37.674);
--ring: oklch(0.258 0.008 244.494);
--chart-1: oklch(0.258 0.008 244.494);
--chart-2: oklch(0.267 0.01 194.088);
--chart-3: oklch(0.248 0.013 283.841);
--chart-4: oklch(0.3 0.012 194.054);
--chart-5: oklch(0.257 0.011 244.617);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.09 0.01 236.131);
--foreground: oklch(0.992 0.001 244.098);
--muted: oklch(0.171 0.015 193.187);
--muted-foreground: oklch(0.778 0.007 194.631);
--popover: oklch(0.09 0.01 236.131);
--popover-foreground: oklch(0.992 0.001 244.098);
--card: oklch(0.09 0.01 236.131);
--card-foreground: oklch(0.992 0.001 244.098);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.258 0.008 244.494);
--primary-foreground: oklch(0.795 0.012 244.273);
--secondary: oklch(0.267 0.01 194.088);
--secondary-foreground: oklch(0.808 0.015 194.455);
--accent: oklch(0.248 0.013 283.841);
--accent-foreground: oklch(0.781 0.018 284.394);
--destructive: oklch(0.644 0.189 36.805);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.258 0.008 244.494);
--chart-1: oklch(0.258 0.008 244.494);
--chart-2: oklch(0.267 0.01 194.088);
--chart-3: oklch(0.248 0.013 283.841);
--chart-4: oklch(0.3 0.012 194.054);
--chart-5: oklch(0.257 0.011 244.617);
}