Dynamo for shadcn/ui

Dynamo is a shadcn/ui theme built around a vivid blue primary color (#7fc2f5) with vivid indigo accents (#7f87f5). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the vivid blue primary (#7fc2f5) on a neutral background (#020304).

Color palette

TokenLightDark
Background
#fcfdfdwhite
#020304black
Foreground
#060e13black
#fcfdfdwhite
Card
#f8fafbghostwhite
#030507black
Card foreground
#050b0fblack
#ffffffwhite
Popover
#f8fafbghostwhite
#030507black
Popover foreground
#050b0fblack
#ffffffwhite
Primary
#7fc2f5lightskyblue
#7fc2f5lightskyblue
Primary foreground
#05253emidnightblue
#05253emidnightblue
Secondary
#7ff5edaquamarine
#7ff5edaquamarine
Secondary foreground
#053e3adarkslategray
#053e3adarkslategray
Muted
#eaf6f5whitesmoke
#091515black
Muted foreground
#5e6e6ddimgray
#91a1a0darkgray
Accent
#7f87f5cornflowerblue
#7f87f5cornflowerblue
Accent foreground
#05083emidnightblue
#05083emidnightblue
Destructive
#9e0a05darkred
#e40e07red
Destructive foreground
#fed9d7mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7fc2f5lightskyblue
#7fc2f5lightskyblue

Contrast

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

Light mode
Text on background19.02:1AAA
Text on card18.93:1AAA
Primary button8.16:1AAA
Secondary button9.24:1AAA
Muted text4.82:1AA
Accent6.01:1AA
Destructive6.43:1AA
Dark mode
Text on background20.29:1AAA
Text on card20.37:1AAA
Primary button8.16:1AAA
Secondary button9.24:1AAA
Muted text6.89:1AA
Accent6.01:1AA
Destructive4.82:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.001 240.301);
  --foreground: oklch(0.157 0.017 240.35);
  --muted: oklch(0.963 0.013 192.146);
  --muted-foreground: oklch(0.525 0.02 191.643);
  --popover: oklch(0.984 0.003 240.319);
  --popover-foreground: oklch(0.144 0.014 237.755);
  --card: oklch(0.984 0.003 240.319);
  --card-foreground: oklch(0.144 0.014 237.755);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.789 0.1 242.516);
  --primary-foreground: oklch(0.256 0.059 246.054);
  --secondary: oklch(0.9 0.108 189.69);
  --secondary-foreground: oklch(0.328 0.055 187.789);
  --accent: oklch(0.667 0.162 277.969);
  --accent-foreground: oklch(0.186 0.099 268.565);
  --destructive: oklch(0.443 0.177 29.343);
  --destructive-foreground: oklch(0.915 0.042 20.281);
  --ring: oklch(0.789 0.1 242.516);
  --chart-1: oklch(0.789 0.1 242.516);
  --chart-2: oklch(0.9 0.108 189.69);
  --chart-3: oklch(0.667 0.162 277.969);
  --chart-4: oklch(0.909 0.099 190.008);
  --chart-5: oklch(0.789 0.103 242.619);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.091 0.006 235.196);
  --foreground: oklch(0.992 0.001 240.302);
  --muted: oklch(0.186 0.018 190.368);
  --muted-foreground: oklch(0.696 0.019 191.871);
  --popover: oklch(0.115 0.008 235.196);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.115 0.008 235.196);
  --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.789 0.1 242.516);
  --primary-foreground: oklch(0.256 0.059 246.054);
  --secondary: oklch(0.9 0.108 189.69);
  --secondary-foreground: oklch(0.328 0.055 187.789);
  --accent: oklch(0.667 0.162 277.969);
  --accent-foreground: oklch(0.186 0.099 268.565);
  --destructive: oklch(0.579 0.233 29.323);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.789 0.1 242.516);
  --chart-1: oklch(0.789 0.1 242.516);
  --chart-2: oklch(0.9 0.108 189.69);
  --chart-3: oklch(0.667 0.162 277.969);
  --chart-4: oklch(0.909 0.099 190.008);
  --chart-5: oklch(0.789 0.103 242.619);
}