Considerate for shadcn/ui

Considerate is a shadcn/ui theme built around a blue primary color (#8595e0) with muted light blue accents (#ccced7). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the blue primary (#8595e0) on a blue-tinted background (#040710).

Color palette

TokenLightDark
Background
#fbfcfewhite
#040710black
Foreground
#040716black
#fcfcfdwhite
Card
#fbfcfewhite
#040710black
Card foreground
#040716black
#fcfcfdwhite
Popover
#fbfcfewhite
#040710black
Popover foreground
#040716black
#fcfcfdwhite
Primary
#8595e0cornflowerblue
#8595e0cornflowerblue
Primary foreground
#0a1029black
#0a1029black
Secondary
#ccced7lightgrey
#131316black
Secondary foreground
#31343fdarkslategray
#a7a9b4darkgray
Muted
#e3e4e8gainsboro
#17181cblack
Muted foreground
#464a5ddarkslategray
#a2a6b9darkgray
Accent
#ccced7lightgrey
#131316black
Accent foreground
#31343fdarkslategray
#a7a9b4darkgray
Destructive
#732407maroon
#f26836tomato
Destructive foreground
#fac5b2lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8595e0cornflowerblue
#8595e0cornflowerblue

Contrast

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

Light mode
Text on background19.50:1AAA
Text on card19.50:1AAA
Primary button6.61:1AA
Secondary button7.86:1AAA
Muted text6.90:1AA
Accent7.86:1AAA
Destructive6.89:1AA
Dark mode
Text on background19.65:1AAA
Text on card19.65:1AAA
Primary button6.61:1AA
Secondary button7.91:1AAA
Muted text7.32:1AAA
Accent7.91:1AAA
Destructive6.81:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 276.13);
  --foreground: oklch(0.135 0.033 268.538);
  --muted: oklch(0.92 0.005 276.101);
  --muted-foreground: oklch(0.414 0.032 275.035);
  --popover: oklch(0.99 0.003 276.13);
  --popover-foreground: oklch(0.135 0.033 268.538);
  --card: oklch(0.99 0.003 276.13);
  --card-foreground: oklch(0.135 0.033 268.538);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.689 0.112 273.473);
  --primary-foreground: oklch(0.183 0.051 271.029);
  --secondary: oklch(0.851 0.013 275.969);
  --secondary-foreground: oklch(0.326 0.02 275.293);
  --accent: oklch(0.851 0.013 275.969);
  --accent-foreground: oklch(0.326 0.02 275.293);
  --destructive: oklch(0.379 0.117 37.918);
  --destructive-foreground: oklch(0.867 0.066 40.915);
  --ring: oklch(0.689 0.112 273.473);
  --chart-1: oklch(0.689 0.112 273.473);
  --chart-2: oklch(0.851 0.013 275.969);
  --chart-3: oklch(0.851 0.013 275.969);
  --chart-4: oklch(0.877 0.01 276.009);
  --chart-5: oklch(0.685 0.118 273.294);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.129 0.023 270.121);
  --foreground: oklch(0.992 0.001 276.154);
  --muted: oklch(0.211 0.007 275.733);
  --muted-foreground: oklch(0.728 0.027 275.646);
  --popover: oklch(0.129 0.023 270.121);
  --popover-foreground: oklch(0.992 0.001 276.154);
  --card: oklch(0.129 0.023 270.121);
  --card-foreground: oklch(0.992 0.001 276.154);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.689 0.112 273.473);
  --primary-foreground: oklch(0.183 0.051 271.029);
  --secondary: oklch(0.189 0.005 275.772);
  --secondary-foreground: oklch(0.737 0.016 275.883);
  --accent: oklch(0.189 0.005 275.772);
  --accent-foreground: oklch(0.737 0.016 275.883);
  --destructive: oklch(0.681 0.182 39.363);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.689 0.112 273.473);
  --chart-1: oklch(0.689 0.112 273.473);
  --chart-2: oklch(0.189 0.005 275.772);
  --chart-3: oklch(0.189 0.005 275.772);
  --chart-4: oklch(0.221 0.007 275.717);
  --chart-5: oklch(0.685 0.118 273.294);
}