Bluish for shadcn/ui

Bluish is a shadcn/ui theme built around a blue primary color (#2e6c90) with blue accents (#417fa2). The light mode uses a neutral background (#fcfcfc). Dark mode switches to a green primary (#3e8948) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfcfcsnow
#000000black
Foreground
#030c05black
#f8fbf9mintcream
Card
#ffffffwhite
#000000black
Card foreground
#030c05black
#f8fbf9mintcream
Popover
#ffffffwhite
#000000black
Popover foreground
#030c05black
#f8fbf9mintcream
Primary
#2e6c90steelblue
#3e8948seagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e3bb5csandybrown
#483e89darkslateblue
Secondary foreground
#000000black
#fcfbfdsnow
Muted
#e8e8e8lavender
#0e0e11black
Muted foreground
#000000black
#9c98b3darkgray
Accent
#417fa2steelblue
#89483esienna
Accent foreground
#ffffffwhite
#fdfcfbsnow
Destructive
#e14014orangered
#f43601orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#edededwhitesmoke
#1c211dblack
Input
#dadadagainsboro
#1c211dblack
Ring
#000000black
#3e8948seagreen

Contrast

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

Light mode
Text on background19.33:1AAA
Text on card19.83:1AAA
Primary button5.71:1AA
Secondary button11.52:1AAA
Muted text17.12:1AAA
Accent4.40:1AA Large
Destructive4.25:1AA Large
Dark mode
Text on background20.15:1AAA
Text on card20.15:1AAA
Primary button4.29:1AA Large
Secondary button8.78:1AAA
Muted text6.92:1AA
Accent6.70:1AA
Destructive3.92:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0 180);
  --foreground: oklch(0.14 0.024 148.513);
  --muted: oklch(0.931 0 206.565);
  --muted-foreground: oklch(0 0 0);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.14 0.024 148.513);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.14 0.024 148.513);
  --border: oklch(0.945 0 158.199);
  --input: oklch(0.887 0 180);
  --primary: oklch(0.508 0.085 236.785);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.809 0.122 86.571);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.569 0.084 236.29);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.605 0.204 34.762);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0 0 0);
  --chart-1: oklch(0.508 0.085 236.785);
  --chart-2: oklch(0.809 0.122 86.571);
  --chart-3: oklch(0.569 0.084 236.29);
  --chart-4: oklch(0.823 0.115 86.973);
  --chart-5: oklch(0.51 0.089 237.199);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.986 0.005 149.624);
  --muted: oklch(0.166 0.005 291.96);
  --muted-foreground: oklch(0.693 0.039 291.462);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.986 0.005 149.624);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.986 0.005 149.624);
  --border: oklch(0.241 0.011 149.119);
  --input: oklch(0.241 0.011 149.119);
  --primary: oklch(0.566 0.124 146.393);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.414 0.121 285.903);
  --secondary-foreground: oklch(0.99 0.003 292.495);
  --accent: oklch(0.479 0.091 29.959);
  --accent-foreground: oklch(0.991 0.002 27.942);
  --destructive: oklch(0.628 0.229 33.319);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.566 0.124 146.393);
  --chart-1: oklch(0.566 0.124 146.393);
  --chart-2: oklch(0.414 0.121 285.903);
  --chart-3: oklch(0.479 0.091 29.959);
  --chart-4: oklch(0.436 0.129 285.82);
  --chart-5: oklch(0.573 0.132 146.165);
}