Positive is a shadcn/ui theme built around a vivid purple primary color (#ed50e7) with vivid teal accents (#50e7ed). The light mode uses a neutral background (#fdf7fc). Dark mode keeps the vivid purple primary (#ed50e7) on a purple-tinted background (#0f050f).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7fcsnow | #0f050fblack |
| Foreground | #080208black | #faf5faghostwhite |
| Card | #fdf7fcsnow | #0f050fblack |
| Card foreground | #080208black | #faf5faghostwhite |
| Popover | #fdf7fcsnow | #0f050fblack |
| Popover foreground | #080208black | #faf5faghostwhite |
| Primary | #ed50e7orchid | #ed50e7orchid |
| Primary foreground | #090109black | #090109black |
| Secondary | #e7ed50khaki | #e7ed50khaki |
| Secondary foreground | #090901black | #090901black |
| Muted | #f1f1e9linen | #15160eblack |
| Muted foreground | #6e6e59dimgray | #a6a691darkgray |
| Accent | #50e7edturquoise | #50e7edturquoise |
| Accent foreground | #010909black | #010909black |
| Destructive | #701e00maroon | #f04000orangered |
| Destructive foreground | #ffbca3lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ed50e7orchid | #ed50e7orchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.45:1 | AAA |
| Text on card | 19.45:1 | AAA |
| Primary button | 6.74:1 | AA |
| Secondary button | 15.78:1 | AAA |
| Muted text | 4.57:1 | AA |
| Accent | 13.43:1 | AAA |
| Destructive | 6.91:1 | AA |
| Text on background | 18.57:1 | AAA |
| Text on card | 18.57:1 | AAA |
| Primary button | 6.74:1 | AA |
| Secondary button | 15.78:1 | AAA |
| Muted text | 7.37:1 | AAA |
| Accent | 13.43:1 | AAA |
| Destructive | 3.87:1 | AA Large |
Paste this into your globals.css to use Positive in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.009 326.621);
--foreground: oklch(0.108 0.027 328.139);
--muted: oklch(0.956 0.01 108.13);
--muted-foreground: oklch(0.533 0.033 109.039);
--popover: oklch(0.982 0.009 326.621);
--popover-foreground: oklch(0.108 0.027 328.139);
--card: oklch(0.982 0.009 326.621);
--card-foreground: oklch(0.108 0.027 328.139);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.698 0.251 329.259);
--primary-foreground: oklch(0.105 0.037 328.666);
--secondary: oklch(0.913 0.173 111.241);
--secondary-foreground: oklch(0.137 0.025 110.47);
--accent: oklch(0.853 0.125 198.398);
--accent-foreground: oklch(0.128 0.019 197.096);
--destructive: oklch(0.366 0.121 37.558);
--destructive-foreground: oklch(0.85 0.085 40.848);
--ring: oklch(0.698 0.251 329.259);
--chart-1: oklch(0.698 0.251 329.259);
--chart-2: oklch(0.913 0.173 111.241);
--chart-3: oklch(0.853 0.125 198.398);
--chart-4: oklch(0.919 0.164 111.038);
--chart-5: oklch(0.701 0.258 329.319);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.029 328.061);
--foreground: oklch(0.975 0.009 326.624);
--muted: oklch(0.195 0.014 109.242);
--muted-foreground: oklch(0.72 0.031 108.708);
--popover: oklch(0.139 0.029 328.061);
--popover-foreground: oklch(0.975 0.009 326.624);
--card: oklch(0.139 0.029 328.061);
--card-foreground: oklch(0.975 0.009 326.624);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.698 0.251 329.259);
--primary-foreground: oklch(0.105 0.037 328.666);
--secondary: oklch(0.913 0.173 111.241);
--secondary-foreground: oklch(0.137 0.025 110.47);
--accent: oklch(0.853 0.125 198.398);
--accent-foreground: oklch(0.128 0.019 197.096);
--destructive: oklch(0.63 0.219 35.333);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.698 0.251 329.259);
--chart-1: oklch(0.698 0.251 329.259);
--chart-2: oklch(0.913 0.173 111.241);
--chart-3: oklch(0.853 0.125 198.398);
--chart-4: oklch(0.919 0.164 111.038);
--chart-5: oklch(0.701 0.258 329.319);
}