Confidential Proton Red is a shadcn/ui theme built around a deep purple primary color (#4c224f) with deep green accents (#244f22). The light mode uses a neutral background (#ffffff). Dark mode switches to a vivid deep red primary (#850808) on a pink-tinted background (#480821).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #480821maroon |
| Foreground | #100411black | #77094cpurple |
| Card | #fcfcfcsnow | #0e070eblack |
| Card foreground | #0c030cblack | #ffffffwhite |
| Popover | #ffffffwhite | #0a050ablack |
| Popover foreground | #100411black | #ffffffwhite |
| Primary | #4c224fdarkslategray | #850808maroon |
| Primary foreground | #e2bfe3thistle | #e2bfe3thistle |
| Secondary | #244f22darkslategray | #ac5353indianred |
| Secondary foreground | #c1e3bflightgrey | #ffffffwhite |
| Muted | #e7eee7beige | #521414maroon |
| Muted foreground | #4d614cdarkolivegreen | #9fb39edarkgray |
| Accent | #244f22darkslategray | #b78cc1darkgray |
| Accent foreground | #c1e3bflightgrey | #c1e3bflightgrey |
| Destructive | #a41b0efirebrick | #ee493atomato |
| Destructive foreground | #fde9e8linen | #ffffffwhite |
| Border | #ebeaeblavender | #6c296frebeccapurple |
| Input | #ebeaeblavender | #ffffffwhite |
| Ring | #4c224fdarkslategray | #4c224fdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.04:1 | AAA |
| Text on card | 19.87:1 | AAA |
| Primary button | 7.77:1 | AAA |
| Secondary button | 6.81:1 | AA |
| Muted text | 5.69:1 | AA |
| Accent | 6.81:1 | AA |
| Destructive | 6.55:1 | AA |
| Text on background | 1.44:1 | Fail |
| Text on card | 19.95:1 | AAA |
| Primary button | 6.26:1 | AA |
| Secondary button | 5.09:1 | AA |
| Muted text | 6.40:1 | AA |
| Accent | 1.98:1 | Fail |
| Destructive | 3.72:1 | AA Large |
Paste this into your globals.css to use Confidential Proton Red in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.137 0.038 325.718);
--muted: oklch(0.943 0.013 144.05);
--muted-foreground: oklch(0.47 0.041 143.606);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.137 0.038 325.718);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.123 0.033 325.862);
--border: oklch(0.938 0.001 324.139);
--input: oklch(0.938 0.001 324.139);
--primary: oklch(0.33 0.092 325.498);
--primary-foreground: oklch(0.845 0.063 324.548);
--secondary: oklch(0.383 0.087 142.726);
--secondary-foreground: oklch(0.882 0.062 143.71);
--accent: oklch(0.383 0.087 142.726);
--accent-foreground: oklch(0.882 0.062 143.71);
--destructive: oklch(0.464 0.173 30.054);
--destructive-foreground: oklch(0.95 0.022 23.815);
--ring: oklch(0.33 0.092 325.498);
--chart-1: oklch(0.33 0.092 325.498);
--chart-2: oklch(0.383 0.087 142.726);
--chart-3: oklch(0.383 0.087 142.726);
--chart-4: oklch(0.418 0.096 142.702);
--chart-5: oklch(0.331 0.098 325.562);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.268 0.095 3.829);
--foreground: oklch(0.38 0.151 350.794);
--muted: oklch(0.298 0.092 24.674);
--muted-foreground: oklch(0.745 0.037 143.837);
--popover: oklch(0.127 0.018 325.187);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.14 0.021 325.02);
--card-foreground: oklch(1 0 180);
--border: oklch(0.406 0.132 325.664);
--input: oklch(1 0 180);
--primary: oklch(0.392 0.155 28.421);
--primary-foreground: oklch(0.845 0.063 324.548);
--secondary: oklch(0.553 0.117 21.608);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.699 0.089 320.423);
--accent-foreground: oklch(0.882 0.062 143.71);
--destructive: oklch(0.638 0.204 29.159);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.33 0.092 325.498);
--chart-1: oklch(0.392 0.155 28.421);
--chart-2: oklch(0.553 0.117 21.608);
--chart-3: oklch(0.699 0.089 320.423);
--chart-4: oklch(0.578 0.109 20.989);
--chart-5: oklch(0.396 0.158 28.642);
}