Firewall is a shadcn/ui theme built around a purple primary color (#c23bc4) with pink accents (#c43b82). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#c23bc4) on a purple-tinted background (#0b040c).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0b040cblack |
| Foreground | #040104black | #faf5faghostwhite |
| Card | #fcfcfcsnow | #0f050fblack |
| Card foreground | #000000black | #fbf8fbsnow |
| Popover | #fcfcfcsnow | #0f050fblack |
| Popover foreground | #000000black | #fbf8fbsnow |
| Primary | #c23bc4mediumorchid | #c23bc4mediumorchid |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #7d3bc4darkorchid | #7d3bc4darkorchid |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dedce0gainsboro | #211f23black |
| Muted foreground | #403947darkslategray | #bfb8c6silver |
| Accent | #c43b82mediumvioletred | #c43b82mediumvioletred |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #721a04maroon | #e43307orangered |
| Destructive foreground | #fcbbablightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c23bc4mediumorchid | #c23bc4mediumorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.76:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 4.45:1 | AA Large |
| Secondary button | 6.37:1 | AA |
| Muted text | 8.12:1 | AAA |
| Accent | 4.88:1 | AA |
| Destructive | 6.90:1 | AA |
| Text on background | 18.82:1 | AAA |
| Text on card | 18.98:1 | AAA |
| Primary button | 4.45:1 | AA Large |
| Secondary button | 6.37:1 | AA |
| Muted text | 8.45:1 | AAA |
| Accent | 4.88:1 | AA |
| Destructive | 4.40:1 | AA Large |
Paste this into your globals.css to use Firewall in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.086 0.021 326.753);
--muted: oklch(0.897 0.006 307.714);
--muted-foreground: oklch(0.356 0.025 306.955);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.6 0.228 327.249);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.51 0.203 301.605);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.573 0.186 352.869);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.364 0.126 34.331);
--destructive-foreground: oklch(0.848 0.079 34.493);
--ring: oklch(0.6 0.228 327.249);
--chart-1: oklch(0.6 0.228 327.249);
--chart-2: oklch(0.51 0.203 301.605);
--chart-3: oklch(0.573 0.186 352.869);
--chart-4: oklch(0.536 0.193 302.533);
--chart-5: oklch(0.605 0.236 327.297);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.026 326.525);
--foreground: oklch(0.975 0.008 325.155);
--muted: oklch(0.244 0.008 307.408);
--muted-foreground: oklch(0.793 0.021 307.482);
--popover: oklch(0.139 0.03 326.512);
--popover-foreground: oklch(0.983 0.005 325.137);
--card: oklch(0.139 0.03 326.512);
--card-foreground: oklch(0.983 0.005 325.137);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.6 0.228 327.249);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.51 0.203 301.605);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.573 0.186 352.869);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.598 0.216 33.163);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.6 0.228 327.249);
--chart-1: oklch(0.6 0.228 327.249);
--chart-2: oklch(0.51 0.203 301.605);
--chart-3: oklch(0.573 0.186 352.869);
--chart-4: oklch(0.536 0.193 302.533);
--chart-5: oklch(0.605 0.236 327.297);
}