Selfish is a shadcn/ui theme built around a deep blue primary color (#030a11) with deep orange accents (#110b03). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep blue primary (#030a11) on a blue-tinted background (#050a0f).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050a0fblack |
| Foreground | #030a12black | #ffffffwhite |
| Card | #ffffffwhite | #050a0fblack |
| Card foreground | #030a12black | #ffffffwhite |
| Popover | #ffffffwhite | #050a0fblack |
| Popover foreground | #030a12black | #ffffffwhite |
| Primary | #030a11black | #030a11black |
| Primary foreground | #669fe1cornflowerblue | #669fe1cornflowerblue |
| Secondary | #110b03black | #110b03black |
| Secondary foreground | #e1a766sandybrown | #e1a766sandybrown |
| Muted | #e9e3dcgainsboro | #231c16black |
| Muted foreground | #64584adimgray | #b5a99bdarkgray |
| Accent | #110b03black | #110b03black |
| Accent foreground | #e1a766sandybrown | #e1a766sandybrown |
| Destructive | #77220dmaroon | #d33d17firebrick |
| Destructive foreground | #f8cabfpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #030a11black | #030a11black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.88:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 7.21:1 | AAA |
| Secondary button | 9.25:1 | AAA |
| Muted text | 5.44:1 | AA |
| Accent | 9.25:1 | AAA |
| Destructive | 6.99:1 | AA |
| Text on background | 19.87:1 | AAA |
| Text on card | 19.87:1 | AAA |
| Primary button | 7.21:1 | AAA |
| Secondary button | 9.25:1 | AAA |
| Muted text | 7.28:1 | AAA |
| Accent | 9.25:1 | AAA |
| Destructive | 4.71:1 | AA |
Paste this into your globals.css to use Selfish in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.139 0.023 245.229);
--muted: oklch(0.92 0.011 71.342);
--muted-foreground: oklch(0.467 0.027 70.82);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.139 0.023 245.229);
--card: oklch(1 0 180);
--card-foreground: oklch(0.139 0.023 245.229);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.139 0.021 245.878);
--primary-foreground: oklch(0.691 0.115 252.729);
--secondary: oklch(0.154 0.021 75.875);
--secondary-foreground: oklch(0.77 0.107 68.797);
--accent: oklch(0.154 0.021 75.875);
--accent-foreground: oklch(0.77 0.107 68.797);
--destructive: oklch(0.386 0.122 34.704);
--destructive-foreground: oklch(0.876 0.055 34.368);
--ring: oklch(0.139 0.021 245.878);
--chart-1: oklch(0.139 0.021 245.878);
--chart-2: oklch(0.154 0.021 75.875);
--chart-3: oklch(0.154 0.021 75.875);
--chart-4: oklch(0.196 0.03 69.598);
--chart-5: oklch(0.139 0.022 245.556);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.015 247.702);
--foreground: oklch(1 0 180);
--muted: oklch(0.233 0.016 70.664);
--muted-foreground: oklch(0.742 0.024 71.138);
--popover: oklch(0.141 0.015 247.702);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.141 0.015 247.702);
--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.139 0.021 245.878);
--primary-foreground: oklch(0.691 0.115 252.729);
--secondary: oklch(0.154 0.021 75.875);
--secondary-foreground: oklch(0.77 0.107 68.797);
--accent: oklch(0.154 0.021 75.875);
--accent-foreground: oklch(0.77 0.107 68.797);
--destructive: oklch(0.579 0.193 34.329);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.139 0.021 245.878);
--chart-1: oklch(0.139 0.021 245.878);
--chart-2: oklch(0.154 0.021 75.875);
--chart-3: oklch(0.154 0.021 75.875);
--chart-4: oklch(0.196 0.03 69.598);
--chart-5: oklch(0.139 0.022 245.556);
}