Selfish Medium Slate Blue is a shadcn/ui theme built around an indigo primary color (#776be1) with muted light indigo accents (#d9d8e4). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the indigo primary (#776be1) on a neutral background (#030208).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f8fcghostwhite | #030208black |
| Foreground | #040212black | #ffffffwhite |
| Card | #f8f8fcghostwhite | #030208black |
| Card foreground | #040212black | #ffffffwhite |
| Popover | #f8f8fcghostwhite | #030208black |
| Popover foreground | #040212black | #ffffffwhite |
| Primary | #776be1mediumslateblue | #776be1mediumslateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d9d8e4gainsboro | #24232fdarkslategray |
| Secondary foreground | #3a3852darkslategray | #bab9cbsilver |
| Muted | #dbd9e8gainsboro | #191726black |
| Muted foreground | #444346darkslategray | #b9b9bcsilver |
| Accent | #d9d8e4gainsboro | #24232fdarkslategray |
| Accent foreground | #3a3852darkslategray | #bab9cbsilver |
| Destructive | #f54256tomato | #f54256tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e9e9eclavender | #18171cblack |
| Input | #e9e9eclavender | #18171cblack |
| Ring | #776be1mediumslateblue | #776be1mediumslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.39:1 | AAA |
| Text on card | 19.39:1 | AAA |
| Primary button | 4.23:1 | AA Large |
| Secondary button | 7.94:1 | AAA |
| Muted text | 7.06:1 | AAA |
| Accent | 7.94:1 | AAA |
| Destructive | 3.62:1 | AA Large |
| Text on background | 20.65:1 | AAA |
| Text on card | 20.65:1 | AAA |
| Primary button | 4.23:1 | AA Large |
| Secondary button | 8.05:1 | AAA |
| Muted text | 8.99:1 | AAA |
| Accent | 8.05:1 | AAA |
| Destructive | 3.62:1 | AA Large |
Paste this into your globals.css to use Selfish Medium Slate Blue in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.005 290.918);
--foreground: oklch(0.11 0.041 284.982);
--muted: oklch(0.891 0.02 290.588);
--muted-foreground: oklch(0.386 0.005 290.788);
--popover: oklch(0.981 0.005 290.918);
--popover-foreground: oklch(0.11 0.041 284.982);
--card: oklch(0.981 0.005 290.918);
--card-foreground: oklch(0.11 0.041 284.982);
--border: oklch(0.935 0.005 290.914);
--input: oklch(0.935 0.005 290.914);
--primary: oklch(0.597 0.173 284.389);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.886 0.017 290.646);
--secondary-foreground: oklch(0.354 0.045 288.45);
--accent: oklch(0.886 0.017 290.646);
--accent-foreground: oklch(0.354 0.045 288.45);
--destructive: oklch(0.648 0.214 19.697);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.597 0.173 284.389);
--chart-1: oklch(0.597 0.173 284.389);
--chart-2: oklch(0.886 0.017 290.646);
--chart-3: oklch(0.886 0.017 290.646);
--chart-4: oklch(0.912 0.013 290.742);
--chart-5: oklch(0.592 0.18 283.957);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.022 288.241);
--foreground: oklch(1 0 180);
--muted: oklch(0.215 0.029 288.318);
--muted-foreground: oklch(0.786 0.004 290.921);
--popover: oklch(0.096 0.022 288.241);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.096 0.022 288.241);
--card-foreground: oklch(1 0 180);
--border: oklch(0.208 0.009 290.183);
--input: oklch(0.208 0.009 290.183);
--primary: oklch(0.597 0.173 284.389);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.262 0.023 289.305);
--secondary-foreground: oklch(0.792 0.026 290.392);
--accent: oklch(0.262 0.023 289.305);
--accent-foreground: oklch(0.792 0.026 290.392);
--destructive: oklch(0.648 0.214 19.659);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.597 0.173 284.389);
--chart-1: oklch(0.597 0.173 284.389);
--chart-2: oklch(0.262 0.023 289.305);
--chart-3: oklch(0.262 0.023 289.305);
--chart-4: oklch(0.29 0.026 289.222);
--chart-5: oklch(0.592 0.18 283.957);
}