Infamous is a shadcn/ui theme built around a vivid yellow primary color (#afa218) with vivid green accents (#70af18). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid yellow primary (#afa218) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #080703black | #f8f8f6whitesmoke |
| Card | #ffffffwhite | #000000black |
| Card foreground | #080703black | #f8f8f6whitesmoke |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #080703black | #f8f8f6whitesmoke |
| Primary | #afa218darkgoldenrod | #afa218darkgoldenrod |
| Primary foreground | #000000black | #000000black |
| Secondary | #af5718sienna | #af5718sienna |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #efe7e1linen | #1e1610black |
| Muted foreground | #4c4743darkslategray | #bcb7b3silver |
| Accent | #70af18olivedrab | #70af18olivedrab |
| Accent foreground | #000000black | #000000black |
| Destructive | #ba0808firebrick | #f63131crimson |
| Destructive foreground | #fff5f5lavenderblush | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #afa218darkgoldenrod | #afa218darkgoldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.15:1 | AAA |
| Text on card | 20.15:1 | AAA |
| Primary button | 8.03:1 | AAA |
| Secondary button | 5.00:1 | AA |
| Muted text | 7.50:1 | AAA |
| Accent | 7.83:1 | AAA |
| Destructive | 6.27:1 | AA |
| Text on background | 19.74:1 | AAA |
| Text on card | 19.74:1 | AAA |
| Primary button | 8.03:1 | AAA |
| Secondary button | 5.00:1 | AA |
| Muted text | 8.98:1 | AAA |
| Accent | 7.83:1 | AAA |
| Destructive | 3.87:1 | AA Large |
Paste this into your globals.css to use Infamous in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.128 0.015 104.944);
--muted: oklch(0.932 0.012 58.188);
--muted-foreground: oklch(0.4 0.009 58.05);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.128 0.015 104.944);
--card: oklch(1 0 180);
--card-foreground: oklch(0.128 0.015 104.944);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.703 0.143 103.667);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.555 0.135 50.387);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.685 0.181 131.185);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.498 0.201 28.85);
--destructive-foreground: oklch(0.978 0.01 17.329);
--ring: oklch(0.703 0.143 103.667);
--chart-1: oklch(0.703 0.143 103.667);
--chart-2: oklch(0.555 0.135 50.387);
--chart-3: oklch(0.685 0.181 131.185);
--chart-4: oklch(0.585 0.143 50.256);
--chart-5: oklch(0.711 0.146 103.583);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.98 0.003 102.259);
--muted: oklch(0.207 0.017 57.15);
--muted-foreground: oklch(0.782 0.008 58.227);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.98 0.003 102.259);
--card: oklch(0 0 0);
--card-foreground: oklch(0.98 0.003 102.259);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.703 0.143 103.667);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.555 0.135 50.387);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.685 0.181 131.185);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.633 0.231 26.941);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.703 0.143 103.667);
--chart-1: oklch(0.703 0.143 103.667);
--chart-2: oklch(0.555 0.135 50.387);
--chart-3: oklch(0.685 0.181 131.185);
--chart-4: oklch(0.585 0.143 50.256);
--chart-5: oklch(0.711 0.146 103.583);
}