Old is a shadcn/ui theme built around a near-white primary color (#fefaf6) with near-white accents (#faf6fe). The light mode uses a neutral background (#fefcfb). Dark mode keeps the near-white primary (#fefaf6) on an orange-tinted background (#100a04).
| Token | Light | Dark |
|---|---|---|
| Background | #fefcfbsnow | #100a04black |
| Foreground | #000000black | #fdfcfcsnow |
| Card | #fdfaf7snow | #140d06black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fefcfbsnow | #100a04black |
| Popover foreground | #000000black | #fdfcfcsnow |
| Primary | #fefaf6snow | #fefaf6snow |
| Primary foreground | #4f2e0dsaddlebrown | #4f2e0dsaddlebrown |
| Secondary | #f6fefamintcream | #f6fefamintcream |
| Secondary foreground | #0d4f2edarkslategray | #0d4f2edarkslategray |
| Muted | #edf2f0whitesmoke | #0d120fblack |
| Muted foreground | #47574fdarkslategray | #a8b8b0darkgray |
| Accent | #faf6feghostwhite | #faf6feghostwhite |
| Accent foreground | #611ba7rebeccapurple | #611ba7rebeccapurple |
| Destructive | #652201maroon | #fd7835tomato |
| Destructive foreground | #febb9aburlywood | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fefaf6snow | #fefaf6snow |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.58:1 | AAA |
| Text on card | 20.16:1 | AAA |
| Primary button | 11.67:1 | AAA |
| Secondary button | 9.39:1 | AAA |
| Muted text | 6.78:1 | AA |
| Accent | 8.86:1 | AAA |
| Destructive | 7.15:1 | AAA |
| Text on background | 19.19:1 | AAA |
| Text on card | 19.29:1 | AAA |
| Primary button | 11.67:1 | AAA |
| Secondary button | 9.39:1 | AAA |
| Muted text | 9.13:1 | AAA |
| Accent | 8.86:1 | AAA |
| Destructive | 7.89:1 | AAA |
Paste this into your globals.css to use Old in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 67.796);
--foreground: oklch(0 0 0);
--muted: oklch(0.958 0.007 164.954);
--muted-foreground: oklch(0.44 0.024 163.657);
--popover: oklch(0.993 0.002 67.796);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.986 0.005 67.77);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.987 0.006 67.752);
--primary-foreground: oklch(0.336 0.066 61.572);
--secondary: oklch(0.989 0.009 164.901);
--secondary-foreground: oklch(0.379 0.085 155.777);
--accent: oklch(0.979 0.01 308.342);
--accent-foreground: oklch(0.419 0.2 299.851);
--destructive: oklch(0.351 0.104 42.203);
--destructive-foreground: oklch(0.847 0.09 47.634);
--ring: oklch(0.987 0.006 67.752);
--chart-1: oklch(0.987 0.006 67.752);
--chart-2: oklch(0.989 0.009 164.901);
--chart-3: oklch(0.979 0.01 308.342);
--chart-4: oklch(1.005 0.005 345.262);
--chart-5: oklch(0.987 0.007 67.749);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.151 0.017 71.707);
--foreground: oklch(0.993 0.001 67.812);
--muted: oklch(0.175 0.01 163.499);
--muted-foreground: oklch(0.768 0.021 164.416);
--popover: oklch(0.151 0.017 71.707);
--popover-foreground: oklch(0.993 0.001 67.812);
--card: oklch(0.165 0.02 68.591);
--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.987 0.006 67.752);
--primary-foreground: oklch(0.336 0.066 61.572);
--secondary: oklch(0.989 0.009 164.901);
--secondary-foreground: oklch(0.379 0.085 155.777);
--accent: oklch(0.979 0.01 308.342);
--accent-foreground: oklch(0.419 0.2 299.851);
--destructive: oklch(0.719 0.18 44.267);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.987 0.006 67.752);
--chart-1: oklch(0.987 0.006 67.752);
--chart-2: oklch(0.989 0.009 164.901);
--chart-3: oklch(0.979 0.01 308.342);
--chart-4: oklch(1.005 0.005 345.262);
--chart-5: oklch(0.987 0.007 67.749);
}