Slip for shadcn/ui

Slip is a shadcn/ui theme built around a green primary color (#cddf58) with indigo accents (#6a58df). The light mode uses a neutral background (#fcfdf7). Dark mode keeps the green primary (#cddf58) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfdf7snow
#000000black
Foreground
#131505black
#f9f9f5whitesmoke
Card
#fbfcf3floralwhite
#030303black
Card foreground
#0f1104black
#fbfbf9snow
Popover
#fbfcf3floralwhite
#030303black
Popover foreground
#0f1104black
#fbfbf9snow
Primary
#cddf58darkkhaki
#cddf58darkkhaki
Primary foreground
#040401black
#040401black
Secondary
#6a58dfslateblue
#6a58dfslateblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#efeef7whitesmoke
#090811black
Muted foreground
#4d4d51darkslategray
#aeaeb2darkgray
Accent
#6a58dfslateblue
#6a58dfslateblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#ba490dsienna
#f17532tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cddf58darkkhaki
#cddf58darkkhaki

Contrast

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

Light mode
Text on background18.04:1AAA
Text on card18.39:1AAA
Primary button13.99:1AAA
Secondary button5.15:1AA
Muted text7.29:1AAA
Accent5.15:1AA
Destructive5.17:1AA
Dark mode
Text on background19.89:1AAA
Text on card19.95:1AAA
Primary button13.99:1AAA
Secondary button5.15:1AA
Muted text8.98:1AAA
Accent5.15:1AA
Destructive7.30:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.008 112.691);
  --foreground: oklch(0.187 0.03 115.29);
  --muted: oklch(0.952 0.012 292.307);
  --muted-foreground: oklch(0.421 0.008 292.194);
  --popover: oklch(0.987 0.012 112.766);
  --popover-foreground: oklch(0.169 0.027 114.826);
  --card: oklch(0.987 0.012 112.766);
  --card-foreground: oklch(0.169 0.027 114.826);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.865 0.159 116.255);
  --primary-foreground: oklch(0.105 0.017 113.791);
  --secondary: oklch(0.553 0.198 283.94);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.553 0.198 283.94);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.551 0.159 42.646);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.865 0.159 116.255);
  --chart-1: oklch(0.865 0.159 116.255);
  --chart-2: oklch(0.553 0.198 283.94);
  --chart-3: oklch(0.553 0.198 283.94);
  --chart-4: oklch(0.586 0.183 285.354);
  --chart-5: oklch(0.873 0.165 116.372);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.982 0.005 112.648);
  --muted: oklch(0.143 0.02 290.19);
  --muted-foreground: oklch(0.751 0.007 292.375);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.988 0.004 112.613);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.988 0.004 112.613);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.865 0.159 116.255);
  --primary-foreground: oklch(0.105 0.017 113.791);
  --secondary: oklch(0.553 0.198 283.94);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.553 0.198 283.94);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.697 0.171 45.667);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.865 0.159 116.255);
  --chart-1: oklch(0.865 0.159 116.255);
  --chart-2: oklch(0.553 0.198 283.94);
  --chart-3: oklch(0.553 0.198 283.94);
  --chart-4: oklch(0.586 0.183 285.354);
  --chart-5: oklch(0.873 0.165 116.372);
}