Positive is a shadcn/ui theme built around a vivid green primary color (#93f580) with muted light green accents (#c7d3c5). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#93f580) on a neutral background (#040703).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040703black |
| Foreground | #000000black | #f5faf4whitesmoke |
| Card | #ffffffwhite | #040703black |
| Card foreground | #000000black | #f5faf4whitesmoke |
| Popover | #ffffffwhite | #040703black |
| Popover foreground | #000000black | #f5faf4whitesmoke |
| Primary | #93f580lightgreen | #93f580lightgreen |
| Primary foreground | #0e3d05darkgreen | #0e3d05darkgreen |
| Secondary | #dde0dcgainsboro | #1e201dblack |
| Secondary foreground | #434841darkslategray | #b6bab5silver |
| Muted | #eff1efwhitesmoke | #0f100eblack |
| Muted foreground | #596d55dimgray | #96aa92darkseagreen |
| Accent | #c7d3c5lightgrey | #30382edarkslategray |
| Accent foreground | #2e3a2cdarkslategray | #c9d1c7lightgrey |
| Destructive | #ca4c12chocolate | #ee763fcoral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #93f580lightgreen | #93f580lightgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 9.22:1 | AAA |
| Secondary button | 7.00:1 | AAA |
| Muted text | 4.92:1 | AA |
| Accent | 7.72:1 | AAA |
| Destructive | 4.62:1 | AA |
| Text on background | 19.17:1 | AAA |
| Text on card | 19.17:1 | AAA |
| Primary button | 9.22:1 | AAA |
| Secondary button | 8.36:1 | AAA |
| Muted text | 7.68:1 | AAA |
| Accent | 7.79:1 | AAA |
| Destructive | 7.31:1 | AAA |
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 0 0);
--muted: oklch(0.955 0.003 140.527);
--muted-foreground: oklch(0.51 0.043 140.408);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.883 0.179 140.352);
--primary-foreground: oklch(0.317 0.097 140.731);
--secondary: oklch(0.902 0.005 140.522);
--secondary-foreground: oklch(0.395 0.014 140.478);
--accent: oklch(0.854 0.023 140.489);
--accent-foreground: oklch(0.333 0.029 140.403);
--destructive: oklch(0.58 0.172 40.603);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.883 0.179 140.352);
--chart-1: oklch(0.883 0.179 140.352);
--chart-2: oklch(0.902 0.005 140.522);
--chart-3: oklch(0.854 0.023 140.489);
--chart-4: oklch(0.925 0.004 140.525);
--chart-5: oklch(0.887 0.185 140.358);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.013 139.505);
--foreground: oklch(0.981 0.009 140.517);
--muted: oklch(0.172 0.004 140.491);
--muted-foreground: oklch(0.715 0.04 140.447);
--popover: oklch(0.12 0.013 139.505);
--popover-foreground: oklch(0.981 0.009 140.517);
--card: oklch(0.12 0.013 139.505);
--card-foreground: oklch(0.981 0.009 140.517);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.883 0.179 140.352);
--primary-foreground: oklch(0.317 0.097 140.731);
--secondary: oklch(0.24 0.005 140.496);
--secondary-foreground: oklch(0.785 0.01 140.513);
--accent: oklch(0.329 0.019 140.444);
--accent-foreground: oklch(0.851 0.015 140.504);
--destructive: oklch(0.697 0.164 43.727);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.883 0.179 140.352);
--chart-1: oklch(0.883 0.179 140.352);
--chart-2: oklch(0.24 0.005 140.496);
--chart-3: oklch(0.329 0.019 140.444);
--chart-4: oklch(0.272 0.007 140.494);
--chart-5: oklch(0.887 0.185 140.358);
}