Infamous is a shadcn/ui theme built around a green primary color (#329825) with purple accents (#8a2598). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the green primary (#329825) on a green-tinted background (#080e07).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf8mintcream | #080e07black |
| Foreground | #061004black | #ffffffwhite |
| Card | #f8fcf8mintcream | #080e07black |
| Card foreground | #061004black | #ffffffwhite |
| Popover | #f8fcf8mintcream | #080e07black |
| Popover foreground | #061004black | #ffffffwhite |
| Primary | #329825forestgreen | #329825forestgreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #8a2598rebeccapurple | #8a2598rebeccapurple |
| Secondary foreground | #fbf3fcghostwhite | #fbf3fcghostwhite |
| Muted | #ebdeedlavender | #1f1221black |
| Muted foreground | #413e42darkslategray | #c1bdc1silver |
| Accent | #8a2598rebeccapurple | #8a2598rebeccapurple |
| Accent foreground | #fbf3fcghostwhite | #fbf3fcghostwhite |
| Destructive | #d32e0dfirebrick | #f0350forangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #329825forestgreen | #329825forestgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.73:1 | AAA |
| Text on card | 18.73:1 | AAA |
| Primary button | 3.71:1 | AA Large |
| Secondary button | 6.89:1 | AA |
| Muted text | 8.14:1 | AAA |
| Accent | 6.89:1 | AA |
| Destructive | 5.03:1 | AA |
| Text on background | 19.56:1 | AAA |
| Text on card | 19.56:1 | AAA |
| Primary button | 3.71:1 | AA Large |
| Secondary button | 6.89:1 | AA |
| Muted text | 9.68:1 | AAA |
| Accent | 6.89:1 | AA |
| Destructive | 4.03:1 | AA Large |
Paste this into your globals.css to use Infamous in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.008 142.087);
--foreground: oklch(0.158 0.031 140.569);
--muted: oklch(0.916 0.023 322.199);
--muted-foreground: oklch(0.368 0.008 322.185);
--popover: oklch(0.987 0.008 142.087);
--popover-foreground: oklch(0.158 0.031 140.569);
--card: oklch(0.987 0.008 142.087);
--card-foreground: oklch(0.158 0.031 140.569);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.598 0.177 141.474);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.473 0.19 322.741);
--secondary-foreground: oklch(0.972 0.015 322.166);
--accent: oklch(0.473 0.19 322.741);
--accent-foreground: oklch(0.972 0.015 322.166);
--destructive: oklch(0.565 0.204 32.46);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.598 0.177 141.474);
--chart-1: oklch(0.598 0.177 141.474);
--chart-2: oklch(0.473 0.19 322.741);
--chart-3: oklch(0.473 0.19 322.741);
--chart-4: oklch(0.501 0.202 322.733);
--chart-5: oklch(0.605 0.182 141.506);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.152 0.018 141.25);
--foreground: oklch(1 0 180);
--muted: oklch(0.207 0.033 322.606);
--muted-foreground: oklch(0.803 0.006 322.14);
--popover: oklch(0.152 0.018 141.25);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.152 0.018 141.25);
--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.598 0.177 141.474);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.473 0.19 322.741);
--secondary-foreground: oklch(0.972 0.015 322.166);
--accent: oklch(0.473 0.19 322.741);
--accent-foreground: oklch(0.972 0.015 322.166);
--destructive: oklch(0.621 0.226 32.384);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.598 0.177 141.474);
--chart-1: oklch(0.598 0.177 141.474);
--chart-2: oklch(0.473 0.19 322.741);
--chart-3: oklch(0.473 0.19 322.741);
--chart-4: oklch(0.501 0.202 322.733);
--chart-5: oklch(0.605 0.182 141.506);
}