Intellect for shadcn/ui

Intellect is a shadcn/ui theme built around a muted deep green primary color (#2b4a38) with muted light green accents (#bcd2c5). The light mode uses a neutral background (#f7fdf9). Dark mode keeps the muted deep green primary (#2b4a38) on a green-tinted background (#040b07).

Color palette

TokenLightDark
Background
#f7fdf9mintcream
#040b07black
Foreground
#010402black
#f5f9f7whitesmoke
Card
#f3fcf6mintcream
#060f09black
Card foreground
#000000black
#f9fbfamintcream
Popover
#f7fdf9mintcream
#040b07black
Popover foreground
#010402black
#f5f9f7whitesmoke
Primary
#2b4a38darkslategray
#2b4a38darkslategray
Primary foreground
#c8dfd1lightgrey
#c8dfd1lightgrey
Secondary
#dae2ddgainsboro
#323433darkslategray
Secondary foreground
#3d4d43darkslategray
#cbcdcclightgrey
Muted
#d2e5d9gainsboro
#1a2d22darkslategray
Muted foreground
#4d4d4ddarkslategray
#b3b3b3darkgray
Accent
#bcd2c5silver
#414e46darkslategray
Accent foreground
#25372cdarkslategray
#dee3e0gainsboro
Destructive
#aa3609firebrick
#f5713dtomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2b4a38darkslategray
#2b4a38darkslategray

Contrast

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

Light mode
Text on background19.97:1AAA
Text on card20.04:1AAA
Primary button6.98:1AA
Secondary button6.78:1AA
Muted text6.41:1AA
Accent7.92:1AAA
Destructive6.48:1AA
Dark mode
Text on background18.70:1AAA
Text on card18.72:1AAA
Primary button6.98:1AA
Secondary button7.84:1AAA
Muted text6.91:1AA
Accent6.74:1AA
Destructive7.31:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.008 160.049);
  --foreground: oklch(0.099 0.016 160.099);
  --muted: oklch(0.904 0.026 159.565);
  --muted-foreground: oklch(0.418 0 173.29);
  --popover: oklch(0.988 0.008 160.049);
  --popover-foreground: oklch(0.099 0.016 160.099);
  --card: oklch(0.982 0.012 159.954);
  --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.379 0.048 156.83);
  --primary-foreground: oklch(0.883 0.03 159.425);
  --secondary: oklch(0.905 0.011 159.961);
  --secondary-foreground: oklch(0.403 0.027 158.617);
  --accent: oklch(0.844 0.03 159.381);
  --accent-foreground: oklch(0.317 0.031 157.747);
  --destructive: oklch(0.499 0.158 37.936);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.379 0.048 156.83);
  --chart-1: oklch(0.379 0.048 156.83);
  --chart-2: oklch(0.905 0.011 159.961);
  --chart-3: oklch(0.844 0.03 159.381);
  --chart-4: oklch(0.927 0.008 160.03);
  --chart-5: oklch(0.383 0.053 156.44);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.017 160.034);
  --foreground: oklch(0.98 0.005 160.106);
  --muted: oklch(0.278 0.033 157.088);
  --muted-foreground: oklch(0.765 0 172.405);
  --popover: oklch(0.14 0.017 160.034);
  --popover-foreground: oklch(0.98 0.005 160.106);
  --card: oklch(0.156 0.02 158.776);
  --card-foreground: oklch(0.986 0.004 160.149);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.379 0.048 156.83);
  --primary-foreground: oklch(0.883 0.03 159.425);
  --secondary: oklch(0.323 0.004 159.98);
  --secondary-foreground: oklch(0.846 0.003 160.158);
  --accent: oklch(0.409 0.021 159.015);
  --accent-foreground: oklch(0.911 0.007 160.047);
  --destructive: oklch(0.699 0.175 40.888);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.379 0.048 156.83);
  --chart-1: oklch(0.379 0.048 156.83);
  --chart-2: oklch(0.323 0.004 159.98);
  --chart-3: oklch(0.409 0.021 159.015);
  --chart-4: oklch(0.353 0.004 159.973);
  --chart-5: oklch(0.383 0.053 156.44);
}