Subsequent Royalty for shadcn/ui

Subsequent Royalty is a shadcn/ui theme built around a violet primary color (#5e36b0) with muted light violet accents (#dfdce5). The light mode uses a neutral background (#f9f7fd). Dark mode keeps the violet primary (#5e36b0) on a violet-tinted background (#07040b).

Color palette

TokenLightDark
Background
#f9f7fdghostwhite
#07040bblack
Foreground
#0a0415black
#f9f9fbghostwhite
Card
#f6f3fbwhitesmoke
#09060fblack
Card foreground
#080311black
#fcfcfdwhite
Popover
#f6f3fbwhitesmoke
#09060fblack
Popover foreground
#080311black
#fcfcfdwhite
Primary
#5e36b0rebeccapurple
#5e36b0rebeccapurple
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#dfdce5gainsboro
#161618black
Secondary foreground
#443c53darkslategray
#aeabb5darkgray
Muted
#dfd8eegainsboro
#181127black
Muted foreground
#524a64dimgray
#a49bb5darkgray
Accent
#dfdce5gainsboro
#161618black
Accent foreground
#443c53darkslategray
#aeabb5darkgray
Destructive
#bd3014firebrick
#eb5a3dtomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e2dfe7gainsboro
#18161dblack
Input
#e2dfe7gainsboro
#18161dblack
Ring
#5e36b0rebeccapurple
#5e36b0rebeccapurple

Contrast

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

Light mode
Text on background18.98:1AAA
Text on card18.58:1AAA
Primary button7.98:1AAA
Secondary button7.65:1AAA
Muted text6.01:1AA
Accent7.65:1AAA
Destructive5.82:1AA
Dark mode
Text on background19.35:1AAA
Text on card19.64:1AAA
Primary button7.98:1AAA
Secondary button8.00:1AAA
Muted text6.90:1AA
Accent8.00:1AAA
Destructive6.05:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.007 301.372);
  --foreground: oklch(0.133 0.039 298.666);
  --muted: oklch(0.894 0.031 300.928);
  --muted-foreground: oklch(0.427 0.044 299.821);
  --popover: oklch(0.969 0.011 301.309);
  --popover-foreground: oklch(0.122 0.034 300.399);
  --card: oklch(0.969 0.011 301.309);
  --card-foreground: oklch(0.122 0.034 300.399);
  --border: oklch(0.907 0.012 301.285);
  --input: oklch(0.907 0.012 301.285);
  --primary: oklch(0.454 0.182 293.008);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.898 0.014 301.248);
  --secondary-foreground: oklch(0.373 0.04 299.755);
  --accent: oklch(0.898 0.014 301.248);
  --accent-foreground: oklch(0.373 0.04 299.755);
  --destructive: oklch(0.528 0.182 32.871);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.454 0.182 293.008);
  --chart-1: oklch(0.454 0.182 293.008);
  --chart-2: oklch(0.898 0.014 301.248);
  --chart-3: oklch(0.898 0.014 301.248);
  --chart-4: oklch(0.924 0.01 301.316);
  --chart-5: oklch(0.451 0.19 292.294);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.119 0.019 301.824);
  --foreground: oklch(0.982 0.003 301.438);
  --muted: oklch(0.199 0.045 297.585);
  --muted-foreground: oklch(0.706 0.039 300.611);
  --popover: oklch(0.131 0.022 300.769);
  --popover-foreground: oklch(0.991 0.002 301.466);
  --card: oklch(0.131 0.022 300.769);
  --card-foreground: oklch(0.991 0.002 301.466);
  --border: oklch(0.205 0.015 300.272);
  --input: oklch(0.205 0.015 300.272);
  --primary: oklch(0.454 0.182 293.008);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.201 0.006 301.044);
  --secondary-foreground: oklch(0.747 0.014 301.194);
  --accent: oklch(0.201 0.006 301.044);
  --accent-foreground: oklch(0.747 0.014 301.194);
  --destructive: oklch(0.653 0.185 33.18);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.454 0.182 293.008);
  --chart-1: oklch(0.454 0.182 293.008);
  --chart-2: oklch(0.201 0.006 301.044);
  --chart-3: oklch(0.201 0.006 301.044);
  --chart-4: oklch(0.233 0.007 300.995);
  --chart-5: oklch(0.451 0.19 292.294);
}