Oldie is a shadcn/ui theme built around a muted green primary color (#699174) with muted orange accents (#917469). The light mode uses a neutral background (#f7fcf9). Dark mode keeps the muted green primary (#699174) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fcf9mintcream | #000000black |
| Foreground | #010903black | #f6f9f7whitesmoke |
| Card | #f7fcf9mintcream | #000000black |
| Card foreground | #010903black | #f6f9f7whitesmoke |
| Popover | #f7fcf9mintcream | #000000black |
| Popover foreground | #010903black | #f6f9f7whitesmoke |
| Primary | #699174gray | #699174gray |
| Primary foreground | #000000black | #000000black |
| Secondary | #746991slategray | #746991slategray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d5cde9gainsboro | #1e1632midnightblue |
| Muted foreground | #4c455edarkslategray | #a8a1badarkgray |
| Accent | #917469gray | #917469gray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d01006firebrick | #f8352aorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #699174gray | #699174gray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.50:1 | AAA |
| Text on card | 19.50:1 | AAA |
| Primary button | 5.90:1 | AA |
| Secondary button | 5.03:1 | AA |
| Muted text | 5.94:1 | AA |
| Accent | 4.26:1 | AA Large |
| Destructive | 5.59:1 | AA |
| Text on background | 19.81:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 5.90:1 | AA |
| Secondary button | 5.03:1 | AA |
| Muted text | 6.98:1 | AA |
| Accent | 4.26:1 | AA Large |
| Destructive | 3.78:1 | AA Large |
Paste this into your globals.css to use Oldie in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.007 155.057);
--foreground: oklch(0.125 0.025 154.479);
--muted: oklch(0.864 0.039 298.527);
--muted-foreground: oklch(0.409 0.041 297.535);
--popover: oklch(0.988 0.007 155.057);
--popover-foreground: oklch(0.125 0.025 154.479);
--card: oklch(0.988 0.007 155.057);
--card-foreground: oklch(0.125 0.025 154.479);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.619 0.062 153.186);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.546 0.063 297.287);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.584 0.04 42.662);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.542 0.217 29.535);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.619 0.062 153.186);
--chart-1: oklch(0.619 0.062 153.186);
--chart-2: oklch(0.546 0.063 297.287);
--chart-3: oklch(0.584 0.04 42.662);
--chart-4: oklch(0.573 0.061 297.449);
--chart-5: oklch(0.625 0.073 152.811);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.979 0.004 155.114);
--muted: oklch(0.225 0.053 294.812);
--muted-foreground: oklch(0.723 0.036 298.45);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.979 0.004 155.114);
--card: oklch(0 0 0);
--card-foreground: oklch(0.979 0.004 155.114);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.619 0.062 153.186);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.546 0.063 297.287);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.584 0.04 42.662);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.638 0.231 28.745);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.619 0.062 153.186);
--chart-1: oklch(0.619 0.062 153.186);
--chart-2: oklch(0.546 0.063 297.287);
--chart-3: oklch(0.584 0.04 42.662);
--chart-4: oklch(0.573 0.061 297.449);
--chart-5: oklch(0.625 0.073 152.811);
}