Positive is a shadcn/ui theme built around a deep red primary color (#4e2018) with deep cyan accents (#18464e). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep red primary (#4e2018) on a neutral background (#040201).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040201black |
| Foreground | #0c0504black | #f9f6f6whitesmoke |
| Card | #fcfcfcsnow | #080302black |
| Card foreground | #080302black | #fbf9f9snow |
| Popover | #ffffffwhite | #040201black |
| Popover foreground | #0c0504black | #f9f6f6whitesmoke |
| Primary | #4e2018maroon | #4e2018maroon |
| Primary foreground | #e7b9b1lightpink | #e7b9b1lightpink |
| Secondary | #18464edarkslategray | #18464edarkslategray |
| Secondary foreground | #b1dfe7powderblue | #b1dfe7powderblue |
| Muted | #e2eceelavender | #111b1dblack |
| Muted foreground | #4b5658darkslategray | #a7b2b4darkgray |
| Accent | #18464edarkslategray | #18464edarkslategray |
| Accent foreground | #b1dfe7powderblue | #b1dfe7powderblue |
| Destructive | #6f1a0bmaroon | #e33516orangered |
| Destructive foreground | #f8bfb5lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4e2018maroon | #4e2018maroon |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.20:1 | AAA |
| Text on card | 20.06:1 | AAA |
| Primary button | 7.74:1 | AAA |
| Secondary button | 7.23:1 | AAA |
| Muted text | 6.30:1 | AA |
| Accent | 7.23:1 | AAA |
| Destructive | 7.14:1 | AAA |
| Text on background | 19.30:1 | AAA |
| Text on card | 19.53:1 | AAA |
| Primary button | 7.74:1 | AAA |
| Secondary button | 7.23:1 | AAA |
| Muted text | 8.07:1 | AAA |
| Accent | 7.23:1 | AAA |
| Destructive | 4.37:1 | AA Large |
Paste this into your globals.css to use Positive in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.125 0.016 34.954);
--muted: oklch(0.936 0.011 209.442);
--muted-foreground: oklch(0.445 0.014 209.433);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.125 0.016 34.954);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.109 0.014 35.09);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.309 0.07 31.637);
--primary-foreground: oklch(0.825 0.054 29.84);
--secondary: oklch(0.365 0.05 211.056);
--secondary-foreground: oklch(0.873 0.048 209.494);
--accent: oklch(0.365 0.05 211.056);
--accent-foreground: oklch(0.873 0.048 209.494);
--destructive: oklch(0.361 0.122 32.34);
--destructive-foreground: oklch(0.852 0.067 29.96);
--ring: oklch(0.309 0.07 31.637);
--chart-1: oklch(0.309 0.07 31.637);
--chart-2: oklch(0.365 0.05 211.056);
--chart-3: oklch(0.365 0.05 211.056);
--chart-4: oklch(0.401 0.056 211.158);
--chart-5: oklch(0.309 0.074 31.778);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.011 35.09);
--foreground: oklch(0.976 0.003 29.478);
--muted: oklch(0.213 0.015 209.573);
--muted-foreground: oklch(0.755 0.013 209.434);
--popover: oklch(0.087 0.011 35.09);
--popover-foreground: oklch(0.976 0.003 29.478);
--card: oklch(0.109 0.014 35.09);
--card-foreground: oklch(0.984 0.002 29.475);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.309 0.07 31.637);
--primary-foreground: oklch(0.825 0.054 29.84);
--secondary: oklch(0.365 0.05 211.056);
--secondary-foreground: oklch(0.873 0.048 209.494);
--accent: oklch(0.365 0.05 211.056);
--accent-foreground: oklch(0.873 0.048 209.494);
--destructive: oklch(0.6 0.214 32.122);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.309 0.07 31.637);
--chart-1: oklch(0.309 0.07 31.637);
--chart-2: oklch(0.365 0.05 211.056);
--chart-3: oklch(0.365 0.05 211.056);
--chart-4: oklch(0.401 0.056 211.158);
--chart-5: oklch(0.309 0.074 31.778);
}