Pension is a shadcn/ui theme built around a teal primary color (#3ab6a3) with red accents (#b63a4c). The light mode uses a neutral background (#fbfefe). Dark mode keeps the teal primary (#3ab6a3) on a teal-tinted background (#04100e).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefewhite | #04100eblack |
| Foreground | #020e0cblack | #ffffffwhite |
| Card | #f6fdfcmintcream | #051412black |
| Card foreground | #010908black | #ffffffwhite |
| Popover | #fbfefewhite | #04100eblack |
| Popover foreground | #020e0cblack | #ffffffwhite |
| Primary | #3ab6a3lightseagreen | #3ab6a3lightseagreen |
| Primary foreground | #091b18black | #091b18black |
| Secondary | #b63a4cbrown | #b63a4cbrown |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f6eaeclinen | #15090bblack |
| Muted foreground | #5c474adarkolivegreen | #b8a3a6darkgray |
| Accent | #b63a4cbrown | #b63a4cbrown |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #a40c0adarkred | #f33330crimson |
| Destructive foreground | #fde3e2mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3ab6a3lightseagreen | #3ab6a3lightseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.34:1 | AAA |
| Text on card | 19.57:1 | AAA |
| Primary button | 7.12:1 | AAA |
| Secondary button | 5.68:1 | AA |
| Muted text | 7.27:1 | AAA |
| Accent | 5.68:1 | AA |
| Destructive | 6.55:1 | AA |
| Text on background | 19.33:1 | AAA |
| Text on card | 18.81:1 | AAA |
| Primary button | 7.12:1 | AAA |
| Secondary button | 5.68:1 | AA |
| Muted text | 8.18:1 | AAA |
| Accent | 5.68:1 | AA |
| Destructive | 3.94:1 | AA Large |
Paste this into your globals.css to use Pension in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.004 186.501);
--foreground: oklch(0.148 0.021 184.933);
--muted: oklch(0.946 0.013 6.944);
--muted-foreground: oklch(0.421 0.029 8.333);
--popover: oklch(0.995 0.004 186.501);
--popover-foreground: oklch(0.148 0.021 184.933);
--card: oklch(0.99 0.007 186.407);
--card-foreground: oklch(0.128 0.018 186.059);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.704 0.111 180.874);
--primary-foreground: oklch(0.206 0.025 182.868);
--secondary: oklch(0.533 0.16 15.839);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.533 0.16 15.839);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.456 0.181 28.844);
--destructive-foreground: oklch(0.936 0.03 18.859);
--ring: oklch(0.704 0.111 180.874);
--chart-1: oklch(0.704 0.111 180.874);
--chart-2: oklch(0.533 0.16 15.839);
--chart-3: oklch(0.533 0.16 15.839);
--chart-4: oklch(0.557 0.168 15.913);
--chart-5: oklch(0.713 0.115 180.582);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.16 0.019 184.281);
--foreground: oklch(1 0 180);
--muted: oklch(0.16 0.021 9.94);
--muted-foreground: oklch(0.734 0.025 7.452);
--popover: oklch(0.16 0.019 184.281);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.177 0.022 183.477);
--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.704 0.111 180.874);
--primary-foreground: oklch(0.206 0.025 182.868);
--secondary: oklch(0.533 0.16 15.839);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.533 0.16 15.839);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.627 0.227 27.442);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.704 0.111 180.874);
--chart-1: oklch(0.704 0.111 180.874);
--chart-2: oklch(0.533 0.16 15.839);
--chart-3: oklch(0.533 0.16 15.839);
--chart-4: oklch(0.557 0.168 15.913);
--chart-5: oklch(0.713 0.115 180.582);
}