Infamous is a shadcn/ui theme built around a deep green primary color (#0a1a0f) with deep purple accents (#1a0a15). The light mode uses a neutral background (#fbfefc). Dark mode keeps the deep green primary (#0a1a0f) on a neutral background (#010402).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #010402black |
| Foreground | #05140ablack | #f5faf6whitesmoke |
| Card | #f7fdf9mintcream | #020804black |
| Card foreground | #041008black | #f8fcf9mintcream |
| Popover | #f7fdf9mintcream | #020804black |
| Popover foreground | #041008black | #f8fcf9mintcream |
| Primary | #0a1a0fblack | #0a1a0fblack |
| Primary foreground | #44ab63mediumseagreen | #44ab63mediumseagreen |
| Secondary | #1a0a15black | #1a0a15black |
| Secondary foreground | #cf87b9orchid | #cf87b9orchid |
| Muted | #f3ecf1whitesmoke | #130c11black |
| Muted foreground | #686467dimgray | #9b979adarkgray |
| Accent | #1a0a15black | #1a0a15black |
| Accent foreground | #cf87b9orchid | #cf87b9orchid |
| Destructive | #8b3409saddlebrown | #e1550echocolate |
| Destructive foreground | #fcdbcabisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0a1a0fblack | #0a1a0fblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.62:1 | AAA |
| Text on card | 18.81:1 | AAA |
| Primary button | 6.23:1 | AA |
| Secondary button | 7.12:1 | AAA |
| Muted text | 5.01:1 | AA |
| Accent | 7.12:1 | AAA |
| Destructive | 6.20:1 | AA |
| Text on background | 19.51:1 | AAA |
| Text on card | 19.52:1 | AAA |
| Primary button | 6.23:1 | AA |
| Secondary button | 7.12:1 | AAA |
| Muted text | 6.70:1 | AA |
| Accent | 7.12:1 | AAA |
| Destructive | 3.81:1 | AA Large |
Paste this into your globals.css to use Infamous in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.005 155.781);
--foreground: oklch(0.174 0.03 153.059);
--muted: oklch(0.95 0.01 336.073);
--muted-foreground: oklch(0.508 0.007 336.117);
--popover: oklch(0.988 0.009 155.692);
--popover-foreground: oklch(0.158 0.026 154.244);
--card: oklch(0.988 0.009 155.692);
--card-foreground: oklch(0.158 0.026 154.244);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.198 0.03 152.434);
--primary-foreground: oklch(0.664 0.143 150.488);
--secondary: oklch(0.174 0.033 339.161);
--secondary-foreground: oklch(0.712 0.11 338.566);
--accent: oklch(0.174 0.033 339.161);
--accent-foreground: oklch(0.712 0.11 338.566);
--destructive: oklch(0.444 0.128 41.875);
--destructive-foreground: oklch(0.914 0.043 48.228);
--ring: oklch(0.198 0.03 152.434);
--chart-1: oklch(0.198 0.03 152.434);
--chart-2: oklch(0.174 0.033 339.161);
--chart-3: oklch(0.174 0.033 339.161);
--chart-4: oklch(0.206 0.045 339.635);
--chart-5: oklch(0.199 0.032 152.205);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.014 155.431);
--foreground: oklch(0.98 0.008 155.718);
--muted: oklch(0.165 0.016 337.616);
--muted-foreground: oklch(0.681 0.006 336.041);
--popover: oklch(0.122 0.017 155.431);
--popover-foreground: oklch(0.987 0.005 155.769);
--card: oklch(0.122 0.017 155.431);
--card-foreground: oklch(0.987 0.005 155.769);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.198 0.03 152.434);
--primary-foreground: oklch(0.664 0.143 150.488);
--secondary: oklch(0.174 0.033 339.161);
--secondary-foreground: oklch(0.712 0.11 338.566);
--accent: oklch(0.174 0.033 339.161);
--accent-foreground: oklch(0.712 0.11 338.566);
--destructive: oklch(0.628 0.188 40.939);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.198 0.03 152.434);
--chart-1: oklch(0.198 0.03 152.434);
--chart-2: oklch(0.174 0.033 339.161);
--chart-3: oklch(0.174 0.033 339.161);
--chart-4: oklch(0.206 0.045 339.635);
--chart-5: oklch(0.199 0.032 152.205);
}