Powerless is a shadcn/ui theme built around a light indigo primary color (#b8b3e5) with muted light indigo accents (#c5c4d4). The light mode uses a neutral background (#ffffff). Dark mode keeps the light indigo primary (#b8b3e5) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #070514black | #ffffffwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #070514black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #070514black | #ffffffwhite |
| Primary | #b8b3e5lightsteelblue | #b8b3e5lightsteelblue |
| Primary foreground | #1f1a4cmidnightblue | #1f1a4cmidnightblue |
| Secondary | #d9d8dfgainsboro | #2b2b2cdarkslategray |
| Secondary foreground | #3e3c48darkslategray | #c4c4c5silver |
| Muted | #e9e8f3lavender | #0d0c17black |
| Muted foreground | #5f5f63dimgray | #9d9ca0darkgray |
| Accent | #c5c4d4thistle | #35353bdarkslategray |
| Accent foreground | #2c2b3bdarkslategray | #cfced4lightgrey |
| Destructive | #d92008firebrick | #dd2108red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b8b3e5lightsteelblue | #b8b3e5lightsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.17:1 | AAA |
| Text on card | 20.17:1 | AAA |
| Primary button | 8.10:1 | AAA |
| Secondary button | 7.62:1 | AAA |
| Muted text | 5.22:1 | AA |
| Accent | 8.06:1 | AAA |
| Destructive | 5.06:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 8.10:1 | AAA |
| Secondary button | 8.12:1 | AAA |
| Muted text | 7.09:1 | AAA |
| Accent | 7.79:1 | AAA |
| Destructive | 4.87:1 | AA |
Paste this into your globals.css to use Powerless in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.131 0.034 286.435);
--muted: oklch(0.934 0.015 290.712);
--muted-foreground: oklch(0.487 0.006 290.776);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.131 0.034 286.435);
--card: oklch(1 0 180);
--card-foreground: oklch(0.131 0.034 286.435);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.788 0.071 289.253);
--primary-foreground: oklch(0.257 0.089 282.681);
--secondary: oklch(0.885 0.009 290.827);
--secondary-foreground: oklch(0.363 0.02 289.929);
--accent: oklch(0.826 0.023 290.492);
--accent-foreground: oklch(0.297 0.029 289.059);
--destructive: oklch(0.566 0.218 30.755);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.788 0.071 289.253);
--chart-1: oklch(0.788 0.071 289.253);
--chart-2: oklch(0.885 0.009 290.827);
--chart-3: oklch(0.826 0.023 290.492);
--chart-4: oklch(0.91 0.007 290.872);
--chart-5: oklch(0.785 0.075 289.128);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.163 0.023 288.136);
--muted-foreground: oklch(0.695 0.006 290.862);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.788 0.071 289.253);
--primary-foreground: oklch(0.257 0.089 282.681);
--secondary: oklch(0.289 0.002 290.912);
--secondary-foreground: oklch(0.82 0.002 290.976);
--accent: oklch(0.331 0.012 290.335);
--accent-foreground: oklch(0.855 0.008 290.847);
--destructive: oklch(0.575 0.221 30.744);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.788 0.071 289.253);
--chart-1: oklch(0.788 0.071 289.253);
--chart-2: oklch(0.289 0.002 290.912);
--chart-3: oklch(0.331 0.012 290.335);
--chart-4: oklch(0.32 0.002 290.908);
--chart-5: oklch(0.785 0.075 289.128);
}