Moai for shadcn/ui

Moai is a shadcn/ui theme built around a teal primary color (#489379) with pink accents (#934862). The light mode uses a neutral background (#f6fdfb). Dark mode keeps the teal primary (#489379) on a neutral background (#020303).

Color palette

TokenLightDark
Background
#f6fdfbmintcream
#020303black
Foreground
#000000black
#fcfdfdwhite
Card
#f6fdfbmintcream
#020303black
Card foreground
#000000black
#fcfdfdwhite
Popover
#f6fdfbmintcream
#020303black
Popover foreground
#000000black
#fcfdfdwhite
Primary
#489379mediumseagreen
#489379mediumseagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#934862dimgray
#934862dimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f1dfe5mistyrose
#200e14black
Muted foreground
#615157dimgray
#ae9ea3darkgray
Accent
#934862dimgray
#934862dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#dc0f04red
#fa2419orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#489379mediumseagreen
#489379mediumseagreen

Contrast

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

Light mode
Text on background20.43:1AAA
Text on card20.43:1AAA
Primary button3.66:1AA Large
Secondary button6.26:1AA
Muted text5.83:1AA
Accent6.26:1AA
Destructive5.10:1AA
Dark mode
Text on background20.24:1AAA
Text on card20.24:1AAA
Primary button3.66:1AA Large
Secondary button6.26:1AA
Muted text7.24:1AAA
Accent6.26:1AA
Destructive3.92:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.008 173.331);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.92 0.021 354.212);
  --muted-foreground: oklch(0.454 0.023 354.984);
  --popover: oklch(0.989 0.008 173.331);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.989 0.008 173.331);
  --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.607 0.085 168.279);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.504 0.104 359.336);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.504 0.104 359.336);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.565 0.227 29.574);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.607 0.085 168.279);
  --chart-1: oklch(0.607 0.085 168.279);
  --chart-2: oklch(0.504 0.104 359.336);
  --chart-3: oklch(0.504 0.104 359.336);
  --chart-4: oklch(0.528 0.11 359.383);
  --chart-5: oklch(0.615 0.091 167.822);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.007 173.732);
  --foreground: oklch(0.994 0.002 173.512);
  --muted: oklch(0.193 0.031 357.997);
  --muted-foreground: oklch(0.714 0.02 354.38);
  --popover: oklch(0.096 0.007 173.732);
  --popover-foreground: oklch(0.994 0.002 173.512);
  --card: oklch(0.096 0.007 173.732);
  --card-foreground: oklch(0.994 0.002 173.512);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.607 0.085 168.279);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.504 0.104 359.336);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.504 0.104 359.336);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.63 0.243 29.314);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.607 0.085 168.279);
  --chart-1: oklch(0.607 0.085 168.279);
  --chart-2: oklch(0.504 0.104 359.336);
  --chart-3: oklch(0.504 0.104 359.336);
  --chart-4: oklch(0.528 0.11 359.383);
  --chart-5: oklch(0.615 0.091 167.822);
}