Comment for shadcn/ui

Comment is a shadcn/ui theme built around a vivid deep pink primary color (#2b0314) with vivid deep blue accents (#03142b). The light mode uses a neutral background (#fdf7f9). Dark mode keeps the vivid deep pink primary (#2b0314) on a neutral background (#080205).

Color palette

TokenLightDark
Background
#fdf7f9snow
#080205black
Foreground
#16030cblack
#fdfcfcsnow
Card
#fdf7f9snow
#080205black
Card foreground
#16030cblack
#fdfcfcsnow
Popover
#fdf7f9snow
#080205black
Popover foreground
#16030cblack
#fdfcfcsnow
Primary
#2b0314black
#2b0314black
Primary foreground
#f66aa7hotpink
#f66aa7hotpink
Secondary
#142b03black
#142b03black
Secondary foreground
#6eeb0flawngreen
#6eeb0flawngreen
Muted
#e2e9dcgainsboro
#1b2316black
Muted foreground
#4d4d4ddarkslategray
#b3b3b3darkgray
Accent
#03142bblack
#03142bblack
Accent foreground
#6aa7f6cornflowerblue
#6aa7f6cornflowerblue
Destructive
#7d2507saddlebrown
#f1470eorangered
Destructive foreground
#fbcbbcpeachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2b0314black
#2b0314black

Contrast

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

Light mode
Text on background18.82:1AAA
Text on card18.82:1AAA
Primary button6.69:1AA
Secondary button9.82:1AAA
Muted text6.83:1AA
Accent7.42:1AAA
Destructive6.70:1AA
Dark mode
Text on background20.07:1AAA
Text on card20.07:1AAA
Primary button6.69:1AA
Secondary button9.82:1AAA
Muted text7.74:1AAA
Accent7.42:1AAA
Destructive3.72:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.008 348.959);
  --foreground: oklch(0.145 0.04 352.882);
  --muted: oklch(0.926 0.019 131.264);
  --muted-foreground: oklch(0.418 0 173.29);
  --popover: oklch(0.981 0.008 348.959);
  --popover-foreground: oklch(0.145 0.04 352.882);
  --card: oklch(0.981 0.008 348.959);
  --card-foreground: oklch(0.145 0.04 352.882);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.194 0.07 358.356);
  --primary-foreground: oklch(0.712 0.181 355.582);
  --secondary: oklch(0.261 0.071 134.42);
  --secondary-foreground: oklch(0.834 0.25 136.925);
  --accent: oklch(0.192 0.053 254.45);
  --accent-foreground: oklch(0.72 0.132 255.647);
  --destructive: oklch(0.399 0.128 36.715);
  --destructive-foreground: oklch(0.881 0.059 39.251);
  --ring: oklch(0.194 0.07 358.356);
  --chart-1: oklch(0.194 0.07 358.356);
  --chart-2: oklch(0.261 0.071 134.42);
  --chart-3: oklch(0.192 0.053 254.45);
  --chart-4: oklch(0.311 0.087 135.179);
  --chart-5: oklch(0.194 0.073 358.596);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.105 0.022 348.368);
  --foreground: oklch(0.991 0.002 348.797);
  --muted: oklch(0.242 0.026 132.103);
  --muted-foreground: oklch(0.765 0 172.405);
  --popover: oklch(0.105 0.022 348.368);
  --popover-foreground: oklch(0.991 0.002 348.797);
  --card: oklch(0.105 0.022 348.368);
  --card-foreground: oklch(0.991 0.002 348.797);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.194 0.07 358.356);
  --primary-foreground: oklch(0.712 0.181 355.582);
  --secondary: oklch(0.261 0.071 134.42);
  --secondary-foreground: oklch(0.834 0.25 136.925);
  --accent: oklch(0.192 0.053 254.45);
  --accent-foreground: oklch(0.72 0.132 255.647);
  --destructive: oklch(0.639 0.214 35.771);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.194 0.07 358.356);
  --chart-1: oklch(0.194 0.07 358.356);
  --chart-2: oklch(0.261 0.071 134.42);
  --chart-3: oklch(0.192 0.053 254.45);
  --chart-4: oklch(0.311 0.087 135.179);
  --chart-5: oklch(0.194 0.073 358.596);
}