Cyclooxygenase for shadcn/ui

Cyclooxygenase is a shadcn/ui theme built around a pink primary color (#ae568e) with red accents (#ae5662). The light mode uses a neutral background (#ffffff). Dark mode keeps the pink primary (#ae568e) on a pink-tinted background (#0b0409).

Color palette

TokenLightDark
Background
#ffffffwhite
#0b0409black
Foreground
#0c0409black
#fbf9fasnow
Card
#ffffffwhite
#0b0409black
Card foreground
#0c0409black
#fbf9fasnow
Popover
#ffffffwhite
#0b0409black
Popover foreground
#0c0409black
#fbf9fasnow
Primary
#ae568epalevioletred
#ae568epalevioletred
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#a256aemediumorchid
#a256aemediumorchid
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#efdff1lavender
#1e0e20black
Muted foreground
#59535adimgray
#aba5acdarkgray
Accent
#ae5662indianred
#ae5662indianred
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#982d06saddlebrown
#f65f28tomato
Destructive foreground
#fdded3antiquewhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ae568epalevioletred
#ae568epalevioletred

Contrast

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

Light mode
Text on background20.25:1AAA
Text on card20.25:1AAA
Primary button4.64:1AA
Secondary button4.67:1AA
Muted text5.86:1AA
Accent4.86:1AA
Destructive6.11:1AA
Dark mode
Text on background19.34:1AAA
Text on card19.34:1AAA
Primary button4.64:1AA
Secondary button4.67:1AA
Muted text7.66:1AAA
Accent4.86:1AA
Destructive6.57:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.123 0.023 339.207);
  --muted: oklch(0.921 0.03 321.682);
  --muted-foreground: oklch(0.451 0.013 321.675);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.123 0.023 339.207);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.123 0.023 339.207);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.578 0.132 343.282);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.577 0.152 322.131);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.563 0.114 13.088);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.457 0.148 36.999);
  --destructive-foreground: oklch(0.924 0.038 41.047);
  --ring: oklch(0.578 0.132 343.282);
  --chart-1: oklch(0.578 0.132 343.282);
  --chart-2: oklch(0.577 0.152 322.131);
  --chart-3: oklch(0.563 0.114 13.088);
  --chart-4: oklch(0.602 0.143 322.108);
  --chart-5: oklch(0.578 0.143 343.662);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.022 339.16);
  --foreground: oklch(0.984 0.002 338.764);
  --muted: oklch(0.195 0.043 322.086);
  --muted-foreground: oklch(0.729 0.012 321.638);
  --popover: oklch(0.124 0.022 339.16);
  --popover-foreground: oklch(0.984 0.002 338.764);
  --card: oklch(0.124 0.022 339.16);
  --card-foreground: oklch(0.984 0.002 338.764);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.578 0.132 343.282);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.577 0.152 322.131);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.563 0.114 13.088);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.674 0.197 38.577);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.578 0.132 343.282);
  --chart-1: oklch(0.578 0.132 343.282);
  --chart-2: oklch(0.577 0.152 322.131);
  --chart-3: oklch(0.563 0.114 13.088);
  --chart-4: oklch(0.602 0.143 322.108);
  --chart-5: oklch(0.578 0.143 343.662);
}