Selfish is a shadcn/ui theme built around a vivid deep orange primary color (#7f2d0a) with vivid deep cyan accents (#0a5c7f). The light mode uses a neutral background (#fdf9f7). Dark mode keeps the vivid deep orange primary (#7f2d0a) on a neutral background (#070403).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf9f7snow | #070403black |
| Foreground | #000000black | #faf6f5whitesmoke |
| Card | #fdf9f7snow | #070403black |
| Card foreground | #000000black | #faf6f5whitesmoke |
| Popover | #fdf9f7snow | #070403black |
| Popover foreground | #000000black | #faf6f5whitesmoke |
| Primary | #7f2d0asaddlebrown | #7f2d0asaddlebrown |
| Primary foreground | #fad3c2peachpuff | #fad3c2peachpuff |
| Secondary | #0a5c7fteal | #0a5c7fteal |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d3dfe4gainsboro | #1b272cdarkslategray |
| Muted foreground | #5d6265dimgray | #9aa0a2darkgray |
| Accent | #0a5c7fteal | #0a5c7fteal |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #c13b15firebrick | #cf3f17firebrick |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7f2d0asaddlebrown | #7f2d0asaddlebrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.03:1 | AAA |
| Text on card | 20.03:1 | AAA |
| Primary button | 6.60:1 | AA |
| Secondary button | 7.33:1 | AAA |
| Muted text | 4.52:1 | AA |
| Accent | 7.33:1 | AAA |
| Destructive | 5.39:1 | AA |
| Text on background | 19.00:1 | AAA |
| Text on card | 19.00:1 | AAA |
| Primary button | 6.60:1 | AA |
| Secondary button | 7.33:1 | AAA |
| Muted text | 5.76:1 | AA |
| Accent | 7.33:1 | AAA |
| Destructive | 4.81:1 | AA |
Paste this into your globals.css to use Selfish in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.984 0.005 44.93);
--foreground: oklch(0 0 0);
--muted: oklch(0.895 0.014 225.167);
--muted-foreground: oklch(0.494 0.008 225.165);
--popover: oklch(0.984 0.005 44.93);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.984 0.005 44.93);
--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.414 0.121 40.118);
--primary-foreground: oklch(0.895 0.05 44.503);
--secondary: oklch(0.449 0.091 234.237);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.449 0.091 234.237);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.545 0.177 35.2);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.414 0.121 40.118);
--chart-1: oklch(0.414 0.121 40.118);
--chart-2: oklch(0.449 0.091 234.237);
--chart-3: oklch(0.449 0.091 234.237);
--chart-4: oklch(0.483 0.098 234.479);
--chart-5: oklch(0.417 0.125 39.741);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.114 0.008 49.871);
--foreground: oklch(0.977 0.004 44.942);
--muted: oklch(0.264 0.018 226.08);
--muted-foreground: oklch(0.701 0.007 225.098);
--popover: oklch(0.114 0.008 49.871);
--popover-foreground: oklch(0.977 0.004 44.942);
--card: oklch(0.114 0.008 49.871);
--card-foreground: oklch(0.977 0.004 44.942);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.414 0.121 40.118);
--primary-foreground: oklch(0.895 0.05 44.503);
--secondary: oklch(0.449 0.091 234.237);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.449 0.091 234.237);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.573 0.187 35.15);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.414 0.121 40.118);
--chart-1: oklch(0.414 0.121 40.118);
--chart-2: oklch(0.449 0.091 234.237);
--chart-3: oklch(0.449 0.091 234.237);
--chart-4: oklch(0.483 0.098 234.479);
--chart-5: oklch(0.417 0.125 39.741);
}