Clever for shadcn/ui

Clever is a shadcn/ui theme built around a muted deep blue primary color (#3f4455) with muted deep yellow accents (#554f3f). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the muted deep blue primary (#3f4455) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfcfewhite
#000000black
Foreground
#020408black
#f5f6fawhitesmoke
Card
#f6f8fdghostwhite
#030303black
Card foreground
#010204black
#f8f9fcghostwhite
Popover
#f6f8fdghostwhite
#030303black
Popover foreground
#010204black
#f8f9fcghostwhite
Primary
#3f4455darkslategray
#3f4455darkslategray
Primary foreground
#dfe1e7gainsboro
#dfe1e7gainsboro
Secondary
#554f3fdarkolivegreen
#554f3fdarkolivegreen
Secondary foreground
#e7e5dfgainsboro
#e7e5dfgainsboro
Muted
#f4f2eblinen
#14120bblack
Muted foreground
#5e5845darkolivegreen
#bab4a1darkgray
Accent
#554f3fdarkolivegreen
#554f3fdarkolivegreen
Accent foreground
#e7e5dfgainsboro
#e7e5dfgainsboro
Destructive
#7f1806maroon
#f43b1aorangered
Destructive foreground
#fcc5bblightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3f4455darkslategray
#3f4455darkslategray

Contrast

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

Light mode
Text on background19.92:1AAA
Text on card19.56:1AAA
Primary button7.37:1AAA
Secondary button6.43:1AA
Muted text6.33:1AA
Accent6.43:1AA
Destructive6.81:1AA
Dark mode
Text on background19.44:1AAA
Text on card19.64:1AAA
Primary button7.37:1AAA
Secondary button6.43:1AA
Muted text9.06:1AAA
Accent6.43:1AA
Destructive3.82:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 271.375);
  --foreground: oklch(0.105 0.014 264.813);
  --muted: oklch(0.961 0.009 91.491);
  --muted-foreground: oklch(0.46 0.03 91.798);
  --popover: oklch(0.98 0.007 271.339);
  --popover-foreground: oklch(0.083 0.011 264.813);
  --card: oklch(0.98 0.007 271.339);
  --card-foreground: oklch(0.083 0.011 264.813);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.39 0.029 270.561);
  --primary-foreground: oklch(0.909 0.009 271.317);
  --secondary: oklch(0.43 0.027 91.796);
  --secondary-foreground: oklch(0.922 0.009 91.491);
  --accent: oklch(0.43 0.027 91.796);
  --accent-foreground: oklch(0.922 0.009 91.491);
  --destructive: oklch(0.388 0.14 32.176);
  --destructive-foreground: oklch(0.869 0.065 29.923);
  --ring: oklch(0.39 0.029 270.561);
  --chart-1: oklch(0.39 0.029 270.561);
  --chart-2: oklch(0.43 0.027 91.796);
  --chart-3: oklch(0.43 0.027 91.796);
  --chart-4: oklch(0.46 0.03 91.798);
  --chart-5: oklch(0.386 0.035 270.343);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.973 0.006 271.353);
  --muted: oklch(0.18 0.013 91.814);
  --muted-foreground: oklch(0.768 0.026 91.67);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.982 0.004 271.372);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.982 0.004 271.372);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.39 0.029 270.561);
  --primary-foreground: oklch(0.909 0.009 271.317);
  --secondary: oklch(0.43 0.027 91.796);
  --secondary-foreground: oklch(0.922 0.009 91.491);
  --accent: oklch(0.43 0.027 91.796);
  --accent-foreground: oklch(0.922 0.009 91.491);
  --destructive: oklch(0.634 0.225 32.148);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.39 0.029 270.561);
  --chart-1: oklch(0.39 0.029 270.561);
  --chart-2: oklch(0.43 0.027 91.796);
  --chart-3: oklch(0.43 0.027 91.796);
  --chart-4: oklch(0.46 0.03 91.798);
  --chart-5: oklch(0.386 0.035 270.343);
}