Privacy is a shadcn/ui theme built around a green primary color (#6ca54a) with violet accents (#844aa5). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#6ca54a) on a green-tinted background (#070c03).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070c03black |
| Foreground | #020401black | #fcfdfcwhite |
| Card | #ffffffwhite | #070c03black |
| Card foreground | #020401black | #fcfdfcwhite |
| Popover | #ffffffwhite | #070c03black |
| Popover foreground | #020401black | #fcfdfcwhite |
| Primary | #6ca54aolivedrab | #6ca54aolivedrab |
| Primary foreground | #10190bblack | #10190bblack |
| Secondary | #844aa5rebeccapurple | #844aa5rebeccapurple |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f2f2f3whitesmoke | #0d0c0dblack |
| Muted foreground | #4f4e50darkslategray | #b0afb1darkgray |
| Accent | #844aa5rebeccapurple | #844aa5rebeccapurple |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #750a01maroon | #fe4534tomato |
| Destructive foreground | #ffb0a9lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6ca54aolivedrab | #6ca54aolivedrab |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.58:1 | AAA |
| Text on card | 20.58:1 | AAA |
| Primary button | 6.12:1 | AA |
| Secondary button | 5.97:1 | AA |
| Muted text | 7.38:1 | AAA |
| Accent | 5.97:1 | AA |
| Destructive | 6.69:1 | AA |
| Text on background | 19.38:1 | AAA |
| Text on card | 19.38:1 | AAA |
| Primary button | 6.12:1 | AA |
| Secondary button | 5.97:1 | AA |
| Muted text | 8.93:1 | AAA |
| Accent | 5.97:1 | AA |
| Destructive | 3.43:1 | AA Large |
Paste this into your globals.css to use Privacy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.1 0.017 132.036);
--muted: oklch(0.961 0.002 313.594);
--muted-foreground: oklch(0.426 0.003 313.564);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.1 0.017 132.036);
--card: oklch(1 0 180);
--card-foreground: oklch(0.1 0.017 132.036);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.663 0.138 135.399);
--primary-foreground: oklch(0.199 0.029 134.674);
--secondary: oklch(0.518 0.148 311.536);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.518 0.148 311.536);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.358 0.139 30.833);
--destructive-foreground: oklch(0.83 0.093 25.035);
--ring: oklch(0.663 0.138 135.399);
--chart-1: oklch(0.663 0.138 135.399);
--chart-2: oklch(0.518 0.148 311.536);
--chart-3: oklch(0.518 0.148 311.536);
--chart-4: oklch(0.542 0.156 311.518);
--chart-5: oklch(0.671 0.147 135.563);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.144 0.024 132.234);
--foreground: oklch(0.993 0.002 133.617);
--muted: oklch(0.156 0.003 313.488);
--muted-foreground: oklch(0.756 0.002 313.585);
--popover: oklch(0.144 0.024 132.234);
--popover-foreground: oklch(0.993 0.002 133.617);
--card: oklch(0.144 0.024 132.234);
--card-foreground: oklch(0.993 0.002 133.617);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.663 0.138 135.399);
--primary-foreground: oklch(0.199 0.029 134.674);
--secondary: oklch(0.518 0.148 311.536);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.518 0.148 311.536);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.661 0.224 29.538);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.663 0.138 135.399);
--chart-1: oklch(0.663 0.138 135.399);
--chart-2: oklch(0.518 0.148 311.536);
--chart-3: oklch(0.518 0.148 311.536);
--chart-4: oklch(0.542 0.156 311.518);
--chart-5: oklch(0.671 0.147 135.563);
}