Gentle for shadcn/ui

Gentle is a shadcn/ui theme built around a vivid blue primary color (#3f98fd) with vivid indigo accents (#453ffd). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the vivid blue primary (#3f98fd) on a blue-tinted background (#040a10).

Color palette

TokenLightDark
Background
#fcfcfdwhite
#040a10black
Foreground
#000000black
#ffffffwhite
Card
#f8fafbghostwhite
#050c14black
Card foreground
#000000black
#ffffffwhite
Popover
#f8fafbghostwhite
#050c14black
Popover foreground
#000000black
#ffffffwhite
Primary
#3f98fddodgerblue
#3f98fddodgerblue
Primary foreground
#00050ablack
#00050ablack
Secondary
#3ff7fdturquoise
#3ff7fdturquoise
Secondary foreground
#000a0ablack
#000a0ablack
Muted
#ebefefwhitesmoke
#101414black
Muted foreground
#546464dimgray
#9bababdarkgray
Accent
#453ffdroyalblue
#453ffdroyalblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d02d11firebrick
#d42e11firebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3f98fddodgerblue
#3f98fddodgerblue

Contrast

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

Light mode
Text on background20.52:1AAA
Text on card20.05:1AAA
Primary button6.92:1AA
Secondary button15.17:1AAA
Muted text5.36:1AA
Accent6.19:1AA
Destructive5.17:1AA
Dark mode
Text on background19.89:1AAA
Text on card19.61:1AAA
Primary button6.92:1AA
Secondary button15.17:1AAA
Muted text7.78:1AAA
Accent6.19:1AA
Destructive4.98:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.001 251.462);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.95 0.005 199.537);
  --muted-foreground: oklch(0.488 0.019 199.095);
  --popover: oklch(0.984 0.003 251.473);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.984 0.003 251.473);
  --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.675 0.172 254.133);
  --primary-foreground: oklch(0.107 0.023 236.783);
  --secondary: oklch(0.891 0.14 198.507);
  --secondary-foreground: oklch(0.13 0.022 196.761);
  --accent: oklch(0.519 0.267 273.402);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.558 0.201 32.038);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.675 0.172 254.133);
  --chart-1: oklch(0.675 0.172 254.133);
  --chart-2: oklch(0.891 0.14 198.507);
  --chart-3: oklch(0.519 0.267 273.402);
  --chart-4: oklch(0.895 0.135 198.425);
  --chart-5: oklch(0.675 0.177 254.284);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.018 246.711);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.187 0.007 199.124);
  --muted-foreground: oklch(0.729 0.018 199.281);
  --popover: oklch(0.152 0.021 249.643);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.152 0.021 249.643);
  --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.675 0.172 254.133);
  --primary-foreground: oklch(0.107 0.023 236.783);
  --secondary: oklch(0.891 0.14 198.507);
  --secondary-foreground: oklch(0.13 0.022 196.761);
  --accent: oklch(0.519 0.267 273.402);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.568 0.205 32.028);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.675 0.172 254.133);
  --chart-1: oklch(0.675 0.172 254.133);
  --chart-2: oklch(0.891 0.14 198.507);
  --chart-3: oklch(0.519 0.267 273.402);
  --chart-4: oklch(0.895 0.135 198.425);
  --chart-5: oklch(0.675 0.177 254.284);
}