Priority for shadcn/ui

Priority is a shadcn/ui theme built around a purple primary color (#90519a) with pink accents (#9a517f). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the purple primary (#90519a) on a purple-tinted background (#0f0410).

Color palette

TokenLightDark
Background
#fdfcfdwhite
#0f0410black
Foreground
#070208black
#fbf9fbsnow
Card
#fbf8fcghostwhite
#120514black
Card foreground
#040104black
#fdfcfdwhite
Popover
#fbf8fcghostwhite
#120514black
Popover foreground
#040104black
#fdfcfdwhite
Primary
#90519arebeccapurple
#90519arebeccapurple
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#6c519arebeccapurple
#6c519arebeccapurple
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dbd9ddgainsboro
#232226black
Muted foreground
#4c4a4fdarkslategray
#b2b0b5darkgray
Accent
#9a517fgray
#9a517fgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#af1c0efirebrick
#ed3221orangered
Destructive foreground
#fef2f1seashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#90519arebeccapurple
#90519arebeccapurple

Contrast

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

Light mode
Text on background20.04:1AAA
Text on card19.72:1AAA
Primary button5.49:1AA
Secondary button6.41:1AA
Muted text6.24:1AA
Accent5.45:1AA
Destructive6.43:1AA
Dark mode
Text on background19.17:1AAA
Text on card19.37:1AAA
Primary button5.49:1AA
Secondary button6.41:1AA
Muted text7.38:1AAA
Accent5.45:1AA
Destructive4.13:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 321.601);
  --foreground: oklch(0.108 0.022 323.227);
  --muted: oklch(0.888 0.006 302.825);
  --muted-foreground: oklch(0.413 0.008 302.64);
  --popover: oklch(0.983 0.006 321.609);
  --popover-foreground: oklch(0.086 0.018 323.227);
  --card: oklch(0.983 0.006 321.609);
  --card-foreground: oklch(0.086 0.018 323.227);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.536 0.13 322.114);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.495 0.115 299.071);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.537 0.113 342.892);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.484 0.183 30.075);
  --destructive-foreground: oklch(0.97 0.013 23.714);
  --ring: oklch(0.536 0.13 322.114);
  --chart-1: oklch(0.536 0.13 322.114);
  --chart-2: oklch(0.495 0.115 299.071);
  --chart-3: oklch(0.537 0.113 342.892);
  --chart-4: oklch(0.518 0.121 299.039);
  --chart-5: oklch(0.536 0.141 322.131);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.034 322.717);
  --foreground: oklch(0.984 0.004 321.603);
  --muted: oklch(0.254 0.008 302.432);
  --muted-foreground: oklch(0.761 0.007 302.794);
  --popover: oklch(0.148 0.039 322.444);
  --popover-foreground: oklch(0.992 0.002 321.597);
  --card: oklch(0.148 0.039 322.444);
  --card-foreground: oklch(0.992 0.002 321.597);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.536 0.13 322.114);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.495 0.115 299.071);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.537 0.113 342.892);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.615 0.223 29.942);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.536 0.13 322.114);
  --chart-1: oklch(0.536 0.13 322.114);
  --chart-2: oklch(0.495 0.115 299.071);
  --chart-3: oklch(0.537 0.113 342.892);
  --chart-4: oklch(0.518 0.121 299.039);
  --chart-5: oklch(0.536 0.141 322.131);
}