Moist for shadcn/ui

Moist is a shadcn/ui theme built around a vivid light green primary color (#9bf3b5) with vivid light purple accents (#f39bd9). The light mode uses a neutral background (#fbfefc). Dark mode keeps the vivid light green primary (#9bf3b5) on a neutral background (#020804).

Color palette

TokenLightDark
Background
#fbfefcwhite
#020804black
Foreground
#000000black
#f8fcf9mintcream
Card
#f8fcf9mintcream
#030c06black
Card foreground
#000000black
#fcfdfcwhite
Popover
#fbfefcwhite
#020804black
Popover foreground
#000000black
#f8fcf9mintcream
Primary
#9bf3b5palegreen
#9bf3b5palegreen
Primary foreground
#0a521fdarkgreen
#0a521fdarkgreen
Secondary
#f39bd9plum
#f39bd9plum
Secondary foreground
#520a3cindigo
#520a3cindigo
Muted
#e6dbe2gainsboro
#241921black
Muted foreground
#6a5c66dimgray
#a3959edarkgray
Accent
#f39bd9plum
#f39bd9plum
Accent foreground
#520a3cindigo
#520a3cindigo
Destructive
#a62c07firebrick
#e13c09orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9bf3b5palegreen
#9bf3b5palegreen

Contrast

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

Light mode
Text on background20.64:1AAA
Text on card20.29:1AAA
Primary button7.09:1AAA
Secondary button7.14:1AAA
Muted text4.67:1AA
Accent7.14:1AAA
Destructive7.00:1AAA
Dark mode
Text on background19.51:1AAA
Text on card19.42:1AAA
Primary button7.09:1AAA
Secondary button7.14:1AAA
Muted text5.93:1AA
Accent7.14:1AAA
Destructive4.32:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 155.807);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.902 0.015 336.177);
  --muted-foreground: oklch(0.493 0.023 336.733);
  --popover: oklch(0.994 0.003 155.807);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.987 0.006 155.745);
  --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.893 0.121 152.896);
  --primary-foreground: oklch(0.385 0.106 147.875);
  --secondary: oklch(0.796 0.131 338.731);
  --secondary-foreground: oklch(0.302 0.116 343.698);
  --accent: oklch(0.796 0.131 338.731);
  --accent-foreground: oklch(0.302 0.116 343.698);
  --destructive: oklch(0.482 0.164 35.134);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.893 0.121 152.896);
  --chart-1: oklch(0.893 0.121 152.896);
  --chart-2: oklch(0.796 0.131 338.731);
  --chart-3: oklch(0.796 0.131 338.731);
  --chart-4: oklch(0.822 0.112 338.27);
  --chart-5: oklch(0.895 0.126 152.784);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.02 155.375);
  --foreground: oklch(0.987 0.005 155.772);
  --muted: oklch(0.231 0.021 337.497);
  --muted-foreground: oklch(0.684 0.021 336.448);
  --popover: oklch(0.123 0.02 155.375);
  --popover-foreground: oklch(0.987 0.005 155.772);
  --card: oklch(0.142 0.023 155.177);
  --card-foreground: oklch(0.993 0.002 155.821);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.893 0.121 152.896);
  --primary-foreground: oklch(0.385 0.106 147.875);
  --secondary: oklch(0.796 0.131 338.731);
  --secondary-foreground: oklch(0.302 0.116 343.698);
  --accent: oklch(0.796 0.131 338.731);
  --accent-foreground: oklch(0.302 0.116 343.698);
  --destructive: oklch(0.601 0.208 34.717);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.893 0.121 152.896);
  --chart-1: oklch(0.893 0.121 152.896);
  --chart-2: oklch(0.796 0.131 338.731);
  --chart-3: oklch(0.796 0.131 338.731);
  --chart-4: oklch(0.822 0.112 338.27);
  --chart-5: oklch(0.895 0.126 152.784);
}