Insecure is a shadcn/ui theme built around a green primary color (#2fb641) with purple accents (#b62fa4). The light mode uses a neutral background (#f7fdf7). Dark mode keeps the green primary (#2fb641) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdf7mintcream | #000000black |
| Foreground | #031705black | #f7f8f7whitesmoke |
| Card | #f7fdf7mintcream | #000000black |
| Card foreground | #031705black | #f7f8f7whitesmoke |
| Popover | #f7fdf7mintcream | #000000black |
| Popover foreground | #031705black | #f7f8f7whitesmoke |
| Primary | #2fb641limegreen | #2fb641limegreen |
| Primary foreground | #051407black | #051407black |
| Secondary | #b62fa4mediumvioletred | #b62fa4mediumvioletred |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #ebe0ealavender | #1f141eblack |
| Muted foreground | #503f4edarkslategray | #c0afbesilver |
| Accent | #b62fa4mediumvioletred | #b62fa4mediumvioletred |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #b73a01firebrick | #fe5c10orangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2fb641limegreen | #2fb641limegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.04:1 | AAA |
| Text on card | 18.04:1 | AAA |
| Primary button | 7.14:1 | AAA |
| Secondary button | 5.32:1 | AA |
| Muted text | 7.57:1 | AAA |
| Accent | 5.32:1 | AA |
| Destructive | 5.79:1 | AA |
| Text on background | 19.72:1 | AAA |
| Text on card | 19.72:1 | AAA |
| Primary button | 7.14:1 | AAA |
| Secondary button | 5.32:1 | AA |
| Muted text | 8.60:1 | AAA |
| Accent | 5.32:1 | AA |
| Destructive | 6.73:1 | AA |
Paste this into your globals.css to use Insecure in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.01 149.555);
--foreground: oklch(0.181 0.046 146.942);
--muted: oklch(0.918 0.018 329.919);
--muted-foreground: oklch(0.391 0.034 330.693);
--popover: oklch(0.988 0.01 149.555);
--popover-foreground: oklch(0.181 0.046 146.942);
--card: oklch(0.988 0.01 149.555);
--card-foreground: oklch(0.181 0.046 146.942);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.683 0.195 144.89);
--primary-foreground: oklch(0.174 0.035 147.52);
--secondary: oklch(0.556 0.211 334.101);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.556 0.211 334.101);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.526 0.169 38.73);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.683 0.195 144.89);
--chart-1: oklch(0.683 0.195 144.89);
--chart-2: oklch(0.556 0.211 334.101);
--chart-3: oklch(0.556 0.211 334.101);
--chart-4: oklch(0.583 0.221 334.123);
--chart-5: oklch(0.691 0.202 144.713);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.978 0.003 149.651);
--muted: oklch(0.21 0.026 331.095);
--muted-foreground: oklch(0.773 0.028 330.125);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.978 0.003 149.651);
--card: oklch(0 0 0);
--card-foreground: oklch(0.978 0.003 149.651);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.683 0.195 144.89);
--primary-foreground: oklch(0.174 0.035 147.52);
--secondary: oklch(0.556 0.211 334.101);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.556 0.211 334.101);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.682 0.21 39.678);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.683 0.195 144.89);
--chart-1: oklch(0.683 0.195 144.89);
--chart-2: oklch(0.556 0.211 334.101);
--chart-3: oklch(0.556 0.211 334.101);
--chart-4: oklch(0.583 0.221 334.123);
--chart-5: oklch(0.691 0.202 144.713);
}