Inferior is a shadcn/ui theme built around a vivid purple primary color (#dd4aed) with vivid pink accents (#ed4aac). The light mode uses a neutral background (#fcf8fc). Dark mode keeps the vivid purple primary (#dd4aed) on a purple-tinted background (#0a050a).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8fcsnow | #0a050ablack |
| Foreground | #0c020dblack | #f9f6f9whitesmoke |
| Card | #faf4fbghostwhite | #0d070eblack |
| Card foreground | #080209black | #fbf9fbsnow |
| Popover | #fcf8fcsnow | #0a050ablack |
| Popover foreground | #0c020dblack | #f9f6f9whitesmoke |
| Primary | #dd4aedorchid | #dd4aedorchid |
| Primary foreground | #040005black | #040005black |
| Secondary | #8b4aedblueviolet | #8b4aedblueviolet |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eae9eclavender | #141316black |
| Muted foreground | #59575cdimgray | #a5a3a8darkgray |
| Accent | #ed4aachotpink | #ed4aachotpink |
| Accent foreground | #050003black | #050003black |
| Destructive | #892f0bsaddlebrown | #e74f13orangered |
| Destructive foreground | #fbd9cbbisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dd4aedorchid | #dd4aedorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.34:1 | AAA |
| Text on card | 18.96:1 | AAA |
| Primary button | 6.22:1 | AA |
| Secondary button | 4.87:1 | AA |
| Muted text | 5.89:1 | AA |
| Accent | 6.13:1 | AA |
| Destructive | 6.43:1 | AA |
| Text on background | 18.84:1 | AAA |
| Text on card | 19.04:1 | AAA |
| Primary button | 6.22:1 | AA |
| Secondary button | 4.87:1 | AA |
| Muted text | 7.42:1 | AAA |
| Accent | 6.13:1 | AA |
| Destructive | 3.79:1 | AA Large |
Paste this into your globals.css to use Inferior in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.007 322.656);
--foreground: oklch(0.121 0.036 324.511);
--muted: oklch(0.935 0.005 304.266);
--muted-foreground: oklch(0.459 0.009 304.065);
--popover: oklch(0.983 0.007 322.656);
--popover-foreground: oklch(0.121 0.036 324.511);
--card: oklch(0.974 0.011 322.671);
--card-foreground: oklch(0.105 0.031 324.831);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.674 0.255 323.57);
--primary-foreground: oklch(0.082 0.029 325.229);
--secondary: oklch(0.575 0.231 296.771);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.666 0.219 347.782);
--accent-foreground: oklch(0.081 0.026 340.455);
--destructive: oklch(0.433 0.13 38.902);
--destructive-foreground: oklch(0.909 0.042 42.78);
--ring: oklch(0.674 0.255 323.57);
--chart-1: oklch(0.674 0.255 323.57);
--chart-2: oklch(0.575 0.231 296.771);
--chart-3: oklch(0.666 0.219 347.782);
--chart-4: oklch(0.604 0.216 298.001);
--chart-5: oklch(0.677 0.261 323.559);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.017 323.679);
--foreground: oklch(0.976 0.005 322.646);
--muted: oklch(0.188 0.008 303.76);
--muted-foreground: oklch(0.719 0.008 304.185);
--popover: oklch(0.127 0.017 323.679);
--popover-foreground: oklch(0.976 0.005 322.646);
--card: oklch(0.14 0.019 323.319);
--card-foreground: oklch(0.984 0.003 322.64);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.674 0.255 323.57);
--primary-foreground: oklch(0.082 0.029 325.229);
--secondary: oklch(0.575 0.231 296.771);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.666 0.219 347.782);
--accent-foreground: oklch(0.081 0.026 340.455);
--destructive: oklch(0.631 0.198 38.147);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.674 0.255 323.57);
--chart-1: oklch(0.674 0.255 323.57);
--chart-2: oklch(0.575 0.231 296.771);
--chart-3: oklch(0.666 0.219 347.782);
--chart-4: oklch(0.604 0.216 298.001);
--chart-5: oklch(0.677 0.261 323.559);
}