Possession is a shadcn/ui theme built around a near-white primary color (#f4f5f4) with muted light red accents (#d5cdcd). The light mode uses a neutral background (#f9fcf8). Dark mode keeps the near-white primary (#f4f5f4) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f9fcf8mintcream | #000000black |
| Foreground | #000000black | #ffffffwhite |
| Card | #f5faf5whitesmoke | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f5faf5whitesmoke | #030303black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #f4f5f4whitesmoke | #f4f5f4whitesmoke |
| Primary foreground | #272b27darkslategray | #272b27darkslategray |
| Secondary | #e0e0e0gainsboro | #121712black |
| Secondary foreground | #474747darkslategray | #a5b8a3darkgray |
| Muted | #ede9e9linen | #131612black |
| Muted foreground | #6d5454dimgray | #94ab92darkseagreen |
| Accent | #d5cdcdlightgrey | #223121darkslategray |
| Accent foreground | #3d3333darkslategray | #b8ceb6silver |
| Destructive | #631309maroon | #ef5743tomato |
| Destructive foreground | #f7afa6lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f4f5f4whitesmoke | #f4f5f4whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.24:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 13.18:1 | AAA |
| Secondary button | 7.06:1 | AAA |
| Muted text | 5.70:1 | AA |
| Accent | 7.81:1 | AAA |
| Destructive | 7.17:1 | AAA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 13.18:1 | AAA |
| Secondary button | 8.62:1 | AAA |
| Muted text | 7.36:1 | AAA |
| Accent | 8.20:1 | AAA |
| Destructive | 6.11:1 | AA |
Paste this into your globals.css to use Possession in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.005 142.605);
--foreground: oklch(0 0 0);
--muted: oklch(0.936 0.004 17.236);
--muted-foreground: oklch(0.473 0.034 18.412);
--popover: oklch(0.98 0.008 142.593);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.98 0.008 142.593);
--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.97 0.002 142.62);
--primary-foreground: oklch(0.283 0.009 142.497);
--secondary: oklch(0.908 0 180);
--secondary-foreground: oklch(0.399 0 180);
--accent: oklch(0.855 0.009 17.336);
--accent-foreground: oklch(0.332 0.015 17.907);
--destructive: oklch(0.328 0.114 31.047);
--destructive-foreground: oklch(0.821 0.086 27.487);
--ring: oklch(0.97 0.002 142.62);
--chart-1: oklch(0.97 0.002 142.62);
--chart-2: oklch(0.908 0 180);
--chart-3: oklch(0.855 0.009 17.336);
--chart-4: oklch(0.931 0 180);
--chart-5: oklch(0.97 0.003 142.616);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.197 0.01 142.422);
--muted-foreground: oklch(0.716 0.044 142.375);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.97 0.002 142.62);
--primary-foreground: oklch(0.283 0.009 142.497);
--secondary: oklch(0.198 0.013 142.362);
--secondary-foreground: oklch(0.762 0.037 142.431);
--accent: oklch(0.294 0.035 142.137);
--accent-foreground: oklch(0.828 0.041 142.423);
--destructive: oklch(0.657 0.19 30.383);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.97 0.002 142.62);
--chart-1: oklch(0.97 0.002 142.62);
--chart-2: oklch(0.198 0.013 142.362);
--chart-3: oklch(0.294 0.035 142.137);
--chart-4: oklch(0.233 0.017 142.33);
--chart-5: oklch(0.97 0.003 142.616);
}