Hip for shadcn/ui

Hip is a shadcn/ui theme built around a teal primary color (#8be9c5) with orange accents (#e9c58b). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#8be9c5) on a neutral background (#020403).

Color palette

TokenLightDark
Background
#ffffffwhite
#020403black
Foreground
#05100bblack
#f9fbfamintcream
Card
#ffffffwhite
#020403black
Card foreground
#05100bblack
#f9fbfamintcream
Popover
#ffffffwhite
#020403black
Popover foreground
#05100bblack
#f9fbfamintcream
Primary
#8be9c5aquamarine
#8be9c5aquamarine
Primary foreground
#0b3826darkgreen
#0b3826darkgreen
Secondary
#c58be9plum
#c58be9plum
Secondary foreground
#260b38midnightblue
#260b38midnightblue
Muted
#e0d5e7gainsboro
#23182ablack
Muted foreground
#685e6edimgray
#9b91a1darkgray
Accent
#e9c58bburlywood
#e9c58bburlywood
Accent foreground
#38260bblack
#38260bblack
Destructive
#d25314chocolate
#db5714chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8be9c5aquamarine
#8be9c5aquamarine

Contrast

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

Light mode
Text on background19.34:1AAA
Text on card19.34:1AAA
Primary button9.05:1AAA
Secondary button6.96:1AA
Muted text4.33:1AA Large
Accent8.84:1AAA
Destructive4.21:1AA Large
Dark mode
Text on background19.83:1AAA
Text on card19.83:1AAA
Primary button9.05:1AAA
Secondary button6.96:1AA
Muted text5.62:1AA
Accent8.84:1AAA
Destructive3.89:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.159 0.02 169.276);
  --muted: oklch(0.886 0.028 312.771);
  --muted-foreground: oklch(0.497 0.028 312.599);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.159 0.02 169.276);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.159 0.02 169.276);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.866 0.104 167.42);
  --primary-foreground: oklch(0.304 0.058 163.205);
  --secondary: oklch(0.729 0.144 311.568);
  --secondary-foreground: oklch(0.221 0.085 309.337);
  --accent: oklch(0.841 0.085 79.076);
  --accent-foreground: oklch(0.285 0.049 76.209);
  --destructive: oklch(0.602 0.174 41.87);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.866 0.104 167.42);
  --chart-1: oklch(0.866 0.104 167.42);
  --chart-2: oklch(0.729 0.144 311.568);
  --chart-3: oklch(0.841 0.085 79.076);
  --chart-4: oklch(0.758 0.128 311.802);
  --chart-5: oklch(0.87 0.107 167.238);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.009 171.79);
  --foreground: oklch(0.987 0.003 171.497);
  --muted: oklch(0.232 0.038 311.826);
  --muted-foreground: oklch(0.67 0.026 312.719);
  --popover: oklch(0.097 0.009 171.79);
  --popover-foreground: oklch(0.987 0.003 171.497);
  --card: oklch(0.097 0.009 171.79);
  --card-foreground: oklch(0.987 0.003 171.497);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.866 0.104 167.42);
  --primary-foreground: oklch(0.304 0.058 163.205);
  --secondary: oklch(0.729 0.144 311.568);
  --secondary-foreground: oklch(0.221 0.085 309.337);
  --accent: oklch(0.841 0.085 79.076);
  --accent-foreground: oklch(0.285 0.049 76.209);
  --destructive: oklch(0.622 0.18 41.805);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.866 0.104 167.42);
  --chart-1: oklch(0.866 0.104 167.42);
  --chart-2: oklch(0.729 0.144 311.568);
  --chart-3: oklch(0.841 0.085 79.076);
  --chart-4: oklch(0.758 0.128 311.802);
  --chart-5: oklch(0.87 0.107 167.238);
}