Slim is a shadcn/ui theme built around a muted yellow primary color (#a5a269) with muted green accents (#8aa569). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted yellow primary (#a5a269) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #121102black | #fdfdfcwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #121102black | #fdfdfcwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #121102black | #fdfdfcwhite |
| Primary | #a5a269darkkhaki | #a5a269darkkhaki |
| Primary foreground | #000000black | #000000black |
| Secondary | #a58469gray | #a58469gray |
| Secondary foreground | #000000black | #000000black |
| Muted | #e7ddd5gainsboro | #2a2018black |
| Muted foreground | #636363dimgray | #9c9c9cdarkgray |
| Accent | #8aa569gray | #8aa569gray |
| Accent foreground | #000000black | #000000black |
| Destructive | #9b0603darkred | #fa0e0ared |
| Destructive foreground | #fed3d2pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a5a269darkkhaki | #a5a269darkkhaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.97:1 | AAA |
| Text on card | 18.97:1 | AAA |
| Primary button | 7.98:1 | AAA |
| Secondary button | 6.11:1 | AA |
| Muted text | 4.48:1 | AA Large |
| Accent | 7.67:1 | AAA |
| Destructive | 6.39:1 | AA |
| Text on background | 20.63:1 | AAA |
| Text on card | 20.63:1 | AAA |
| Primary button | 7.98:1 | AAA |
| Secondary button | 6.11:1 | AA |
| Muted text | 5.78:1 | AA |
| Accent | 7.67:1 | AAA |
| Destructive | 4.09: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.176 0.032 106.873);
--muted: oklch(0.903 0.016 61.958);
--muted-foreground: oklch(0.501 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.176 0.032 106.873);
--card: oklch(1 0 180);
--card-foreground: oklch(0.176 0.032 106.873);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.701 0.077 105.632);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.638 0.056 60.849);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.687 0.088 128.242);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.435 0.175 29.233);
--destructive-foreground: oklch(0.903 0.049 19.24);
--ring: oklch(0.701 0.077 105.632);
--chart-1: oklch(0.701 0.077 105.632);
--chart-2: oklch(0.638 0.056 60.849);
--chart-3: oklch(0.687 0.088 128.242);
--chart-4: oklch(0.662 0.052 61.023);
--chart-5: oklch(0.711 0.085 105.754);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.001 103.989);
--muted: oklch(0.254 0.022 60.882);
--muted-foreground: oklch(0.691 0 180);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.993 0.001 103.989);
--card: oklch(0 0 0);
--card-foreground: oklch(0.993 0.001 103.989);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.701 0.077 105.632);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.638 0.056 60.849);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.687 0.088 128.242);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.621 0.251 29.118);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.701 0.077 105.632);
--chart-1: oklch(0.701 0.077 105.632);
--chart-2: oklch(0.638 0.056 60.849);
--chart-3: oklch(0.687 0.088 128.242);
--chart-4: oklch(0.662 0.052 61.023);
--chart-5: oklch(0.711 0.085 105.754);
}