Parameter is a shadcn/ui theme built around a vivid light green primary color (#91f2b5) with muted green accents (#b6c9bd). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light green primary (#91f2b5) on a green-tinted background (#040b07).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040b07black |
| Foreground | #020d06black | #f8fbf9mintcream |
| Card | #fcfcfcsnow | #050f09black |
| Card foreground | #010904black | #fcfdfcwhite |
| Popover | #fcfcfcsnow | #050f09black |
| Popover foreground | #010904black | #fcfdfcwhite |
| Primary | #91f2b5palegreen | #91f2b5palegreen |
| Primary foreground | #094920darkgreen | #094920darkgreen |
| Secondary | #d0d7d3lightgrey | #1e2420black |
| Secondary foreground | #363f39darkslategray | #b5c0b9silver |
| Muted | #d8e4dcgainsboro | #1b2720black |
| Muted foreground | #506257dimgray | #9dafa3darkgray |
| Accent | #b6c9bdsilver | #29382edarkslategray |
| Accent foreground | #212c25darkslategray | #c1d2c7silver |
| Destructive | #a52112firebrick | #e73a27crimson |
| Destructive foreground | #fdeeedseashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #91f2b5palegreen | #91f2b5palegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.75:1 | AAA |
| Text on card | 19.71:1 | AAA |
| Primary button | 7.85:1 | AAA |
| Secondary button | 7.45:1 | AAA |
| Muted text | 4.96:1 | AA |
| Accent | 8.30:1 | AAA |
| Destructive | 6.57:1 | AA |
| Text on background | 19.06:1 | AAA |
| Text on card | 19.07:1 | AAA |
| Primary button | 7.85:1 | AAA |
| Secondary button | 8.43:1 | AAA |
| Muted text | 6.69:1 | AA |
| Accent | 7.81:1 | AAA |
| Destructive | 4.16:1 | AA Large |
Paste this into your globals.css to use Parameter in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.145 0.027 157.933);
--muted: oklch(0.907 0.016 158.326);
--muted-foreground: oklch(0.478 0.028 157.37);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.125 0.023 158.424);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.125 0.023 158.424);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.886 0.126 155.086);
--primary-foreground: oklch(0.357 0.092 150.05);
--secondary: oklch(0.873 0.01 158.48);
--secondary-foreground: oklch(0.358 0.016 157.712);
--accent: oklch(0.817 0.027 157.993);
--accent-foreground: oklch(0.28 0.021 157.004);
--destructive: oklch(0.471 0.17 30.489);
--destructive-foreground: oklch(0.961 0.016 25.133);
--ring: oklch(0.886 0.126 155.086);
--chart-1: oklch(0.886 0.126 155.086);
--chart-2: oklch(0.873 0.01 158.48);
--chart-3: oklch(0.817 0.027 157.993);
--chart-4: oklch(0.896 0.008 158.529);
--chart-5: oklch(0.889 0.13 154.95);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.018 158.41);
--foreground: oklch(0.987 0.004 158.629);
--muted: oklch(0.259 0.022 156.741);
--muted-foreground: oklch(0.736 0.026 157.946);
--popover: oklch(0.156 0.021 157.263);
--popover-foreground: oklch(0.993 0.002 158.675);
--card: oklch(0.156 0.021 157.263);
--card-foreground: oklch(0.993 0.002 158.675);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.886 0.126 155.086);
--primary-foreground: oklch(0.357 0.092 150.05);
--secondary: oklch(0.253 0.01 157.843);
--secondary-foreground: oklch(0.796 0.016 158.291);
--accent: oklch(0.324 0.027 156.779);
--accent-foreground: oklch(0.848 0.024 158.1);
--destructive: oklch(0.612 0.212 30.355);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.886 0.126 155.086);
--chart-1: oklch(0.886 0.126 155.086);
--chart-2: oklch(0.253 0.01 157.843);
--chart-3: oklch(0.324 0.027 156.779);
--chart-4: oklch(0.285 0.012 157.791);
--chart-5: oklch(0.889 0.13 154.95);
}