Intentional for shadcn/ui

Intentional is a shadcn/ui theme built around a deep blue primary color (#07080d) with muted blue accents (#adb3cd). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the deep blue primary (#07080d) on a neutral background (#020203).

Color palette

TokenLightDark
Background
#fbfcfewhite
#020203black
Foreground
#03050dblack
#ffffffwhite
Card
#fbfcfewhite
#020203black
Card foreground
#03050dblack
#ffffffwhite
Popover
#fbfcfewhite
#020203black
Popover foreground
#03050dblack
#ffffffwhite
Primary
#07080dblack
#07080dblack
Primary foreground
#8893bflightslategray
#8893bflightslategray
Secondary
#c3c7d5lightgrey
#1c1e27black
Secondary foreground
#2a2e3cdarkslategray
#aeb3c6silver
Muted
#cdd2e5lightgrey
#1a1f32darkslategray
Muted foreground
#40434fdarkslategray
#b0b3bfsilver
Accent
#adb3cdlightsteelblue
#282d43darkslategray
Accent foreground
#1b1f2cblack
#c2c7dblightsteelblue
Destructive
#be4509firebrick
#f67737tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#07080dblack
#07080dblack

Contrast

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

Light mode
Text on background19.80:1AAA
Text on card19.80:1AAA
Primary button6.63:1AA
Secondary button8.00:1AAA
Muted text6.51:1AA
Accent7.90:1AAA
Destructive5.18:1AA
Dark mode
Text on background20.74:1AAA
Text on card20.74:1AAA
Primary button6.63:1AA
Secondary button7.98:1AAA
Muted text7.79:1AAA
Accent8.05:1AAA
Destructive7.58:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 275.003);
  --foreground: oklch(0.114 0.023 266.249);
  --muted: oklch(0.865 0.027 274.637);
  --muted-foreground: oklch(0.385 0.02 274.346);
  --popover: oklch(0.99 0.003 275.003);
  --popover-foreground: oklch(0.114 0.023 266.249);
  --card: oklch(0.99 0.003 275.003);
  --card-foreground: oklch(0.114 0.023 266.249);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.137 0.011 272.398);
  --primary-foreground: oklch(0.67 0.067 273.585);
  --secondary: oklch(0.831 0.02 274.734);
  --secondary-foreground: oklch(0.303 0.026 273.835);
  --accent: oklch(0.77 0.037 274.394);
  --accent-foreground: oklch(0.241 0.027 273.384);
  --destructive: oklch(0.552 0.167 40.75);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.137 0.011 272.398);
  --chart-1: oklch(0.137 0.011 272.398);
  --chart-2: oklch(0.831 0.02 274.734);
  --chart-3: oklch(0.77 0.037 274.394);
  --chart-4: oklch(0.856 0.017 274.791);
  --chart-5: oklch(0.136 0.012 272.063);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.008 271.043);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.245 0.037 272.685);
  --muted-foreground: oklch(0.769 0.017 274.763);
  --popover: oklch(0.085 0.008 271.043);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.085 0.008 271.043);
  --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.137 0.011 272.398);
  --primary-foreground: oklch(0.67 0.067 273.585);
  --secondary: oklch(0.236 0.018 273.985);
  --secondary-foreground: oklch(0.769 0.027 274.575);
  --accent: oklch(0.303 0.041 272.96);
  --accent-foreground: oklch(0.832 0.029 274.587);
  --destructive: oklch(0.707 0.173 44.557);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.137 0.011 272.398);
  --chart-1: oklch(0.137 0.011 272.398);
  --chart-2: oklch(0.236 0.018 273.985);
  --chart-3: oklch(0.303 0.041 272.96);
  --chart-4: oklch(0.265 0.021 273.909);
  --chart-5: oklch(0.136 0.012 272.063);
}