Comment for shadcn/ui

Comment is a shadcn/ui theme built around an indigo primary color (#6156a4) with green accents (#56a461). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the indigo primary (#6156a4) on a neutral background (#010104).

Color palette

TokenLightDark
Background
#f8f8fcghostwhite
#010104black
Foreground
#04030dblack
#ffffffwhite
Card
#f8f8fcghostwhite
#010104black
Card foreground
#04030dblack
#ffffffwhite
Popover
#f8f8fcghostwhite
#010104black
Popover foreground
#04030dblack
#ffffffwhite
Primary
#6156a4rebeccapurple
#6156a4rebeccapurple
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#a46156indianred
#a46156indianred
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ddd6d5gainsboro
#2a2322darkslategray
Muted foreground
#534c4bdarkslategray
#b4adacdarkgray
Accent
#56a461mediumseagreen
#56a461mediumseagreen
Accent foreground
#000000black
#000000black
Destructive
#7c2603saddlebrown
#fa682etomato
Destructive foreground
#fdc9b4peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6156a4rebeccapurple
#6156a4rebeccapurple

Contrast

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

Light mode
Text on background19.31:1AAA
Text on card19.31:1AAA
Primary button6.22:1AA
Secondary button4.77:1AA
Muted text5.84:1AA
Accent6.85:1AA
Destructive6.64:1AA
Dark mode
Text on background20.82:1AAA
Text on card20.82:1AAA
Primary button6.22:1AA
Secondary button4.77:1AA
Muted text6.95:1AA
Accent6.85:1AA
Destructive7.06:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.006 292.424);
  --foreground: oklch(0.105 0.03 289.512);
  --muted: oklch(0.881 0.007 27.976);
  --muted-foreground: oklch(0.423 0.009 28.058);
  --popover: oklch(0.98 0.006 292.424);
  --popover-foreground: oklch(0.105 0.03 289.512);
  --card: oklch(0.98 0.006 292.424);
  --card-foreground: oklch(0.105 0.03 289.512);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.501 0.12 287.347);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.564 0.09 29.514);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.651 0.125 146.885);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.398 0.127 38.256);
  --destructive-foreground: oklch(0.877 0.066 42.63);
  --ring: oklch(0.501 0.12 287.347);
  --chart-1: oklch(0.501 0.12 287.347);
  --chart-2: oklch(0.564 0.09 29.514);
  --chart-3: oklch(0.651 0.125 146.885);
  --chart-4: oklch(0.589 0.087 29.355);
  --chart-5: oklch(0.494 0.132 286.65);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.076 0.017 290.404);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.265 0.01 28.178);
  --muted-foreground: oklch(0.753 0.008 27.988);
  --popover: oklch(0.076 0.017 290.404);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.076 0.017 290.404);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.501 0.12 287.347);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.564 0.09 29.514);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.651 0.125 146.885);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.692 0.191 40.05);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.501 0.12 287.347);
  --chart-1: oklch(0.501 0.12 287.347);
  --chart-2: oklch(0.564 0.09 29.514);
  --chart-3: oklch(0.651 0.125 146.885);
  --chart-4: oklch(0.589 0.087 29.355);
  --chart-5: oklch(0.494 0.132 286.65);
}