Intent for shadcn/ui

Intent is a shadcn/ui theme built around a blue primary color (#93c3e1) with green accents (#c3e193). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the blue primary (#93c3e1) on a blue-tinted background (#050b10).

Color palette

TokenLightDark
Background
#fcfdfdwhite
#050b10black
Foreground
#050f15black
#fcfdfdwhite
Card
#fcfdfdwhite
#050b10black
Card foreground
#050f15black
#fcfdfdwhite
Popover
#fcfdfdwhite
#050b10black
Popover foreground
#050f15black
#fcfdfdwhite
Primary
#93c3e1skyblue
#93c3e1skyblue
Primary foreground
#0e2634darkslategray
#0e2634darkslategray
Secondary
#e193c3plum
#e193c3plum
Secondary foreground
#340e26black
#340e26black
Muted
#eae6e8lavender
#191517black
Muted foreground
#66525edimgray
#ad99a6darkgray
Accent
#c3e193khaki
#c3e193khaki
Accent foreground
#26340edarkgreen
#26340edarkgreen
Destructive
#7f240bsaddlebrown
#ef6843tomato
Destructive foreground
#facec2peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#93c3e1skyblue
#93c3e1skyblue

Contrast

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

Light mode
Text on background18.93:1AAA
Text on card18.93:1AAA
Primary button8.29:1AAA
Secondary button7.41:1AAA
Muted text5.80:1AA
Accent9.21:1AAA
Destructive6.80:1AA
Dark mode
Text on background19.37:1AAA
Text on card19.37:1AAA
Primary button8.29:1AAA
Secondary button7.41:1AAA
Muted text6.78:1AA
Accent9.21:1AAA
Destructive6.73:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.001 234.526);
  --foreground: oklch(0.16 0.02 234.523);
  --muted: oklch(0.929 0.004 339.572);
  --muted-foreground: oklch(0.462 0.033 340.966);
  --popover: oklch(0.992 0.001 234.526);
  --popover-foreground: oklch(0.16 0.02 234.523);
  --card: oklch(0.992 0.001 234.526);
  --card-foreground: oklch(0.16 0.02 234.523);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.794 0.066 235.995);
  --primary-foreground: oklch(0.256 0.04 238.369);
  --secondary: oklch(0.756 0.112 342.515);
  --secondary-foreground: oklch(0.237 0.069 345.6);
  --accent: oklch(0.87 0.107 125.607);
  --accent-foreground: oklch(0.303 0.062 127.495);
  --destructive: oklch(0.401 0.129 35.284);
  --destructive-foreground: oklch(0.886 0.052 35.957);
  --ring: oklch(0.794 0.066 235.995);
  --chart-1: oklch(0.794 0.066 235.995);
  --chart-2: oklch(0.756 0.112 342.515);
  --chart-3: oklch(0.87 0.107 125.607);
  --chart-4: oklch(0.783 0.099 342.084);
  --chart-5: oklch(0.795 0.07 236.092);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.146 0.015 232.444);
  --foreground: oklch(0.992 0.001 234.526);
  --muted: oklch(0.202 0.006 340.154);
  --muted-foreground: oklch(0.705 0.029 340.366);
  --popover: oklch(0.146 0.015 232.444);
  --popover-foreground: oklch(0.992 0.001 234.526);
  --card: oklch(0.146 0.015 232.444);
  --card-foreground: oklch(0.992 0.001 234.526);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.794 0.066 235.995);
  --primary-foreground: oklch(0.256 0.04 238.369);
  --secondary: oklch(0.756 0.112 342.515);
  --secondary-foreground: oklch(0.237 0.069 345.6);
  --accent: oklch(0.87 0.107 125.607);
  --accent-foreground: oklch(0.303 0.062 127.495);
  --destructive: oklch(0.678 0.174 36.303);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.794 0.066 235.995);
  --chart-1: oklch(0.794 0.066 235.995);
  --chart-2: oklch(0.756 0.112 342.515);
  --chart-3: oklch(0.87 0.107 125.607);
  --chart-4: oklch(0.783 0.099 342.084);
  --chart-5: oklch(0.795 0.07 236.092);
}