Cormorant for shadcn/ui

Cormorant is a shadcn/ui theme built around a vivid teal primary color (#18bfae) with vivid red accents (#bf1828). The light mode uses a neutral background (#f8fcfc). Dark mode keeps the vivid teal primary (#18bfae) on a neutral background (#020403).

Color palette

TokenLightDark
Background
#f8fcfcmintcream
#020403black
Foreground
#000000black
#f8fcfbmintcream
Card
#f8fcfcmintcream
#020403black
Card foreground
#000000black
#f8fcfbmintcream
Popover
#f8fcfcmintcream
#020403black
Popover foreground
#000000black
#f8fcfbmintcream
Primary
#18bfaelightseagreen
#18bfaelightseagreen
Primary foreground
#010908black
#010908black
Secondary
#bf1828firebrick
#bf1828firebrick
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f1eeefwhitesmoke
#110e0eblack
Muted foreground
#646263dimgray
#9d9b9bdarkgray
Accent
#bf1828firebrick
#bf1828firebrick
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#760a0amaroon
#f04242tomato
Destructive foreground
#f9b8b8lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#18bfaelightseagreen
#18bfaelightseagreen

Contrast

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

Light mode
Text on background20.33:1AAA
Text on card20.33:1AAA
Primary button8.68:1AAA
Secondary button6.24:1AA
Muted text5.26:1AA
Accent6.24:1AA
Destructive6.92:1AA
Dark mode
Text on background19.93:1AAA
Text on card19.93:1AAA
Primary button8.68:1AAA
Secondary button6.24:1AA
Muted text6.95:1AA
Accent6.24:1AA
Destructive3.77:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.005 189.959);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.952 0.003 10.149);
  --muted-foreground: oklch(0.5 0.003 10.193);
  --popover: oklch(0.988 0.005 189.959);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.988 0.005 189.959);
  --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.723 0.125 183.674);
  --primary-foreground: oklch(0.128 0.018 189.111);
  --secondary: oklch(0.515 0.197 24.032);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.515 0.197 24.032);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.361 0.14 28.033);
  --destructive-foreground: oklch(0.843 0.076 18.775);
  --ring: oklch(0.723 0.125 183.674);
  --chart-1: oklch(0.723 0.125 183.674);
  --chart-2: oklch(0.515 0.197 24.032);
  --chart-3: oklch(0.515 0.197 24.032);
  --chart-4: oklch(0.542 0.208 24.142);
  --chart-5: oklch(0.732 0.127 183.478);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.008 189.498);
  --foreground: oklch(0.987 0.004 189.992);
  --muted: oklch(0.167 0.005 10.716);
  --muted-foreground: oklch(0.69 0.002 10.154);
  --popover: oklch(0.097 0.008 189.498);
  --popover-foreground: oklch(0.987 0.004 189.992);
  --card: oklch(0.097 0.008 189.498);
  --card-foreground: oklch(0.987 0.004 189.992);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.723 0.125 183.674);
  --primary-foreground: oklch(0.128 0.018 189.111);
  --secondary: oklch(0.515 0.197 24.032);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.515 0.197 24.032);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.636 0.21 25.487);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.723 0.125 183.674);
  --chart-1: oklch(0.723 0.125 183.674);
  --chart-2: oklch(0.515 0.197 24.032);
  --chart-3: oklch(0.515 0.197 24.032);
  --chart-4: oklch(0.542 0.208 24.142);
  --chart-5: oklch(0.732 0.127 183.478);
}