Mini-skirt for shadcn/ui

Mini-skirt is a shadcn/ui theme built around a green primary color (#88e2a8) with teal accents (#88e2d5). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#88e2a8) on a green-tinted background (#041008).

Color palette

TokenLightDark
Background
#ffffffwhite
#041008black
Foreground
#030d06black
#ffffffwhite
Card
#fcfcfcsnow
#06140bblack
Card foreground
#020804black
#ffffffwhite
Popover
#ffffffwhite
#041008black
Popover foreground
#030d06black
#ffffffwhite
Primary
#88e2a8lightgreen
#88e2a8lightgreen
Primary foreground
#0b2d17black
#0b2d17black
Secondary
#95e288lightgreen
#95e288lightgreen
Secondary foreground
#102d0bblack
#102d0bblack
Muted
#e5ede3beige
#141c12black
Muted foreground
#455143darkslategray
#b0bcaedarkgray
Accent
#88e2d5skyblue
#88e2d5skyblue
Accent foreground
#0b2d28black
#0b2d28black
Destructive
#8f3704saddlebrown
#df5607chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#88e2a8lightgreen
#88e2a8lightgreen

Contrast

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

Light mode
Text on background19.73:1AAA
Text on card19.77:1AAA
Primary button9.63:1AAA
Secondary button9.65:1AAA
Muted text6.97:1AA
Accent9.78:1AAA
Destructive7.68:1AAA
Dark mode
Text on background19.38:1AAA
Text on card18.89:1AAA
Primary button9.63:1AAA
Secondary button9.65:1AAA
Muted text8.87:1AAA
Accent9.78:1AAA
Destructive3.84:1AA Large

CSS variables

Paste this into your globals.css to use Mini-skirt in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.143 0.024 157.311);
  --muted: oklch(0.937 0.015 141.031);
  --muted-foreground: oklch(0.42 0.029 140.917);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.143 0.024 157.311);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.124 0.021 157.651);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.841 0.12 154.447);
  --primary-foreground: oklch(0.266 0.057 151.883);
  --secondary: oklch(0.842 0.143 140.747);
  --secondary-foreground: oklch(0.266 0.068 140.789);
  --accent: oklch(0.853 0.089 183.552);
  --accent-foreground: oklch(0.271 0.04 181.525);
  --destructive: oklch(0.456 0.131 43.485);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.841 0.12 154.447);
  --chart-1: oklch(0.841 0.12 154.447);
  --chart-2: oklch(0.842 0.143 140.747);
  --chart-3: oklch(0.853 0.089 183.552);
  --chart-4: oklch(0.857 0.129 140.77);
  --chart-5: oklch(0.845 0.126 154.275);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.158 0.024 156.328);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.213 0.021 140.856);
  --muted-foreground: oklch(0.783 0.025 140.996);
  --popover: oklch(0.158 0.024 156.328);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.174 0.029 154.914);
  --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.841 0.12 154.447);
  --primary-foreground: oklch(0.266 0.057 151.883);
  --secondary: oklch(0.842 0.143 140.747);
  --secondary-foreground: oklch(0.266 0.068 140.789);
  --accent: oklch(0.853 0.089 183.552);
  --accent-foreground: oklch(0.271 0.04 181.525);
  --destructive: oklch(0.625 0.185 42.292);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.841 0.12 154.447);
  --chart-1: oklch(0.841 0.12 154.447);
  --chart-2: oklch(0.842 0.143 140.747);
  --chart-3: oklch(0.853 0.089 183.552);
  --chart-4: oklch(0.857 0.129 140.77);
  --chart-5: oklch(0.845 0.126 154.275);
}