Polarisation is a shadcn/ui theme built around a deep teal primary color (#1e6244) with deep teal accents (#1e5d62). The light mode uses a neutral background (#f7fdfa). Dark mode keeps the deep teal primary (#1e6244) on a teal-tinted background (#050b08).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdfamintcream | #050b08black |
| Foreground | #030d08black | #f9fbfamintcream |
| Card | #f3fcf8mintcream | #060e0bblack |
| Card foreground | #020806black | #fcfdfdwhite |
| Popover | #f3fcf8mintcream | #060e0bblack |
| Popover foreground | #020806black | #fcfdfdwhite |
| Primary | #1e6244darkslategray | #1e6244darkslategray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #1e6222forestgreen | #1e6222forestgreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dbf0ddgainsboro | #0f2411black |
| Muted foreground | #3f4a40darkslategray | #b5c0b5silver |
| Accent | #1e5d62darkslategray | #1e5d62darkslategray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #bc1e06firebrick | #f94e34tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1e6244darkslategray | #1e6244darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.12:1 | AAA |
| Text on card | 19.28:1 | AAA |
| Primary button | 7.31:1 | AAA |
| Secondary button | 7.47:1 | AAA |
| Muted text | 7.72:1 | AAA |
| Accent | 7.50:1 | AAA |
| Destructive | 6.31:1 | AA |
| Text on background | 19.13:1 | AAA |
| Text on card | 19.12:1 | AAA |
| Primary button | 7.31:1 | AAA |
| Secondary button | 7.47:1 | AAA |
| Muted text | 8.74:1 | AAA |
| Accent | 7.50:1 | AAA |
| Destructive | 3.40:1 | AA Large |
Paste this into your globals.css to use Polarisation in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.007 168.536);
--foreground: oklch(0.144 0.021 168.389);
--muted: oklch(0.934 0.033 147.187);
--muted-foreground: oklch(0.397 0.022 146.976);
--popover: oklch(0.983 0.01 168.434);
--popover-foreground: oklch(0.125 0.018 169.011);
--card: oklch(0.983 0.01 168.434);
--card-foreground: oklch(0.125 0.018 169.011);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.444 0.083 161.058);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.437 0.117 144.251);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.441 0.063 201.873);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.511 0.194 31.243);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.444 0.083 161.058);
--chart-1: oklch(0.444 0.083 161.058);
--chart-2: oklch(0.437 0.117 144.251);
--chart-3: oklch(0.441 0.063 201.873);
--chart-4: oklch(0.473 0.128 144.203);
--chart-5: oklch(0.449 0.087 160.643);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.013 168.845);
--foreground: oklch(0.986 0.003 168.647);
--muted: oklch(0.236 0.045 145.412);
--muted-foreground: oklch(0.795 0.019 147.31);
--popover: oklch(0.155 0.016 167.013);
--popover-foreground: oklch(0.993 0.002 168.691);
--card: oklch(0.155 0.016 167.013);
--card-foreground: oklch(0.993 0.002 168.691);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.444 0.083 161.058);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.437 0.117 144.251);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.441 0.063 201.873);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.661 0.211 31.588);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.444 0.083 161.058);
--chart-1: oklch(0.444 0.083 161.058);
--chart-2: oklch(0.437 0.117 144.251);
--chart-3: oklch(0.441 0.063 201.873);
--chart-4: oklch(0.473 0.128 144.203);
--chart-5: oklch(0.449 0.087 160.643);
}