Guerrilla is a shadcn/ui theme built around a near-black primary color (#1f201d) with near-black accents (#1d201d). The light mode uses a neutral background (#fafcf8). Dark mode keeps the near-black primary (#1f201d) on a green-tinted background (#0a0e07).
| Token | Light | Dark |
|---|---|---|
| Background | #fafcf8snow | #0a0e07black |
| Foreground | #080c03black | #fafcf8snow |
| Card | #f7fbf4whitesmoke | #0d1108black |
| Card foreground | #050802black | #fcfdfcwhite |
| Popover | #fafcf8snow | #0a0e07black |
| Popover foreground | #080c03black | #fafcf8snow |
| Primary | #1f201dblack | #1f201dblack |
| Primary foreground | #b8bab5silver | #b8bab5silver |
| Secondary | #20201dblack | #20201dblack |
| Secondary foreground | #babab5silver | #babab5silver |
| Muted | #f3f3f1whitesmoke | #0e0e0cblack |
| Muted foreground | #656558dimgray | #a7a79adarkgray |
| Accent | #1d201dblack | #1d201dblack |
| Accent foreground | #b5bab5silver | #b5bab5silver |
| Destructive | #c51c02firebrick | #f72302orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1f201dblack | #1f201dblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.11:1 | AAA |
| Text on card | 19.21:1 | AAA |
| Primary button | 8.38:1 | AAA |
| Secondary button | 8.39:1 | AAA |
| Muted text | 5.32:1 | AA |
| Accent | 8.34:1 | AAA |
| Destructive | 5.93:1 | AA |
| Text on background | 18.87:1 | AAA |
| Text on card | 18.68:1 | AAA |
| Primary button | 8.38:1 | AAA |
| Secondary button | 8.39:1 | AAA |
| Muted text | 7.96:1 | AAA |
| Accent | 8.34:1 | AAA |
| Destructive | 4.02:1 | AA Large |
Paste this into your globals.css to use Guerrilla in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.006 129.193);
--foreground: oklch(0.145 0.023 128.139);
--muted: oklch(0.964 0.002 107.214);
--muted-foreground: oklch(0.502 0.02 107.89);
--popover: oklch(0.988 0.006 129.193);
--popover-foreground: oklch(0.145 0.023 128.139);
--card: oklch(0.983 0.009 129.227);
--card-foreground: oklch(0.127 0.02 127.933);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.24 0.005 129.345);
--primary-foreground: oklch(0.786 0.009 129.242);
--secondary: oklch(0.242 0.005 107.51);
--secondary-foreground: oklch(0.789 0.008 107.352);
--accent: oklch(0.239 0.006 145.855);
--accent-foreground: oklch(0.784 0.01 145.949);
--destructive: oklch(0.527 0.203 31.146);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.24 0.005 129.345);
--chart-1: oklch(0.24 0.005 129.345);
--chart-2: oklch(0.242 0.005 107.51);
--chart-3: oklch(0.239 0.006 145.855);
--chart-4: oklch(0.275 0.006 107.532);
--chart-5: oklch(0.243 0.009 129.507);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.156 0.017 129.31);
--foreground: oklch(0.988 0.005 129.177);
--muted: oklch(0.161 0.004 107.58);
--muted-foreground: oklch(0.725 0.019 107.632);
--popover: oklch(0.156 0.017 129.31);
--popover-foreground: oklch(0.988 0.005 129.177);
--card: oklch(0.171 0.02 130.258);
--card-foreground: oklch(0.994 0.002 129.151);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.24 0.005 129.345);
--primary-foreground: oklch(0.786 0.009 129.242);
--secondary: oklch(0.242 0.005 107.51);
--secondary-foreground: oklch(0.789 0.008 107.352);
--accent: oklch(0.239 0.006 145.855);
--accent-foreground: oklch(0.784 0.01 145.949);
--destructive: oklch(0.624 0.242 30.923);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.24 0.005 129.345);
--chart-1: oklch(0.24 0.005 129.345);
--chart-2: oklch(0.242 0.005 107.51);
--chart-3: oklch(0.239 0.006 145.855);
--chart-4: oklch(0.275 0.006 107.532);
--chart-5: oklch(0.243 0.009 129.507);
}