Loophole is a shadcn/ui theme built around a deep green primary color (#263810) with deep pink accents (#381026). The light mode uses a neutral background (#fdfefb). Dark mode keeps the deep green primary (#263810) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #000000black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fdfefbwhite | #000000black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fdfefbwhite | #000000black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #263810darkgreen | #263810darkgreen |
| Primary foreground | #90cb48yellowgreen | #90cb48yellowgreen |
| Secondary | #102638darkslategray | #102638darkslategray |
| Secondary foreground | #98c0e2skyblue | #98c0e2skyblue |
| Muted | #eaedf0lavender | #0f1215black |
| Muted foreground | #414e58darkslategray | #a7b4bedarkgray |
| Accent | #381026black | #381026black |
| Accent foreground | #e298c0plum | #e298c0plum |
| Destructive | #61210amaroon | #ea6434tomato |
| Destructive foreground | #f6bca7lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #263810darkgreen | #263810darkgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.72:1 | AAA |
| Text on card | 20.72:1 | AAA |
| Primary button | 6.56:1 | AA |
| Secondary button | 8.11:1 | AAA |
| Muted text | 7.30:1 | AAA |
| Accent | 7.49:1 | AAA |
| Destructive | 7.31:1 | AAA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.56:1 | AA |
| Secondary button | 8.11:1 | AAA |
| Muted text | 8.86:1 | AAA |
| Accent | 7.49:1 | AAA |
| Destructive | 6.37:1 | AA |
Paste this into your globals.css to use Loophole in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.004 126.482);
--foreground: oklch(0 0 0);
--muted: oklch(0.946 0.005 242.257);
--muted-foreground: oklch(0.416 0.024 242.972);
--popover: oklch(0.995 0.004 126.482);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.995 0.004 126.482);
--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.314 0.067 130.001);
--primary-foreground: oklch(0.777 0.172 130.276);
--secondary: oklch(0.259 0.044 245.361);
--secondary-foreground: oklch(0.791 0.065 243.36);
--accent: oklch(0.246 0.07 349.364);
--accent-foreground: oklch(0.764 0.103 345.683);
--destructive: oklch(0.343 0.098 38.761);
--destructive-foreground: oklch(0.843 0.073 40.885);
--ring: oklch(0.314 0.067 130.001);
--chart-1: oklch(0.314 0.067 130.001);
--chart-2: oklch(0.259 0.044 245.361);
--chart-3: oklch(0.246 0.07 349.364);
--chart-4: oklch(0.291 0.052 245.603);
--chart-5: oklch(0.317 0.069 130.192);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.181 0.007 242.699);
--muted-foreground: oklch(0.762 0.02 242.55);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.314 0.067 130.001);
--primary-foreground: oklch(0.777 0.172 130.276);
--secondary: oklch(0.259 0.044 245.361);
--secondary-foreground: oklch(0.791 0.065 243.36);
--accent: oklch(0.246 0.07 349.364);
--accent-foreground: oklch(0.764 0.103 345.683);
--destructive: oklch(0.664 0.177 39.386);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.314 0.067 130.001);
--chart-1: oklch(0.314 0.067 130.001);
--chart-2: oklch(0.259 0.044 245.361);
--chart-3: oklch(0.246 0.07 349.364);
--chart-4: oklch(0.291 0.052 245.603);
--chart-5: oklch(0.317 0.069 130.192);
}