Hip for shadcn/ui

Hip is a shadcn/ui theme built around a light green primary color (#f3fcf5) with light purple accents (#fcf3fa). The light mode uses a neutral background (#f7fdf8). Dark mode keeps the light green primary (#f3fcf5) on a green-tinted background (#060e07).

Color palette

TokenLightDark
Background
#f7fdf8mintcream
#060e07black
Foreground
#010401black
#f8fcf9mintcream
Card
#f2fcf4honeydew
#081209black
Card foreground
#000000black
#fcfdfcwhite
Popover
#f7fdf8mintcream
#060e07black
Popover foreground
#010401black
#f8fcf9mintcream
Primary
#f3fcf5mintcream
#f3fcf5mintcream
Primary foreground
#14431bdarkgreen
#14431bdarkgreen
Secondary
#fcf3falavenderblush
#fcf3falavenderblush
Secondary foreground
#922a81darkmagenta
#922a81darkmagenta
Muted
#dfd7degainsboro
#282026darkslategray
Muted foreground
#504e50darkslategray
#b1afb0darkgray
Accent
#fcf3falavenderblush
#fcf3falavenderblush
Accent foreground
#922a81darkmagenta
#922a81darkmagenta
Destructive
#8d0707darkred
#f41f1fcrimson
Destructive foreground
#fcc9c9pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f3fcf5mintcream
#f3fcf5mintcream

Contrast

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

Light mode
Text on background19.98:1AAA
Text on card20.06:1AAA
Primary button10.81:1AAA
Secondary button6.73:1AA
Muted text5.87:1AA
Accent6.73:1AA
Destructive6.61:1AA
Dark mode
Text on background18.85:1AAA
Text on card18.72:1AAA
Primary button10.81:1AAA
Secondary button6.73:1AA
Muted text7.28:1AAA
Accent6.73:1AA
Destructive4.13:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.01 150.681);
  --foreground: oklch(0.098 0.019 149.667);
  --muted: oklch(0.888 0.012 331.007);
  --muted-foreground: oklch(0.427 0.003 330.915);
  --popover: oklch(0.988 0.01 150.681);
  --popover-foreground: oklch(0.098 0.019 149.667);
  --card: oklch(0.982 0.015 150.609);
  --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.982 0.013 150.642);
  --primary-foreground: oklch(0.341 0.084 146.454);
  --secondary: oklch(0.973 0.013 330.999);
  --secondary-foreground: oklch(0.477 0.169 335.376);
  --accent: oklch(0.973 0.013 330.999);
  --accent-foreground: oklch(0.477 0.169 335.376);
  --destructive: oklch(0.408 0.163 28.639);
  --destructive-foreground: oklch(0.882 0.058 18.315);
  --ring: oklch(0.982 0.013 150.642);
  --chart-1: oklch(0.982 0.013 150.642);
  --chart-2: oklch(0.973 0.013 330.999);
  --chart-3: oklch(0.973 0.013 330.999);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.982 0.013 150.632);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.154 0.021 149.667);
  --foreground: oklch(0.987 0.006 150.744);
  --muted: oklch(0.254 0.017 331.685);
  --muted-foreground: oklch(0.756 0.003 330.867);
  --popover: oklch(0.154 0.021 149.667);
  --popover-foreground: oklch(0.987 0.006 150.744);
  --card: oklch(0.168 0.024 149.05);
  --card-foreground: oklch(0.993 0.003 150.783);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.982 0.013 150.642);
  --primary-foreground: oklch(0.341 0.084 146.454);
  --secondary: oklch(0.973 0.013 330.999);
  --secondary-foreground: oklch(0.477 0.169 335.376);
  --accent: oklch(0.973 0.013 330.999);
  --accent-foreground: oklch(0.477 0.169 335.376);
  --destructive: oklch(0.618 0.24 28.1);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.982 0.013 150.642);
  --chart-1: oklch(0.982 0.013 150.642);
  --chart-2: oklch(0.973 0.013 330.999);
  --chart-3: oklch(0.973 0.013 330.999);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.982 0.013 150.632);
}