Felony is a shadcn/ui theme built around a muted deep teal primary color (#303f40) with muted deep yellow accents (#3f4030). The light mode uses a neutral background (#f6fdfd). Dark mode keeps the muted deep teal primary (#303f40) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f6fdfdmintcream | #000000black |
| Foreground | #020808black | #f6f8f8whitesmoke |
| Card | #f6fdfdmintcream | #000000black |
| Card foreground | #020808black | #f6f8f8whitesmoke |
| Popover | #f6fdfdmintcream | #000000black |
| Popover foreground | #020808black | #f6f8f8whitesmoke |
| Primary | #303f40darkslategray | #303f40darkslategray |
| Primary foreground | #cbd7d8lightgrey | #cbd7d8lightgrey |
| Secondary | #40303fdarkslategray | #40303fdarkslategray |
| Secondary foreground | #d8cbd7lightgrey | #d8cbd7lightgrey |
| Muted | #f3ecf3whitesmoke | #130c13black |
| Muted foreground | #544053darkslategray | #bfabbesilver |
| Accent | #3f4030darkslategray | #3f4030darkslategray |
| Accent foreground | #d7d8cblightgrey | #d7d8cblightgrey |
| Destructive | #b21010firebrick | #ec2727crimson |
| Destructive foreground | #fef6f6snow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #303f40darkslategray | #303f40darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.60:1 | AAA |
| Text on card | 19.60:1 | AAA |
| Primary button | 7.43:1 | AAA |
| Secondary button | 7.83:1 | AAA |
| Muted text | 8.10:1 | AAA |
| Accent | 7.33:1 | AAA |
| Destructive | 6.62:1 | AA |
| Text on background | 19.70:1 | AAA |
| Text on card | 19.70:1 | AAA |
| Primary button | 7.43:1 | AAA |
| Secondary button | 7.83:1 | AAA |
| Muted text | 8.99:1 | AAA |
| Accent | 7.33:1 | AAA |
| Destructive | 4.28:1 | AA Large |
Paste this into your globals.css to use Felony in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.007 200.805);
--foreground: oklch(0.124 0.013 198.876);
--muted: oklch(0.951 0.012 327.156);
--muted-foreground: oklch(0.4 0.039 327.902);
--popover: oklch(0.989 0.007 200.805);
--popover-foreground: oklch(0.124 0.013 198.876);
--card: oklch(0.989 0.007 200.805);
--card-foreground: oklch(0.124 0.013 198.876);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.356 0.019 200.305);
--primary-foreground: oklch(0.87 0.013 200.707);
--secondary: oklch(0.334 0.034 327.923);
--secondary-foreground: oklch(0.855 0.022 327.271);
--accent: oklch(0.366 0.026 109.978);
--accent-foreground: oklch(0.877 0.017 109.073);
--destructive: oklch(0.486 0.191 28.375);
--destructive-foreground: oklch(0.979 0.009 17.314);
--ring: oklch(0.356 0.019 200.305);
--chart-1: oklch(0.356 0.019 200.305);
--chart-2: oklch(0.334 0.034 327.923);
--chart-3: oklch(0.366 0.026 109.978);
--chart-4: oklch(0.362 0.037 327.944);
--chart-5: oklch(0.359 0.023 200.222);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.978 0.002 200.864);
--muted: oklch(0.166 0.019 328.023);
--muted-foreground: oklch(0.765 0.033 327.435);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.978 0.002 200.864);
--card: oklch(0 0 0);
--card-foreground: oklch(0.978 0.002 200.864);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.356 0.019 200.305);
--primary-foreground: oklch(0.87 0.013 200.707);
--secondary: oklch(0.334 0.034 327.923);
--secondary-foreground: oklch(0.855 0.022 327.271);
--accent: oklch(0.366 0.026 109.978);
--accent-foreground: oklch(0.877 0.017 109.073);
--destructive: oklch(0.607 0.229 27.494);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.356 0.019 200.305);
--chart-1: oklch(0.356 0.019 200.305);
--chart-2: oklch(0.334 0.034 327.923);
--chart-3: oklch(0.366 0.026 109.978);
--chart-4: oklch(0.362 0.037 327.944);
--chart-5: oklch(0.359 0.023 200.222);
}