Slot for shadcn/ui

Slot is a shadcn/ui theme built around a light green primary color (#d3f4bd) with muted light green accents (#c8d1c2). The light mode uses a neutral background (#fcfefb). Dark mode keeps the light green primary (#d3f4bd) on a green-tinted background (#070c03).

Color palette

TokenLightDark
Background
#fcfefbwhite
#070c03black
Foreground
#040901black
#ffffffwhite
Card
#f9fcf8mintcream
#091004black
Card foreground
#020501black
#ffffffwhite
Popover
#f9fcf8mintcream
#091004black
Popover foreground
#020501black
#ffffffwhite
Primary
#d3f4bdpalegoldenrod
#d3f4bdpalegoldenrod
Primary foreground
#0b1604black
#0b1604black
Secondary
#d8dad7gainsboro
#30352cdarkslategray
Secondary foreground
#3f423ddarkslategray
#c8cec5silver
Muted
#e7ede3beige
#161c12black
Muted foreground
#61635fdimgray
#9ea09cdarkgray
Accent
#c8d1c2silver
#45543bdarkslategray
Accent foreground
#2f372adarkslategray
#dfe6dbgainsboro
Destructive
#d02106firebrick
#f94a2ftomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d3f4bdpalegoldenrod
#d3f4bdpalegoldenrod

Contrast

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

Light mode
Text on background19.79:1AAA
Text on card19.86:1AAA
Primary button15.46:1AAA
Secondary button7.27:1AAA
Muted text5.10:1AA
Accent7.84:1AAA
Destructive5.38:1AA
Dark mode
Text on background19.75:1AAA
Text on card19.29:1AAA
Primary button15.46:1AAA
Secondary button7.85:1AAA
Muted text6.57:1AA
Accent6.41:1AA
Destructive3.47:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 132.385);
  --foreground: oklch(0.129 0.028 130.387);
  --muted: oklch(0.939 0.016 132.483);
  --muted-foreground: oklch(0.496 0.007 132.46);
  --popover: oklch(0.988 0.007 132.411);
  --popover-foreground: oklch(0.103 0.022 130.387);
  --card: oklch(0.988 0.007 132.411);
  --card-foreground: oklch(0.103 0.022 130.387);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.93 0.08 133.05);
  --primary-foreground: oklch(0.183 0.04 133.039);
  --secondary: oklch(0.887 0.005 132.397);
  --secondary-foreground: oklch(0.376 0.009 132.549);
  --accent: oklch(0.849 0.023 132.561);
  --accent-foreground: oklch(0.326 0.026 132.988);
  --destructive: oklch(0.55 0.21 31.165);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.93 0.08 133.05);
  --chart-1: oklch(0.93 0.08 133.05);
  --chart-2: oklch(0.887 0.005 132.397);
  --chart-3: oklch(0.849 0.023 132.561);
  --chart-4: oklch(0.91 0.004 132.388);
  --chart-5: oklch(0.932 0.084 133.08);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.145 0.024 131.053);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.217 0.022 133.188);
  --muted-foreground: oklch(0.703 0.006 132.424);
  --popover: oklch(0.162 0.028 132.019);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.162 0.028 132.019);
  --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.93 0.08 133.05);
  --primary-foreground: oklch(0.183 0.04 133.039);
  --secondary: oklch(0.32 0.017 132.763);
  --secondary-foreground: oklch(0.845 0.015 132.489);
  --accent: oklch(0.424 0.043 133.184);
  --accent-foreground: oklch(0.916 0.015 132.485);
  --destructive: oklch(0.656 0.215 31.634);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.93 0.08 133.05);
  --chart-1: oklch(0.93 0.08 133.05);
  --chart-2: oklch(0.32 0.017 132.763);
  --chart-3: oklch(0.424 0.043 133.184);
  --chart-4: oklch(0.351 0.019 132.776);
  --chart-5: oklch(0.932 0.084 133.08);
}