Inequality is a shadcn/ui theme built around a neutral gray primary color (#d9dadd) with muted light blue accents (#c8cbd5). The light mode uses a neutral background (#f8f9fc). Dark mode keeps the neutral gray primary (#d9dadd) on a neutral background (#020203).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f9fcghostwhite | #020203black |
| Foreground | #03050cblack | #ffffffwhite |
| Card | #f4f5fbwhitesmoke | #030407black |
| Card foreground | #020308black | #ffffffwhite |
| Popover | #f4f5fbwhitesmoke | #030407black |
| Popover foreground | #020308black | #ffffffwhite |
| Primary | #d9daddgainsboro | #d9daddgainsboro |
| Primary foreground | #3e4046darkslategray | #3e4046darkslategray |
| Secondary | #dadbdcgainsboro | #2e3038darkslategray |
| Secondary foreground | #404144darkslategray | #c7c9d1lightgrey |
| Muted | #e0e1e6gainsboro | #191a1fblack |
| Muted foreground | #3c3f4edarkslategray | #b1b5c3silver |
| Accent | #c8cbd5lightgrey | #363b4fdarkslategray |
| Accent foreground | #2f313ddarkslategray | #d5d7e2gainsboro |
| Destructive | #aa0603darkred | #fa221ecrimson |
| Destructive foreground | #fee2e1mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d9daddgainsboro | #d9daddgainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.28:1 | AAA |
| Text on card | 18.97:1 | AAA |
| Primary button | 7.41:1 | AAA |
| Secondary button | 7.34:1 | AAA |
| Muted text | 7.98:1 | AAA |
| Accent | 7.95:1 | AAA |
| Destructive | 6.27:1 | AA |
| Text on background | 20.74:1 | AAA |
| Text on card | 20.49:1 | AAA |
| Primary button | 7.41:1 | AAA |
| Secondary button | 7.96:1 | AAA |
| Muted text | 8.49:1 | AAA |
| Accent | 7.75:1 | AAA |
| Destructive | 3.94:1 | AA Large |
Paste this into your globals.css to use Inequality in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.005 274.974);
--foreground: oklch(0.116 0.021 267.34);
--muted: oklch(0.91 0.007 274.934);
--muted-foreground: oklch(0.372 0.025 274.104);
--popover: oklch(0.972 0.007 274.942);
--popover-foreground: oklch(0.101 0.018 267.159);
--card: oklch(0.972 0.007 274.942);
--card-foreground: oklch(0.101 0.018 267.159);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.889 0.005 274.969);
--primary-foreground: oklch(0.372 0.011 274.652);
--secondary: oklch(0.891 0.002 275.002);
--secondary-foreground: oklch(0.376 0.005 274.853);
--accent: oklch(0.842 0.014 274.823);
--accent-foreground: oklch(0.317 0.02 274.155);
--destructive: oklch(0.465 0.188 29.232);
--destructive-foreground: oklch(0.935 0.032 18.902);
--ring: oklch(0.889 0.005 274.969);
--chart-1: oklch(0.889 0.005 274.969);
--chart-2: oklch(0.891 0.002 275.002);
--chart-3: oklch(0.842 0.014 274.823);
--chart-4: oklch(0.914 0.002 275.01);
--chart-5: oklch(0.887 0.007 274.936);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.008 270.91);
--foreground: oklch(1 0 180);
--muted: oklch(0.219 0.011 274.38);
--muted-foreground: oklch(0.774 0.021 274.693);
--popover: oklch(0.107 0.011 270.91);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.107 0.011 270.91);
--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.889 0.005 274.969);
--primary-foreground: oklch(0.372 0.011 274.652);
--secondary: oklch(0.31 0.015 274.394);
--secondary-foreground: oklch(0.837 0.012 274.863);
--accent: oklch(0.355 0.036 273.568);
--accent-foreground: oklch(0.881 0.015 274.819);
--destructive: oklch(0.63 0.244 28.495);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.889 0.005 274.969);
--chart-1: oklch(0.889 0.005 274.969);
--chart-2: oklch(0.31 0.015 274.394);
--chart-3: oklch(0.355 0.036 273.568);
--chart-4: oklch(0.339 0.017 274.373);
--chart-5: oklch(0.887 0.007 274.936);
}