Slim for shadcn/ui

Slim is a shadcn/ui theme built around a muted teal primary color (#547d76) with muted red accents (#7d545b). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted teal primary (#547d76) on a teal-tinted background (#030c0a).

Color palette

TokenLightDark
Background
#ffffffwhite
#030c0ablack
Foreground
#010403black
#ffffffwhite
Card
#fcfcfcsnow
#04100eblack
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#04100eblack
Popover foreground
#000000black
#ffffffwhite
Primary
#547d76dimgray
#547d76dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#7d545bdimgray
#7d545bdimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f3edeewhitesmoke
#120c0dblack
Muted foreground
#534b4ddarkslategray
#b4acaddarkgray
Accent
#7d545bdimgray
#7d545bdimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#6b240bmaroon
#d54815chocolate
Destructive foreground
#f7c3b0lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#547d76dimgray
#547d76dimgray

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background20.58:1AAA
Text on card20.54:1AAA
Primary button4.57:1AA
Secondary button6.38:1AA
Muted text7.30:1AAA
Accent6.38:1AA
Destructive7.11:1AAA
Dark mode
Text on background19.78:1AAA
Text on card19.33:1AAA
Primary button4.57:1AA
Secondary button6.38:1AA
Muted text8.69:1AAA
Accent6.38:1AA
Destructive4.38:1AA Large

CSS variables

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.099 0.011 184.087);
  --muted: oklch(0.95 0.006 4.49);
  --muted-foreground: oklch(0.421 0.011 4.984);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.558 0.048 181.75);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.493 0.057 7.315);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.493 0.057 7.315);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.365 0.107 38.536);
  --destructive-foreground: oklch(0.859 0.065 40.914);
  --ring: oklch(0.558 0.048 181.75);
  --chart-1: oklch(0.558 0.048 181.75);
  --chart-2: oklch(0.493 0.057 7.315);
  --chart-3: oklch(0.493 0.057 7.315);
  --chart-4: oklch(0.518 0.06 7.342);
  --chart-5: oklch(0.565 0.054 181.389);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.143 0.016 183.426);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.164 0.01 5.928);
  --muted-foreground: oklch(0.751 0.009 4.638);
  --popover: oklch(0.16 0.019 181.911);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.16 0.019 181.911);
  --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.558 0.048 181.75);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.493 0.057 7.315);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.493 0.057 7.315);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.595 0.186 37.634);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.558 0.048 181.75);
  --chart-1: oklch(0.558 0.048 181.75);
  --chart-2: oklch(0.493 0.057 7.315);
  --chart-3: oklch(0.493 0.057 7.315);
  --chart-4: oklch(0.518 0.06 7.342);
  --chart-5: oklch(0.565 0.054 181.389);
}