Dynamite for shadcn/ui

Dynamite is a shadcn/ui theme built around a vivid light teal primary color (#b7faec) with neutral gray accents (#e1e5e4). The light mode uses a neutral background (#f7fdfb). Dark mode keeps the vivid light teal primary (#b7faec) on a teal-tinted background (#050a09).

Color palette

TokenLightDark
Background
#f7fdfbmintcream
#050a09black
Foreground
#020d0bblack
#f8fcfbmintcream
Card
#f7fdfbmintcream
#050a09black
Card foreground
#020d0bblack
#f8fcfbmintcream
Popover
#f7fdfbmintcream
#050a09black
Popover foreground
#020d0bblack
#f8fcfbmintcream
Primary
#b7faecpaleturquoise
#b7faecpaleturquoise
Primary foreground
#021813black
#021813black
Secondary
#e1e5e4gainsboro
#202c2adarkslategray
Secondary foreground
#454f4ddarkslategray
#b5c9c5silver
Muted
#d8e3e1gainsboro
#1c2724black
Muted foreground
#42524fdarkslategray
#adbdbasilver
Accent
#e1e5e4gainsboro
#202c2adarkslategray
Accent foreground
#454f4ddarkslategray
#b5c9c5silver
Destructive
#7e1702maroon
#fb2d04orangered
Destructive foreground
#fec0b4lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b7faecpaleturquoise
#b7faecpaleturquoise

Contrast

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

Light mode
Text on background19.12:1AAA
Text on card19.12:1AAA
Primary button15.67:1AAA
Secondary button6.66:1AA
Muted text6.29:1AA
Accent6.66:1AA
Destructive6.70:1AA
Dark mode
Text on background19.23:1AAA
Text on card19.23:1AAA
Primary button15.67:1AAA
Secondary button8.30:1AAA
Muted text7.90:1AAA
Accent8.30:1AAA
Destructive3.82:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.006 181.898);
  --foreground: oklch(0.147 0.021 180.75);
  --muted: oklch(0.908 0.013 181.681);
  --muted-foreground: oklch(0.424 0.021 180.606);
  --popover: oklch(0.989 0.006 181.898);
  --popover-foreground: oklch(0.147 0.021 180.75);
  --card: oklch(0.989 0.006 181.898);
  --card-foreground: oklch(0.147 0.021 180.75);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.937 0.069 179.82);
  --primary-foreground: oklch(0.188 0.032 177.254);
  --secondary: oklch(0.918 0.004 181.935);
  --secondary-foreground: oklch(0.418 0.014 181.128);
  --accent: oklch(0.918 0.004 181.935);
  --accent-foreground: oklch(0.418 0.014 181.128);
  --destructive: oklch(0.385 0.14 32.842);
  --destructive-foreground: oklch(0.861 0.074 31.461);
  --ring: oklch(0.937 0.069 179.82);
  --chart-1: oklch(0.937 0.069 179.82);
  --chart-2: oklch(0.918 0.004 181.935);
  --chart-3: oklch(0.918 0.004 181.935);
  --chart-4: oklch(0.941 0.003 181.974);
  --chart-5: oklch(0.939 0.071 179.745);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.011 181.979);
  --foreground: oklch(0.988 0.004 181.941);
  --muted: oklch(0.26 0.016 180.193);
  --muted-foreground: oklch(0.785 0.019 181.398);
  --popover: oklch(0.139 0.011 181.979);
  --popover-foreground: oklch(0.988 0.004 181.941);
  --card: oklch(0.139 0.011 181.979);
  --card-foreground: oklch(0.988 0.004 181.941);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.937 0.069 179.82);
  --primary-foreground: oklch(0.188 0.032 177.254);
  --secondary: oklch(0.282 0.017 180.23);
  --secondary-foreground: oklch(0.821 0.023 181.272);
  --accent: oklch(0.282 0.017 180.23);
  --accent-foreground: oklch(0.821 0.023 181.272);
  --destructive: oklch(0.636 0.241 31.786);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.937 0.069 179.82);
  --chart-1: oklch(0.937 0.069 179.82);
  --chart-2: oklch(0.282 0.017 180.23);
  --chart-3: oklch(0.282 0.017 180.23);
  --chart-4: oklch(0.316 0.02 180.146);
  --chart-5: oklch(0.939 0.071 179.745);
}