Catalogue for shadcn/ui

Catalogue is a shadcn/ui theme built around a deep violet primary color (#0e091a) with deep green accents (#091a0e). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the deep violet primary (#0e091a) on a violet-tinted background (#06030c).

Color palette

TokenLightDark
Background
#fcfbfewhite
#06030cblack
Foreground
#070410black
#f6f4fawhitesmoke
Card
#fcfbfewhite
#06030cblack
Card foreground
#070410black
#f6f4fawhitesmoke
Popover
#fcfbfewhite
#06030cblack
Popover foreground
#070410black
#f6f4fawhitesmoke
Primary
#0e091ablack
#0e091ablack
Primary foreground
#9882d3mediumpurple
#9882d3mediumpurple
Secondary
#1a0e09black
#1a0e09black
Secondary foreground
#d39882darksalmon
#d39882darksalmon
Muted
#f3eae7linen
#180f0cblack
Muted foreground
#504f4edarkslategray
#b1b0afdarkgray
Accent
#091a0eblack
#091a0eblack
Accent foreground
#3eb15dmediumseagreen
#3eb15dmediumseagreen
Destructive
#661a05maroon
#f34a1borangered
Destructive foreground
#fab6a3lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0e091ablack
#0e091ablack

Contrast

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

Light mode
Text on background19.73:1AAA
Text on card19.73:1AAA
Primary button6.02:1AA
Secondary button7.72:1AAA
Muted text6.91:1AA
Accent6.54:1AA
Destructive7.16:1AAA
Dark mode
Text on background18.74:1AAA
Text on card18.74:1AAA
Primary button6.02:1AA
Secondary button7.72:1AAA
Muted text8.71:1AAA
Accent6.54:1AA
Destructive3.61:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 298.514);
  --foreground: oklch(0.124 0.03 297.077);
  --muted: oklch(0.944 0.011 41.219);
  --muted-foreground: oklch(0.427 0.002 41.273);
  --popover: oklch(0.99 0.003 298.514);
  --popover-foreground: oklch(0.124 0.03 297.077);
  --card: oklch(0.99 0.003 298.514);
  --card-foreground: oklch(0.124 0.03 297.077);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.158 0.036 294.23);
  --primary-foreground: oklch(0.66 0.119 295.203);
  --secondary: oklch(0.179 0.024 40.82);
  --secondary-foreground: oklch(0.731 0.078 40.831);
  --accent: oklch(0.2 0.034 150.927);
  --accent-foreground: oklch(0.677 0.16 148.915);
  --destructive: oklch(0.342 0.112 35.389);
  --destructive-foreground: oklch(0.835 0.084 36.056);
  --ring: oklch(0.158 0.036 294.23);
  --chart-1: oklch(0.158 0.036 294.23);
  --chart-2: oklch(0.179 0.024 40.82);
  --chart-3: oklch(0.2 0.034 150.927);
  --chart-4: oklch(0.213 0.032 40.697);
  --chart-5: oklch(0.157 0.038 293.928);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.112 0.026 298.207);
  --foreground: oklch(0.971 0.008 298.417);
  --muted: oklch(0.179 0.017 40.868);
  --muted-foreground: oklch(0.757 0.001 41.289);
  --popover: oklch(0.112 0.026 298.207);
  --popover-foreground: oklch(0.971 0.008 298.417);
  --card: oklch(0.112 0.026 298.207);
  --card-foreground: oklch(0.971 0.008 298.417);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.158 0.036 294.23);
  --primary-foreground: oklch(0.66 0.119 295.203);
  --secondary: oklch(0.179 0.024 40.82);
  --secondary-foreground: oklch(0.731 0.078 40.831);
  --accent: oklch(0.2 0.034 150.927);
  --accent-foreground: oklch(0.677 0.16 148.915);
  --destructive: oklch(0.646 0.213 35.055);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.158 0.036 294.23);
  --chart-1: oklch(0.158 0.036 294.23);
  --chart-2: oklch(0.179 0.024 40.82);
  --chart-3: oklch(0.2 0.034 150.927);
  --chart-4: oklch(0.213 0.032 40.697);
  --chart-5: oklch(0.157 0.038 293.928);
}