Dynamo for shadcn/ui

Dynamo is a shadcn/ui theme built around a yellow primary color (#d5b162) with violet accents (#b162d5). The light mode uses a neutral background (#fefdfb). Dark mode keeps the yellow primary (#d5b162) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefdfbsnow
#000000black
Foreground
#000000black
#fdfdfcwhite
Card
#fefdfbsnow
#000000black
Card foreground
#000000black
#fdfdfcwhite
Popover
#fefdfbsnow
#000000black
Popover foreground
#000000black
#fdfdfcwhite
Primary
#d5b162darkkhaki
#d5b162darkkhaki
Primary foreground
#040301black
#040301black
Secondary
#62d5b1mediumaquamarine
#62d5b1mediumaquamarine
Secondary foreground
#010403black
#010403black
Muted
#dde9e5gainsboro
#16221eblack
Muted foreground
#435b53darkslategray
#a4bcb4darkgray
Accent
#b162d5mediumorchid
#b162d5mediumorchid
Accent foreground
#000000black
#000000black
Destructive
#9c3211saddlebrown
#e8582cchocolate
Destructive foreground
#fce9e3mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d5b162darkkhaki
#d5b162darkkhaki

Contrast

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

Light mode
Text on background20.66:1AAA
Text on card20.66:1AAA
Primary button10.08:1AAA
Secondary button11.46:1AAA
Muted text5.88:1AA
Accent5.56:1AA
Destructive6.22:1AA
Dark mode
Text on background20.63:1AAA
Text on card20.63:1AAA
Primary button10.08:1AAA
Secondary button11.46:1AAA
Muted text8.15:1AAA
Accent5.56:1AA
Destructive3.59:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 86.02);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.923 0.013 175.204);
  --muted-foreground: oklch(0.449 0.031 173.394);
  --popover: oklch(0.994 0.003 86.02);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.994 0.003 86.02);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.776 0.107 85.004);
  --primary-foreground: oklch(0.098 0.012 91.965);
  --secondary: oklch(0.797 0.118 169.784);
  --secondary-foreground: oklch(0.099 0.012 175.833);
  --accent: oklch(0.633 0.181 313.935);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.471 0.147 36.258);
  --destructive-foreground: oklch(0.948 0.022 37.648);
  --ring: oklch(0.776 0.107 85.004);
  --chart-1: oklch(0.776 0.107 85.004);
  --chart-2: oklch(0.797 0.118 169.784);
  --chart-3: oklch(0.633 0.181 313.935);
  --chart-4: oklch(0.811 0.111 170.45);
  --chart-5: oklch(0.78 0.111 84.846);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.001 86.01);
  --muted: oklch(0.239 0.017 173.292);
  --muted-foreground: oklch(0.774 0.028 174.519);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.993 0.001 86.01);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.993 0.001 86.01);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.776 0.107 85.004);
  --primary-foreground: oklch(0.098 0.012 91.965);
  --secondary: oklch(0.797 0.118 169.784);
  --secondary-foreground: oklch(0.099 0.012 175.833);
  --accent: oklch(0.633 0.181 313.935);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.643 0.187 36.863);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.776 0.107 85.004);
  --chart-1: oklch(0.776 0.107 85.004);
  --chart-2: oklch(0.797 0.118 169.784);
  --chart-3: oklch(0.633 0.181 313.935);
  --chart-4: oklch(0.811 0.111 170.45);
  --chart-5: oklch(0.78 0.111 84.846);
}