Selfish is a shadcn/ui theme built around a near-white primary color (#fcf8fb) with near-white accents (#f8fcf8). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the near-white primary (#fcf8fb) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfdwhite | #000000black |
| Foreground | #0d030cblack | #f9f6f9whitesmoke |
| Card | #fdfcfdwhite | #000000black |
| Card foreground | #0d030cblack | #f9f6f9whitesmoke |
| Popover | #fdfcfdwhite | #000000black |
| Popover foreground | #0d030cblack | #f9f6f9whitesmoke |
| Primary | #fcf8fbsnow | #fcf8fbsnow |
| Primary foreground | #81417erebeccapurple | #81417erebeccapurple |
| Secondary | #f8fcf8mintcream | #f8fcf8mintcream |
| Secondary foreground | #1f3d20darkslategray | #1f3d20darkslategray |
| Muted | #eceeecwhitesmoke | #111311black |
| Muted foreground | #4f6950darkolivegreen | #96b098darkseagreen |
| Accent | #f8fcf8mintcream | #f8fcf8mintcream |
| Accent foreground | #1f3d20darkslategray | #1f3d20darkslategray |
| Destructive | #b3450fsienna | #ed6521chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fcf8fbsnow | #fcf8fbsnow |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.78:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 6.67:1 | AA |
| Secondary button | 11.58:1 | AAA |
| Muted text | 5.19:1 | AA |
| Accent | 11.58:1 | AAA |
| Destructive | 5.53:1 | AA |
| Text on background | 19.57:1 | AAA |
| Text on card | 19.57:1 | AAA |
| Primary button | 6.67:1 | AA |
| Secondary button | 11.58:1 | AAA |
| Muted text | 7.97:1 | AAA |
| Accent | 11.58:1 | AAA |
| Destructive | 6.49:1 | AA |
Paste this into your globals.css to use Selfish in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.003 327.062);
--foreground: oklch(0.123 0.033 328.824);
--muted: oklch(0.947 0.003 147.009);
--muted-foreground: oklch(0.492 0.049 146.054);
--popover: oklch(0.992 0.003 327.062);
--popover-foreground: oklch(0.123 0.033 328.824);
--card: oklch(0.992 0.003 327.062);
--card-foreground: oklch(0.123 0.033 328.824);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.983 0.006 327.09);
--primary-foreground: oklch(0.478 0.12 329.122);
--secondary: oklch(0.986 0.005 146.987);
--secondary-foreground: oklch(0.328 0.062 145.062);
--accent: oklch(0.986 0.005 146.987);
--accent-foreground: oklch(0.328 0.062 145.062);
--destructive: oklch(0.535 0.155 41.815);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.983 0.006 327.09);
--chart-1: oklch(0.983 0.006 327.09);
--chart-2: oklch(0.986 0.005 146.987);
--chart-3: oklch(0.986 0.005 146.987);
--chart-4: oklch(1.007 0.003 327.063);
--chart-5: oklch(0.983 0.006 327.095);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.975 0.006 327.095);
--muted: oklch(0.183 0.004 146.811);
--muted-foreground: oklch(0.731 0.045 146.448);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.975 0.006 327.095);
--card: oklch(0 0 0);
--card-foreground: oklch(0.975 0.006 327.095);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.983 0.006 327.09);
--primary-foreground: oklch(0.478 0.12 329.122);
--secondary: oklch(0.986 0.005 146.987);
--secondary-foreground: oklch(0.328 0.062 145.062);
--accent: oklch(0.986 0.005 146.987);
--accent-foreground: oklch(0.328 0.062 145.062);
--destructive: oklch(0.669 0.184 42.901);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.983 0.006 327.09);
--chart-1: oklch(0.983 0.006 327.09);
--chart-2: oklch(0.986 0.005 146.987);
--chart-3: oklch(0.986 0.005 146.987);
--chart-4: oklch(1.007 0.003 327.063);
--chart-5: oklch(0.983 0.006 327.095);
}