Slim is a shadcn/ui theme built around a deep indigo primary color (#111346) with muted light indigo accents (#dddde4). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep indigo primary (#111346) on a neutral background (#020208).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020208black |
| Foreground | #020208black | #fbfbfdghostwhite |
| Card | #ffffffwhite | #020208black |
| Card foreground | #020208black | #fbfbfdghostwhite |
| Popover | #ffffffwhite | #020208black |
| Popover foreground | #020208black | #fbfbfdghostwhite |
| Primary | #111346midnightblue | #111346midnightblue |
| Primary foreground | #a1a3e8lightsteelblue | #a1a3e8lightsteelblue |
| Secondary | #dddde4gainsboro | #1b1c27black |
| Secondary foreground | #40404fdarkslategray | #aeafc7silver |
| Muted | #d7d8e4gainsboro | #1b1b28black |
| Muted foreground | #3c3c49darkslategray | #b6b7c3silver |
| Accent | #dddde4gainsboro | #1b1c27black |
| Accent foreground | #40404fdarkslategray | #aeafc7silver |
| Destructive | #a0230dfirebrick | #ec3818orangered |
| Destructive foreground | #fde7e3mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #111346midnightblue | #111346midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.69:1 | AAA |
| Text on card | 20.69:1 | AAA |
| Primary button | 7.41:1 | AAA |
| Secondary button | 7.53:1 | AAA |
| Muted text | 7.65:1 | AAA |
| Accent | 7.53:1 | AAA |
| Destructive | 6.44:1 | AA |
| Text on background | 19.97:1 | AAA |
| Text on card | 19.97:1 | AAA |
| Primary button | 7.41:1 | AAA |
| Secondary button | 7.87:1 | AAA |
| Muted text | 8.56:1 | AAA |
| Accent | 7.87:1 | AAA |
| Destructive | 4.07:1 | AA Large |
Paste this into your globals.css to use Slim in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.093 0.023 278.583);
--muted: oklch(0.885 0.017 284.454);
--muted-foreground: oklch(0.361 0.022 283.678);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.093 0.023 278.583);
--card: oklch(1 0 180);
--card-foreground: oklch(0.093 0.023 278.583);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.224 0.094 274.374);
--primary-foreground: oklch(0.74 0.1 282.15);
--secondary: oklch(0.9 0.009 284.634);
--secondary-foreground: oklch(0.377 0.026 283.531);
--accent: oklch(0.9 0.009 284.634);
--accent-foreground: oklch(0.377 0.026 283.531);
--destructive: oklch(0.463 0.164 32.146);
--destructive-foreground: oklch(0.943 0.025 29.579);
--ring: oklch(0.224 0.094 274.374);
--chart-1: oklch(0.224 0.094 274.374);
--chart-2: oklch(0.9 0.009 284.634);
--chart-3: oklch(0.9 0.009 284.634);
--chart-4: oklch(0.925 0.007 284.682);
--chart-5: oklch(0.222 0.098 273.633);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.02 279.717);
--foreground: oklch(0.99 0.003 284.761);
--muted: oklch(0.228 0.025 282.706);
--muted-foreground: oklch(0.781 0.018 284.394);
--popover: oklch(0.096 0.02 279.717);
--popover-foreground: oklch(0.99 0.003 284.761);
--card: oklch(0.096 0.02 279.717);
--card-foreground: oklch(0.99 0.003 284.761);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.224 0.094 274.374);
--primary-foreground: oklch(0.74 0.1 282.15);
--secondary: oklch(0.23 0.022 282.956);
--secondary-foreground: oklch(0.76 0.034 283.987);
--accent: oklch(0.23 0.022 282.956);
--accent-foreground: oklch(0.76 0.034 283.987);
--destructive: oklch(0.618 0.22 32.123);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.224 0.094 274.374);
--chart-1: oklch(0.224 0.094 274.374);
--chart-2: oklch(0.23 0.022 282.956);
--chart-3: oklch(0.23 0.022 282.956);
--chart-4: oklch(0.258 0.027 282.824);
--chart-5: oklch(0.222 0.098 273.633);
}