Button Blue Marmot for shadcn/ui

Button Blue Marmot is a shadcn/ui theme built around a vivid blue primary color (#1280bf) with teal accents (#28cc9e). The light mode uses a blue-tinted background (#e9f2f7). Dark mode keeps the vivid blue primary (#009ceb) on a blue-tinted background (#05202e).

Color palette

TokenLightDark
Background
#e9f2f7aliceblue
#05202eblack
Foreground
#140000black
#fcfdfdwhite
Card
#ffffffwhite
#143648darkslategray
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#1c4c63darkslategray
Popover foreground
#000000black
#ffffffwhite
Primary
#1280bfsteelblue
#009cebdodgerblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#09a6aelightseagreen
#09a6aelightseagreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ebf9ffaliceblue
#525252darkslategray
Muted foreground
#473d39darkslategray
#c6bdb8silver
Accent
#28cc9elightseagreen
#dea821goldenrod
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#db0000red
#ff3333crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#bddeefpowderblue
#506671dimgray
Input
#e0e4e5gainsboro
#8699a2lightslategray
Ring
#009cebdodgerblue
#009cebdodgerblue

Contrast

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

Light mode
Text on background17.96:1AAA
Text on card21.00:1AAA
Primary button4.32:1AA Large
Secondary button2.96:1Fail
Muted text9.79:1AAA
Accent2.04:1Fail
Destructive5.22:1AA
Dark mode
Text on background16.41:1AAA
Text on card12.65:1AAA
Primary button3.00:1AA Large
Secondary button2.96:1Fail
Muted text4.25:1AA Large
Accent2.15:1Fail
Destructive3.63:1AA Large

CSS variables

Paste this into your globals.css to use Button Blue Marmot in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.956 0.012 228.915);
  --foreground: oklch(0.121 0.05 29.234);
  --muted: oklch(0.974 0.017 223.32);
  --muted-foreground: oklch(0.37 0.015 48.286);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.883 0.042 229.473);
  --input: oklch(0.916 0.004 228.812);
  --primary: oklch(0.574 0.132 242.331);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.661 0.111 201.153);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.756 0.145 167.994);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.56 0.23 29.234);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.665 0.157 241.872);
  --chart-1: oklch(0.574 0.132 242.331);
  --chart-2: oklch(0.661 0.111 201.153);
  --chart-3: oklch(0.756 0.145 167.994);
  --chart-4: oklch(0.701 0.118 201.183);
  --chart-5: oklch(0.578 0.135 242.855);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.232 0.042 234.028);
  --foreground: oklch(0.993 0.001 228.77);
  --muted: oklch(0.437 0 180);
  --muted-foreground: oklch(0.804 0.012 48.565);
  --popover: oklch(0.394 0.065 233.639);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.318 0.05 233.163);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.498 0.032 229.793);
  --input: oklch(0.67 0.025 229.301);
  --primary: oklch(0.665 0.157 241.872);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.661 0.111 201.153);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.762 0.149 84.209);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.649 0.237 26.973);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.665 0.157 241.872);
  --chart-1: oklch(0.665 0.157 241.872);
  --chart-2: oklch(0.661 0.111 201.153);
  --chart-3: oklch(0.762 0.149 84.209);
  --chart-4: oklch(0.701 0.118 201.183);
  --chart-5: oklch(0.669 0.16 242.341);
}