Dynamo for shadcn/ui

Dynamo is a shadcn/ui theme built around a vivid deep blue primary color (#044c76) with vivid deep orange accents (#762e04). The light mode uses a neutral background (#f8fafc). Dark mode keeps the vivid deep blue primary (#044c76) on a neutral background (#030608).

Color palette

TokenLightDark
Background
#f8fafcghostwhite
#030608black
Foreground
#030c12black
#f9fafbghostwhite
Card
#f8fafcghostwhite
#030608black
Card foreground
#030c12black
#f9fafbghostwhite
Popover
#f8fafcghostwhite
#030608black
Popover foreground
#030c12black
#f9fafbghostwhite
Primary
#044c76teal
#044c76teal
Primary foreground
#b0e0fcpaleturquoise
#b0e0fcpaleturquoise
Secondary
#762e04saddlebrown
#762e04saddlebrown
Secondary foreground
#fcccb0peachpuff
#fcccb0peachpuff
Muted
#e9e8e7linen
#181716black
Muted foreground
#454240darkslategray
#bfbcbasilver
Accent
#762e04saddlebrown
#762e04saddlebrown
Accent foreground
#fcccb0peachpuff
#fcccb0peachpuff
Destructive
#d33b03orangered
#fc581dorangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#044c76teal
#044c76teal

Contrast

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

Light mode
Text on background18.88:1AAA
Text on card18.88:1AAA
Primary button6.45:1AA
Secondary button6.65:1AA
Muted text8.13:1AAA
Accent6.65:1AA
Destructive4.78:1AA
Dark mode
Text on background19.47:1AAA
Text on card19.47:1AAA
Primary button6.45:1AA
Secondary button6.65:1AA
Muted text9.50:1AAA
Accent6.65:1AA
Destructive6.54:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.003 232.622);
  --foreground: oklch(0.147 0.022 229.673);
  --muted: oklch(0.931 0.002 52.546);
  --muted-foreground: oklch(0.38 0.006 52.381);
  --popover: oklch(0.985 0.003 232.622);
  --popover-foreground: oklch(0.147 0.022 229.673);
  --card: oklch(0.985 0.003 232.622);
  --card-foreground: oklch(0.147 0.022 229.673);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.401 0.094 242.681);
  --primary-foreground: oklch(0.883 0.063 233.807);
  --secondary: oklch(0.399 0.112 44.306);
  --secondary-foreground: oklch(0.88 0.066 51.623);
  --accent: oklch(0.399 0.112 44.306);
  --accent-foreground: oklch(0.88 0.066 51.623);
  --destructive: oklch(0.575 0.196 35.865);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.401 0.094 242.681);
  --chart-1: oklch(0.401 0.094 242.681);
  --chart-2: oklch(0.399 0.112 44.306);
  --chart-3: oklch(0.399 0.112 44.306);
  --chart-4: oklch(0.433 0.123 43.87);
  --chart-5: oklch(0.403 0.096 243.07);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.116 0.011 226.655);
  --foreground: oklch(0.985 0.002 232.612);
  --muted: oklch(0.204 0.003 52.357);
  --muted-foreground: oklch(0.797 0.005 52.5);
  --popover: oklch(0.116 0.011 226.655);
  --popover-foreground: oklch(0.985 0.002 232.612);
  --card: oklch(0.116 0.011 226.655);
  --card-foreground: oklch(0.985 0.002 232.612);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.401 0.094 242.681);
  --primary-foreground: oklch(0.883 0.063 233.807);
  --secondary: oklch(0.399 0.112 44.306);
  --secondary-foreground: oklch(0.88 0.066 51.623);
  --accent: oklch(0.399 0.112 44.306);
  --accent-foreground: oklch(0.88 0.066 51.623);
  --destructive: oklch(0.675 0.209 37.783);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.401 0.094 242.681);
  --chart-1: oklch(0.401 0.094 242.681);
  --chart-2: oklch(0.399 0.112 44.306);
  --chart-3: oklch(0.399 0.112 44.306);
  --chart-4: oklch(0.433 0.123 43.87);
  --chart-5: oklch(0.403 0.096 243.07);
}