Inferior is a shadcn/ui theme built around a muted light pink primary color (#f9f5f8) with muted light green accents (#f5f9f7). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light pink primary (#f9f5f8) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #f9f5f8whitesmoke | #f9f5f8whitesmoke |
| Primary foreground | #794467dimgray | #794467dimgray |
| Secondary | #f5f9f7whitesmoke | #f5f9f7whitesmoke |
| Secondary foreground | #1f3727darkslategray | #1f3727darkslategray |
| Muted | #eef1efwhitesmoke | #0e110fblack |
| Muted foreground | #404f45darkslategray | #b0bfb5silver |
| Accent | #f5f9f7whitesmoke | #f5f9f7whitesmoke |
| Accent foreground | #1f3727darkslategray | #1f3727darkslategray |
| Destructive | #8d2907saddlebrown | #e4420corangered |
| Destructive foreground | #fcd6cabisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f9f5f8whitesmoke | #f9f5f8whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 6.87:1 | AA |
| Secondary button | 12.14:1 | AAA |
| Muted text | 7.64:1 | AAA |
| Accent | 12.14:1 | AAA |
| Destructive | 6.39:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 6.87:1 | AA |
| Secondary button | 12.14:1 | AAA |
| Muted text | 9.92:1 | AAA |
| Accent | 12.14:1 | AAA |
| Destructive | 4.14:1 | AA Large |
Paste this into your globals.css to use Inferior in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.956 0.005 157.166);
--muted-foreground: oklch(0.41 0.024 156.013);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.975 0.006 337.387);
--primary-foreground: oklch(0.462 0.087 340.778);
--secondary: oklch(0.98 0.006 157.143);
--secondary-foreground: oklch(0.313 0.042 154.095);
--accent: oklch(0.98 0.006 157.143);
--accent-foreground: oklch(0.313 0.042 154.095);
--destructive: oklch(0.432 0.14 36.421);
--destructive-foreground: oklch(0.906 0.046 39.283);
--ring: oklch(0.975 0.006 337.387);
--chart-1: oklch(0.975 0.006 337.387);
--chart-2: oklch(0.98 0.006 157.143);
--chart-3: oklch(0.98 0.006 157.143);
--chart-4: oklch(1 0 180);
--chart-5: oklch(0.975 0.007 337.4);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.173 0.007 156.407);
--muted-foreground: oklch(0.79 0.021 156.725);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.975 0.006 337.387);
--primary-foreground: oklch(0.462 0.087 340.778);
--secondary: oklch(0.98 0.006 157.143);
--secondary-foreground: oklch(0.313 0.042 154.095);
--accent: oklch(0.98 0.006 157.143);
--accent-foreground: oklch(0.313 0.042 154.095);
--destructive: oklch(0.611 0.206 35.716);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.975 0.006 337.387);
--chart-1: oklch(0.975 0.006 337.387);
--chart-2: oklch(0.98 0.006 157.143);
--chart-3: oklch(0.98 0.006 157.143);
--chart-4: oklch(1 0 180);
--chart-5: oklch(0.975 0.007 337.4);
}