Slim is a shadcn/ui theme built around a vivid indigo primary color (#734dff) with vivid violet accents (#cc4dff). The light mode uses a neutral background (#f8f7fd). Dark mode keeps the vivid indigo primary (#734dff) on a neutral background (#040307).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f7fdghostwhite | #040307black |
| Foreground | #030208black | #ffffffwhite |
| Card | #f8f7fdghostwhite | #040307black |
| Card foreground | #030208black | #ffffffwhite |
| Popover | #f8f7fdghostwhite | #040307black |
| Popover foreground | #030208black | #ffffffwhite |
| Primary | #734dffmediumslateblue | #734dffmediumslateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #4d7fffcornflowerblue | #4d7fffcornflowerblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d2d7e5gainsboro | #1a202dblack |
| Muted foreground | #505153darkslategray | #acadafdarkgray |
| Accent | #cc4dffmediumorchid | #cc4dffmediumorchid |
| Accent foreground | #000000black | #000000black |
| Destructive | #ac410csaddlebrown | #ef641fchocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #734dffmediumslateblue | #734dffmediumslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.36:1 | AAA |
| Text on card | 19.36:1 | AAA |
| Primary button | 4.97:1 | AA |
| Secondary button | 3.62:1 | AA Large |
| Muted text | 5.53:1 | AA |
| Accent | 6.07:1 | AA |
| Destructive | 5.97:1 | AA |
| Text on background | 20.57:1 | AAA |
| Text on card | 20.57:1 | AAA |
| Primary button | 4.97:1 | AA |
| Secondary button | 3.62:1 | AA Large |
| Muted text | 7.27:1 | AAA |
| Accent | 6.07:1 | AA |
| Destructive | 6.54:1 | AA |
Paste this into your globals.css to use Slim in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.978 0.009 296.17);
--foreground: oklch(0.094 0.026 295.331);
--muted: oklch(0.88 0.019 268.626);
--muted-foreground: oklch(0.435 0.004 268.725);
--popover: oklch(0.978 0.009 296.17);
--popover-foreground: oklch(0.094 0.026 295.331);
--card: oklch(0.978 0.009 296.17);
--card-foreground: oklch(0.094 0.026 295.331);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.57 0.248 285.372);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.63 0.198 264.975);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.666 0.261 314.542);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.516 0.151 41.583);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.57 0.248 285.372);
--chart-1: oklch(0.57 0.248 285.372);
--chart-2: oklch(0.63 0.198 264.975);
--chart-3: oklch(0.666 0.261 314.542);
--chart-4: oklch(0.659 0.181 265.501);
--chart-5: oklch(0.568 0.254 284.875);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.102 0.016 295.775);
--foreground: oklch(1 0 180);
--muted: oklch(0.243 0.027 267.7);
--muted-foreground: oklch(0.747 0.003 268.758);
--popover: oklch(0.102 0.016 295.775);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.102 0.016 295.775);
--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.57 0.248 285.372);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.63 0.198 264.975);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.666 0.261 314.542);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.671 0.187 42.617);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.57 0.248 285.372);
--chart-1: oklch(0.57 0.248 285.372);
--chart-2: oklch(0.63 0.198 264.975);
--chart-3: oklch(0.666 0.261 314.542);
--chart-4: oklch(0.659 0.181 265.501);
--chart-5: oklch(0.568 0.254 284.875);
}