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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.37:1 | AAA |
| Text on card | 19.07:1 | AAA |
| Primary button | 7.86:1 | AAA |
| Secondary button | 15.54:1 | AAA |
| Muted text | 5.86:1 | AA |
| Accent | 15.54:1 | AAA |
| Destructive | 6.02:1 | AA |
| Text on background | 20.09:1 | AAA |
| Text on card | 19.85:1 | AAA |
| Primary button | 7.86:1 | AAA |
| Secondary button | 15.54:1 | AAA |
| Muted text | 7.74:1 | AAA |
| Accent | 15.54:1 | AAA |
| Destructive | 7.15:1 | AAA |
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);
}