Slim for shadcn/ui

Slim is a shadcn/ui theme built around a deep red primary color (#190606) with deep indigo accents (#060619). The light mode uses a neutral background (#fefbfb). Dark mode keeps the deep red primary (#190606) on a neutral background (#070303).

Color palette

TokenLightDark
Background
#fefbfbsnow
#070303black
Foreground
#160404black
#f8f6f6whitesmoke
Card
#fdf7f7snow
#0b0504black
Card foreground
#120303black
#fbf9f9snow
Popover
#fdf7f7snow
#0b0504black
Popover foreground
#120303black
#fbf9f9snow
Primary
#190606black
#190606black
Primary foreground
#df7572lightcoral
#df7572lightcoral
Secondary
#061906black
#061906black
Secondary foreground
#2bbf30limegreen
#2bbf30limegreen
Muted
#eff5f0whitesmoke
#0a100ablack
Muted foreground
#606661dimgray
#999f99darkgray
Accent
#060619black
#060619black
Accent foreground
#c6c5f2lightsteelblue
#c6c5f2lightsteelblue
Destructive
#be0d04firebrick
#fa2014red
Destructive foreground
#fff5f5lavenderblush
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#190606black
#190606black

Contrast

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

Light mode
Text on background19.37:1AAA
Text on card19.05:1AAA
Primary button6.46:1AA
Secondary button7.48:1AAA
Muted text5.32:1AA
Accent12.10:1AAA
Destructive6.04:1AA
Dark mode
Text on background19.05:1AAA
Text on card19.32:1AAA
Primary button6.46:1AA
Secondary button7.48:1AAA
Muted text7.13:1AAA
Accent12.10:1AAA
Destructive3.97:1AA Large

CSS variables

Paste this into your globals.css to use Slim in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 19.651);
  --foreground: oklch(0.143 0.035 25.711);
  --muted: oklch(0.965 0.01 146.453);
  --muted-foreground: oklch(0.505 0.012 146.339);
  --popover: oklch(0.981 0.007 19.699);
  --popover-foreground: oklch(0.13 0.031 25.673);
  --card: oklch(0.981 0.007 19.699);
  --card-foreground: oklch(0.13 0.031 25.673);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.157 0.035 24.483);
  --primary-foreground: oklch(0.683 0.132 23.191);
  --secondary: oklch(0.191 0.045 144.321);
  --secondary-foreground: oklch(0.704 0.216 143.186);
  --accent: oklch(0.136 0.042 281.095);
  --accent-foreground: oklch(0.839 0.062 286.496);
  --destructive: oklch(0.507 0.203 29.619);
  --destructive-foreground: oklch(0.979 0.01 21.02);
  --ring: oklch(0.157 0.035 24.483);
  --chart-1: oklch(0.157 0.035 24.483);
  --chart-2: oklch(0.191 0.045 144.321);
  --chart-3: oklch(0.136 0.042 281.095);
  --chart-4: oklch(0.236 0.061 143.914);
  --chart-5: oklch(0.156 0.036 24.892);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.107 0.013 22.388);
  --foreground: oklch(0.976 0.002 19.635);
  --muted: oklch(0.163 0.015 145.707);
  --muted-foreground: oklch(0.694 0.011 146.406);
  --popover: oklch(0.123 0.015 22.385);
  --popover-foreground: oklch(0.984 0.001 19.625);
  --card: oklch(0.123 0.015 22.385);
  --card-foreground: oklch(0.984 0.001 19.625);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.157 0.035 24.483);
  --primary-foreground: oklch(0.683 0.132 23.191);
  --secondary: oklch(0.191 0.045 144.321);
  --secondary-foreground: oklch(0.704 0.216 143.186);
  --accent: oklch(0.136 0.042 281.095);
  --accent-foreground: oklch(0.839 0.062 286.496);
  --destructive: oklch(0.628 0.245 29.408);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.157 0.035 24.483);
  --chart-1: oklch(0.157 0.035 24.483);
  --chart-2: oklch(0.191 0.045 144.321);
  --chart-3: oklch(0.136 0.042 281.095);
  --chart-4: oklch(0.236 0.061 143.914);
  --chart-5: oklch(0.156 0.036 24.892);
}