Rostrum for shadcn/ui

Rostrum is a shadcn/ui theme built around a light violet primary color (#deb8ef) with light green accents (#c9efb8). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the light violet primary (#deb8ef) on a violet-tinted background (#0c050f).

Color palette

TokenLightDark
Background
#fdfcfdwhite
#0c050fblack
Foreground
#0f0613black
#ffffffwhite
Card
#fbf8fcghostwhite
#0f0613black
Card foreground
#0c0510black
#ffffffwhite
Popover
#fbf8fcghostwhite
#0f0613black
Popover foreground
#0c0510black
#ffffffwhite
Primary
#deb8efthistle
#deb8efthistle
Primary foreground
#481560indigo
#481560indigo
Secondary
#c9efb8lightgrey
#c9efb8lightgrey
Secondary foreground
#060d03black
#060d03black
Muted
#edefecwhitesmoke
#111310black
Muted foreground
#585c57dimgray
#a5a8a3darkgray
Accent
#c9efb8lightgrey
#c9efb8lightgrey
Accent foreground
#060d03black
#060d03black
Destructive
#9e320asaddlebrown
#f36f3ftomato
Destructive foreground
#fde6ddmistyrose
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#deb8efthistle
#deb8efthistle

Contrast

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

Light mode
Text on background19.37:1AAA
Text on card19.07:1AAA
Primary button7.86:1AAA
Secondary button15.54:1AAA
Muted text5.86:1AA
Accent15.54:1AAA
Destructive6.02:1AA
Dark mode
Text on background20.09:1AAA
Text on card19.85:1AAA
Primary button7.86:1AAA
Secondary button15.54:1AAA
Muted text7.74:1AAA
Accent15.54:1AAA
Destructive7.15:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 315.416);
  --foreground: oklch(0.145 0.032 314.953);
  --muted: oklch(0.949 0.004 135.447);
  --muted-foreground: oklch(0.469 0.01 135.517);
  --popover: oklch(0.982 0.005 315.405);
  --popover-foreground: oklch(0.134 0.028 315.725);
  --card: oklch(0.982 0.005 315.405);
  --card-foreground: oklch(0.134 0.028 315.725);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.833 0.086 314.989);
  --primary-foreground: oklch(0.319 0.129 312.596);
  --secondary: oklch(0.912 0.084 135.858);
  --secondary-foreground: oklch(0.145 0.028 133.79);
  --accent: oklch(0.912 0.084 135.858);
  --accent-foreground: oklch(0.145 0.028 133.79);
  --destructive: oklch(0.474 0.151 37.327);
  --destructive-foreground: oklch(0.941 0.028 41.104);
  --ring: oklch(0.833 0.086 314.989);
  --chart-1: oklch(0.833 0.086 314.989);
  --chart-2: oklch(0.912 0.084 135.858);
  --chart-3: oklch(0.912 0.084 135.858);
  --chart-4: oklch(0.927 0.069 135.768);
  --chart-5: oklch(0.832 0.09 314.967);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.134 0.027 315.702);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.185 0.006 135.582);
  --muted-foreground: oklch(0.728 0.009 135.479);
  --popover: oklch(0.146 0.031 314.946);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.146 0.031 314.946);
  --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.833 0.086 314.989);
  --primary-foreground: oklch(0.319 0.129 312.596);
  --secondary: oklch(0.912 0.084 135.858);
  --secondary-foreground: oklch(0.145 0.028 133.79);
  --accent: oklch(0.912 0.084 135.858);
  --accent-foreground: oklch(0.145 0.028 133.79);
  --destructive: oklch(0.693 0.174 39.732);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.833 0.086 314.989);
  --chart-1: oklch(0.833 0.086 314.989);
  --chart-2: oklch(0.912 0.084 135.858);
  --chart-3: oklch(0.912 0.084 135.858);
  --chart-4: oklch(0.927 0.069 135.768);
  --chart-5: oklch(0.832 0.09 314.967);
}