Felony is a shadcn/ui theme built around a deep red primary color (#571a19) with deep teal accents (#195657). The light mode uses a neutral background (#fefbfb). Dark mode keeps the deep red primary (#571a19) on a neutral background (#040101).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #040101black |
| Foreground | #120302black | #fdfcfcsnow |
| Card | #fefbfbsnow | #040101black |
| Card foreground | #120302black | #fdfcfcsnow |
| Popover | #fefbfbsnow | #040101black |
| Popover foreground | #120302black | #fdfcfcsnow |
| Primary | #571a19maroon | #571a19maroon |
| Primary foreground | #eab9b8lightpink | #eab9b8lightpink |
| Secondary | #195657darkslategray | #195657darkslategray |
| Secondary foreground | #b8eaeapaleturquoise | #b8eaeapaleturquoise |
| Muted | #d6eaeagainsboro | #152829darkslategray |
| Muted foreground | #626464dimgray | #9b9d9ddarkgray |
| Accent | #195657darkslategray | #195657darkslategray |
| Accent foreground | #b8eaeapaleturquoise | #b8eaeapaleturquoise |
| Destructive | #641c02maroon | #f64404orangered |
| Destructive foreground | #fdb59bburlywood | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #571a19maroon | #571a19maroon |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.63:1 | AAA |
| Text on card | 19.63:1 | AAA |
| Primary button | 7.72:1 | AAA |
| Secondary button | 6.37:1 | AA |
| Muted text | 4.77:1 | AA |
| Accent | 6.37:1 | AA |
| Destructive | 7.15:1 | AAA |
| Text on background | 20.29:1 | AAA |
| Text on card | 20.29:1 | AAA |
| Primary button | 7.72:1 | AAA |
| Secondary button | 6.37:1 | AA |
| Muted text | 5.61:1 | AA |
| Accent | 6.37:1 | AA |
| Destructive | 3.64:1 | AA Large |
Paste this into your globals.css to use Felony in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 18.409);
--foreground: oklch(0.128 0.035 25.216);
--muted: oklch(0.923 0.021 198.028);
--muted-foreground: oklch(0.503 0.002 198.289);
--popover: oklch(0.99 0.003 18.409);
--popover-foreground: oklch(0.128 0.035 25.216);
--card: oklch(0.99 0.003 18.409);
--card-foreground: oklch(0.128 0.035 25.216);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.316 0.09 24.73);
--primary-foreground: oklch(0.829 0.058 19.513);
--secondary: oklch(0.416 0.06 196.704);
--secondary-foreground: oklch(0.901 0.051 197.575);
--accent: oklch(0.416 0.06 196.704);
--accent-foreground: oklch(0.901 0.051 197.575);
--destructive: oklch(0.341 0.11 38.052);
--destructive-foreground: oklch(0.835 0.093 40.82);
--ring: oklch(0.316 0.09 24.73);
--chart-1: oklch(0.316 0.09 24.73);
--chart-2: oklch(0.416 0.06 196.704);
--chart-3: oklch(0.416 0.06 196.704);
--chart-4: oklch(0.454 0.067 196.698);
--chart-5: oklch(0.317 0.094 25.152);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.082 0.015 22.486);
--foreground: oklch(0.992 0.001 18.382);
--muted: oklch(0.262 0.026 197.083);
--muted-foreground: oklch(0.693 0.002 198.313);
--popover: oklch(0.082 0.015 22.486);
--popover-foreground: oklch(0.992 0.001 18.382);
--card: oklch(0.082 0.015 22.486);
--card-foreground: oklch(0.992 0.001 18.382);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.316 0.09 24.73);
--primary-foreground: oklch(0.829 0.058 19.513);
--secondary: oklch(0.416 0.06 196.704);
--secondary-foreground: oklch(0.901 0.051 197.575);
--accent: oklch(0.416 0.06 196.704);
--accent-foreground: oklch(0.901 0.051 197.575);
--destructive: oklch(0.645 0.222 35.594);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.316 0.09 24.73);
--chart-1: oklch(0.316 0.09 24.73);
--chart-2: oklch(0.416 0.06 196.704);
--chart-3: oklch(0.416 0.06 196.704);
--chart-4: oklch(0.454 0.067 196.698);
--chart-5: oklch(0.317 0.094 25.152);
}