Unselfish is a shadcn/ui theme built around a vivid light indigo primary color (#aea9f9) with vivid light violet accents (#d6a9f9). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the vivid light indigo primary (#aea9f9) on a neutral background (#030208).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcfdwhite | #030208black |
| Foreground | #000000black | #fcfbfdsnow |
| Card | #fcfcfdwhite | #030208black |
| Card foreground | #000000black | #fcfbfdsnow |
| Popover | #fcfcfdwhite | #030208black |
| Popover foreground | #000000black | #fcfbfdsnow |
| Primary | #aea9f9lightsteelblue | #aea9f9lightsteelblue |
| Primary foreground | #0e0769midnightblue | #0e0769midnightblue |
| Secondary | #a9ccf9lightblue | #a9ccf9lightblue |
| Secondary foreground | #073269midnightblue | #073269midnightblue |
| Muted | #e9eaedlavender | #121416black |
| Muted foreground | #56595ddimgray | #a2a5a9darkgray |
| Accent | #d6a9f9plum | #d6a9f9plum |
| Accent foreground | #3f0769indigo | #3f0769indigo |
| Destructive | #c13215firebrick | #e74727chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #aea9f9lightsteelblue | #aea9f9lightsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.41:1 | AAA |
| Text on card | 20.41:1 | AAA |
| Primary button | 7.87:1 | AAA |
| Secondary button | 7.59:1 | AAA |
| Muted text | 5.85:1 | AA |
| Accent | 7.55:1 | AAA |
| Destructive | 5.63:1 | AA |
| Text on background | 20.01:1 | AAA |
| Text on card | 20.01:1 | AAA |
| Primary button | 7.87:1 | AAA |
| Secondary button | 7.59:1 | AAA |
| Muted text | 7.45:1 | AAA |
| Accent | 7.55:1 | AAA |
| Destructive | 3.93:1 | AA Large |
Paste this into your globals.css to use Unselfish in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.002 289.431);
--foreground: oklch(0 0 0);
--muted: oklch(0.937 0.004 254.975);
--muted-foreground: oklch(0.462 0.008 255.038);
--popover: oklch(0.99 0.002 289.431);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.99 0.002 289.431);
--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.77 0.113 286.468);
--primary-foreground: oklch(0.25 0.153 269.912);
--secondary: oklch(0.835 0.074 255.281);
--secondary-foreground: oklch(0.324 0.107 257.514);
--accent: oklch(0.804 0.12 309.767);
--accent-foreground: oklch(0.301 0.149 303.091);
--destructive: oklch(0.536 0.184 32.904);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.77 0.113 286.468);
--chart-1: oklch(0.77 0.113 286.468);
--chart-2: oklch(0.835 0.074 255.281);
--chart-3: oklch(0.804 0.12 309.767);
--chart-4: oklch(0.862 0.061 255.231);
--chart-5: oklch(0.767 0.117 286.338);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.02 286.303);
--foreground: oklch(0.99 0.003 289.427);
--muted: oklch(0.191 0.005 255.09);
--muted-foreground: oklch(0.722 0.007 255.004);
--popover: oklch(0.096 0.02 286.303);
--popover-foreground: oklch(0.99 0.003 289.427);
--card: oklch(0.096 0.02 286.303);
--card-foreground: oklch(0.99 0.003 289.427);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.77 0.113 286.468);
--primary-foreground: oklch(0.25 0.153 269.912);
--secondary: oklch(0.835 0.074 255.281);
--secondary-foreground: oklch(0.324 0.107 257.514);
--accent: oklch(0.804 0.12 309.767);
--accent-foreground: oklch(0.301 0.149 303.091);
--destructive: oklch(0.624 0.202 33.135);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.77 0.113 286.468);
--chart-1: oklch(0.77 0.113 286.468);
--chart-2: oklch(0.835 0.074 255.281);
--chart-3: oklch(0.804 0.12 309.767);
--chart-4: oklch(0.862 0.061 255.231);
--chart-5: oklch(0.767 0.117 286.338);
}