Slot is a shadcn/ui theme built around a muted deep violet primary color (#2c2438) with muted light violet accents (#cac2d6). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the muted deep violet primary (#2c2438) on a neutral background (#050308).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #050308black |
| Foreground | #020104black | #ffffffwhite |
| Card | #fcfbfewhite | #050308black |
| Card foreground | #020104black | #ffffffwhite |
| Popover | #fcfbfewhite | #050308black |
| Popover foreground | #020104black | #ffffffwhite |
| Primary | #2c2438darkslategray | #2c2438darkslategray |
| Primary foreground | #c4bbd3silver | #c4bbd3silver |
| Secondary | #e2dfe7gainsboro | #171717black |
| Secondary foreground | #484054darkslategray | #b0afb1darkgray |
| Muted | #e6e1eflavender | #15101eblack |
| Muted foreground | #5f5a68dimgray | #9d97a5darkgray |
| Accent | #cac2d6thistle | #28252ddarkslategray |
| Accent foreground | #31293ddarkslategray | #c0bcc8silver |
| Destructive | #c12410firebrick | #ef4e39tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2c2438darkslategray | #2c2438darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.23:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 8.06:1 | AAA |
| Secondary button | 7.47:1 | AAA |
| Muted text | 5.21:1 | AA |
| Accent | 8.06:1 | AAA |
| Destructive | 5.92:1 | AA |
| Text on background | 20.57:1 | AAA |
| Text on card | 20.57:1 | AAA |
| Primary button | 8.06:1 | AAA |
| Secondary button | 8.22:1 | AAA |
| Muted text | 6.57:1 | AA |
| Accent | 8.11:1 | AAA |
| Destructive | 3.60:1 | AA Large |
Paste this into your globals.css to use Slot in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 303.594);
--foreground: oklch(0.078 0.02 304.747);
--muted: oklch(0.918 0.019 303.328);
--muted-foreground: oklch(0.478 0.022 302.945);
--popover: oklch(0.99 0.003 303.594);
--popover-foreground: oklch(0.078 0.02 304.747);
--card: oklch(0.99 0.003 303.594);
--card-foreground: oklch(0.078 0.02 304.747);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.278 0.038 301.57);
--primary-foreground: oklch(0.806 0.036 302.983);
--secondary: oklch(0.909 0.01 303.473);
--secondary-foreground: oklch(0.388 0.033 302.357);
--accent: oklch(0.827 0.028 303.14);
--accent-foreground: oklch(0.299 0.036 301.837);
--destructive: oklch(0.526 0.194 30.989);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.278 0.038 301.57);
--chart-1: oklch(0.278 0.038 301.57);
--chart-2: oklch(0.909 0.01 303.473);
--chart-3: oklch(0.827 0.028 303.14);
--chart-4: oklch(0.934 0.007 303.522);
--chart-5: oklch(0.275 0.043 301.243);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.103 0.018 304.414);
--foreground: oklch(1 0 180);
--muted: oklch(0.187 0.028 301.319);
--muted-foreground: oklch(0.686 0.02 303.198);
--popover: oklch(0.103 0.018 304.414);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.103 0.018 304.414);
--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.278 0.038 301.57);
--primary-foreground: oklch(0.806 0.036 302.983);
--secondary: oklch(0.204 0.001 303.571);
--secondary-foreground: oklch(0.755 0.002 303.594);
--accent: oklch(0.27 0.016 302.787);
--accent-foreground: oklch(0.802 0.018 303.312);
--destructive: oklch(0.645 0.201 30.683);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.278 0.038 301.57);
--chart-1: oklch(0.278 0.038 301.57);
--chart-2: oklch(0.204 0.001 303.571);
--chart-3: oklch(0.27 0.016 302.787);
--chart-4: oklch(0.237 0.001 303.564);
--chart-5: oklch(0.275 0.043 301.243);
}