Unselfish is a shadcn/ui theme built around a blue primary color (#29587f) with orange accents (#7f5029). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#29587f) on a blue-tinted background (#03080c).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #03080cblack |
| Foreground | #040e15black | #f9fafbghostwhite |
| Card | #fcfcfcsnow | #040b10black |
| Card foreground | #030b11black | #fcfdfdwhite |
| Popover | #ffffffwhite | #03080cblack |
| Popover foreground | #040e15black | #f9fafbghostwhite |
| Primary | #29587fdarkslateblue | #29587fdarkslateblue |
| Primary foreground | #e4eef6lavender | #e4eef6lavender |
| Secondary | #7f5029saddlebrown | #7f5029saddlebrown |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dfdbd7gainsboro | #282320black |
| Muted foreground | #534f4bdarkslategray | #b4b0acdarkgray |
| Accent | #7f5029saddlebrown | #7f5029saddlebrown |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #990f06darkred | #f72b1dorangered |
| Destructive foreground | #fdd6d3mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #29587fdarkslateblue | #29587fdarkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.46:1 | AAA |
| Text on card | 19.38:1 | AAA |
| Primary button | 6.35:1 | AA |
| Secondary button | 6.82:1 | AA |
| Muted text | 5.89:1 | AA |
| Accent | 6.82:1 | AA |
| Destructive | 6.50:1 | AA |
| Text on background | 19.23:1 | AAA |
| Text on card | 19.44:1 | AAA |
| Primary button | 6.35:1 | AA |
| Secondary button | 6.82:1 | AA |
| Muted text | 7.20:1 | AAA |
| Accent | 6.82:1 | AA |
| Destructive | 3.95:1 | AA Large |
Paste this into your globals.css to use Unselfish in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.156 0.023 241.063);
--muted: oklch(0.894 0.007 62.093);
--muted-foreground: oklch(0.429 0.008 61.939);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.156 0.023 241.063);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.143 0.02 238.177);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.447 0.082 245.77);
--primary-foreground: oklch(0.944 0.015 242.409);
--secondary: oklch(0.476 0.083 58.147);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.476 0.083 58.147);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.434 0.17 29.847);
--destructive-foreground: oklch(0.908 0.045 22.832);
--ring: oklch(0.447 0.082 245.77);
--chart-1: oklch(0.447 0.082 245.77);
--chart-2: oklch(0.476 0.083 58.147);
--chart-3: oklch(0.476 0.083 58.147);
--chart-4: oklch(0.506 0.089 58.066);
--chart-5: oklch(0.448 0.086 246.085);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.13 0.014 235.221);
--foreground: oklch(0.985 0.002 242.217);
--muted: oklch(0.261 0.009 61.714);
--muted-foreground: oklch(0.758 0.007 62.07);
--popover: oklch(0.13 0.014 235.221);
--popover-foreground: oklch(0.985 0.002 242.217);
--card: oklch(0.144 0.017 238.971);
--card-foreground: oklch(0.992 0.001 242.205);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.447 0.082 245.77);
--primary-foreground: oklch(0.944 0.015 242.409);
--secondary: oklch(0.476 0.083 58.147);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.476 0.083 58.147);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.628 0.237 29.608);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.447 0.082 245.77);
--chart-1: oklch(0.447 0.082 245.77);
--chart-2: oklch(0.476 0.083 58.147);
--chart-3: oklch(0.476 0.083 58.147);
--chart-4: oklch(0.506 0.089 58.066);
--chart-5: oklch(0.448 0.086 246.085);
}