Dynasty for shadcn/ui

Dynasty is a shadcn/ui theme built around a cyan primary color (#4f98b0) with blue accents (#4f67b0). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the cyan primary (#4f98b0) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfdfewhite
#000000black
Foreground
#050d10black
#f6f8f9whitesmoke
Card
#f7fbfcghostwhite
#030303black
Card foreground
#040a0cblack
#f9fbfbghostwhite
Popover
#fbfdfewhite
#000000black
Popover foreground
#050d10black
#f6f8f9whitesmoke
Primary
#4f98b0cadetblue
#4f98b0cadetblue
Primary foreground
#000000black
#000000black
Secondary
#4fb098cadetblue
#4fb098cadetblue
Secondary foreground
#10231eblack
#10231eblack
Muted
#e7f4f0honeydew
#0b1815black
Muted foreground
#636363dimgray
#9c9c9cdarkgray
Accent
#4f67b0steelblue
#4f67b0steelblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#bd2300firebrick
#ff5833tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4f98b0cadetblue
#4f98b0cadetblue

Contrast

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

Light mode
Text on background19.22:1AAA
Text on card19.16:1AAA
Primary button6.43:1AA
Secondary button6.23:1AA
Muted text5.30:1AA
Accent5.37:1AA
Destructive6.19:1AA
Dark mode
Text on background19.71:1AAA
Text on card19.91:1AAA
Primary button6.43:1AA
Secondary button6.23:1AA
Muted text6.59:1AA
Accent5.37:1AA
Destructive6.70:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 219.523);
  --foreground: oklch(0.151 0.015 218.407);
  --muted: oklch(0.956 0.015 179.425);
  --muted-foreground: oklch(0.501 0 180);
  --popover: oklch(0.993 0.002 219.523);
  --popover-foreground: oklch(0.151 0.015 218.407);
  --card: oklch(0.986 0.004 219.538);
  --card-foreground: oklch(0.136 0.013 215.582);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.641 0.081 222.114);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.692 0.099 174.429);
  --secondary-foreground: oklch(0.239 0.027 175.924);
  --accent: oklch(0.53 0.118 268.307);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.515 0.192 32.551);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.641 0.081 222.114);
  --chart-1: oklch(0.641 0.081 222.114);
  --chart-2: oklch(0.692 0.099 174.429);
  --chart-3: oklch(0.53 0.118 268.307);
  --chart-4: oklch(0.709 0.094 174.996);
  --chart-5: oklch(0.646 0.086 222.453);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.978 0.003 219.531);
  --muted: oklch(0.197 0.02 176.516);
  --muted-foreground: oklch(0.691 0 180);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.978 0.003 219.531);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.985 0.002 219.523);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.641 0.081 222.114);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.692 0.099 174.429);
  --secondary-foreground: oklch(0.239 0.027 175.924);
  --accent: oklch(0.53 0.118 268.307);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.682 0.209 34.051);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.641 0.081 222.114);
  --chart-1: oklch(0.641 0.081 222.114);
  --chart-2: oklch(0.692 0.099 174.429);
  --chart-3: oklch(0.53 0.118 268.307);
  --chart-4: oklch(0.709 0.094 174.996);
  --chart-5: oklch(0.646 0.086 222.453);
}