Unselfish is a shadcn/ui theme built around a muted light violet primary color (#d0c4d9) with muted light violet accents (#d4cddb). The light mode uses a neutral background (#faf7fd). Dark mode keeps the muted light violet primary (#d0c4d9) on a neutral background (#030203).
| Token | Light | Dark |
|---|---|---|
| Background | #faf7fdghostwhite | #030203black |
| Foreground | #000000black | #fdfcfdwhite |
| Card | #f8f3fbghostwhite | #050307black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f8f3fbghostwhite | #050307black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #d0c4d9thistle | #d0c4d9thistle |
| Primary foreground | #372a41darkslategray | #372a41darkslategray |
| Secondary | #e8e6ealavender | #262528darkslategray |
| Secondary foreground | #504757darkslategray | #c0bdc2silver |
| Muted | #f2f0f5whitesmoke | #0d0a0fblack |
| Muted foreground | #483d52darkslategray | #b9adc2silver |
| Accent | #d4cddblightgrey | #3e3743darkslategray |
| Accent foreground | #3c3144darkslategray | #d7d2dalightgrey |
| Destructive | #8f2805saddlebrown | #f64c13orangered |
| Destructive foreground | #fdd6c9bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d0c4d9thistle | #d0c4d9thistle |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.80:1 | AAA |
| Text on card | 19.22:1 | AAA |
| Primary button | 8.02:1 | AAA |
| Secondary button | 7.11:1 | AAA |
| Muted text | 8.99:1 | AAA |
| Accent | 7.89:1 | AAA |
| Destructive | 6.34:1 | AA |
| Text on background | 20.27:1 | AAA |
| Text on card | 20.49:1 | AAA |
| Primary button | 8.02:1 | AAA |
| Secondary button | 8.21:1 | AAA |
| Muted text | 9.18:1 | AAA |
| Accent | 7.70:1 | AAA |
| Destructive | 3.51:1 | AA Large |
Paste this into your globals.css to use Unselfish in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.008 310.362);
--foreground: oklch(0 0 0);
--muted: oklch(0.958 0.007 310.373);
--muted-foreground: oklch(0.38 0.039 309.484);
--popover: oklch(0.971 0.012 310.323);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.971 0.012 310.323);
--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.837 0.03 310.1);
--primary-foreground: oklch(0.31 0.043 309.14);
--secondary: oklch(0.927 0.007 310.37);
--secondary-foreground: oklch(0.413 0.028 309.805);
--accent: oklch(0.858 0.021 310.214);
--accent-foreground: oklch(0.333 0.035 309.453);
--destructive: oklch(0.434 0.144 36.175);
--destructive-foreground: oklch(0.905 0.048 39.279);
--ring: oklch(0.837 0.03 310.1);
--chart-1: oklch(0.837 0.03 310.1);
--chart-2: oklch(0.927 0.007 310.37);
--chart-3: oklch(0.858 0.021 310.214);
--chart-4: oklch(0.952 0.004 310.394);
--chart-5: oklch(0.835 0.035 310.051);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.01 311.419);
--foreground: oklch(0.992 0.002 310.423);
--muted: oklch(0.152 0.01 309.799);
--muted-foreground: oklch(0.764 0.033 310.039);
--popover: oklch(0.108 0.013 311.419);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.108 0.013 311.419);
--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.837 0.03 310.1);
--primary-foreground: oklch(0.31 0.043 309.14);
--secondary: oklch(0.266 0.006 310.225);
--secondary-foreground: oklch(0.801 0.008 310.348);
--accent: oklch(0.349 0.023 309.833);
--accent-foreground: oklch(0.87 0.012 310.308);
--destructive: oklch(0.653 0.215 36.12);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.837 0.03 310.1);
--chart-1: oklch(0.837 0.03 310.1);
--chart-2: oklch(0.266 0.006 310.225);
--chart-3: oklch(0.349 0.023 309.833);
--chart-4: oklch(0.297 0.007 310.215);
--chart-5: oklch(0.835 0.035 310.051);
}