Basil for shadcn/ui

Basil is a shadcn/ui theme built around a muted cyan primary color (#97b0ba) with muted green accents (#b0ba97). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted cyan primary (#97b0ba) on a cyan-tinted background (#060c0e).

Color palette

TokenLightDark
Background
#ffffffwhite
#060c0eblack
Foreground
#000000black
#f9fafbghostwhite
Card
#ffffffwhite
#060c0eblack
Card foreground
#000000black
#f9fafbghostwhite
Popover
#ffffffwhite
#060c0eblack
Popover foreground
#000000black
#f9fafbghostwhite
Primary
#97b0badarkgray
#97b0badarkgray
Primary foreground
#0c1112black
#0c1112black
Secondary
#ba97b0darkgray
#ba97b0darkgray
Secondary foreground
#120c11black
#120c11black
Muted
#e1d5degainsboro
#2a1e27darkslategray
Muted foreground
#62505ddimgray
#af9daadarkgray
Accent
#b0ba97darkgray
#b0ba97darkgray
Accent foreground
#11120cblack
#11120cblack
Destructive
#9c110ddarkred
#ee362fcrimson
Destructive foreground
#fcdfdemistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#97b0badarkgray
#97b0badarkgray

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button8.38:1AAA
Secondary button7.48:1AAA
Muted text5.24:1AA
Accent9.22:1AAA
Destructive6.71:1AA
Dark mode
Text on background18.82:1AAA
Text on card18.82:1AAA
Primary button8.38:1AAA
Secondary button7.48:1AAA
Muted text6.28:1AA
Accent9.22:1AAA
Destructive4.03:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.886 0.018 334.877);
  --muted-foreground: oklch(0.455 0.031 335.677);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.742 0.031 221.771);
  --primary-foreground: oklch(0.172 0.008 221.828);
  --secondary: oklch(0.716 0.054 335.791);
  --secondary-foreground: oklch(0.166 0.014 335.911);
  --accent: oklch(0.771 0.049 119.684);
  --accent-foreground: oklch(0.18 0.012 119.785);
  --destructive: oklch(0.442 0.171 28.913);
  --destructive-foreground: oklch(0.927 0.033 20.119);
  --ring: oklch(0.742 0.031 221.771);
  --chart-1: oklch(0.742 0.031 221.771);
  --chart-2: oklch(0.716 0.054 335.791);
  --chart-3: oklch(0.771 0.049 119.684);
  --chart-4: oklch(0.742 0.049 335.635);
  --chart-5: oklch(0.744 0.036 221.86);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.149 0.011 220.465);
  --foreground: oklch(0.985 0.002 221.322);
  --muted: oklch(0.252 0.024 336.141);
  --muted-foreground: oklch(0.715 0.028 335.192);
  --popover: oklch(0.149 0.011 220.465);
  --popover-foreground: oklch(0.985 0.002 221.322);
  --card: oklch(0.149 0.011 220.465);
  --card-foreground: oklch(0.985 0.002 221.322);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.742 0.031 221.771);
  --primary-foreground: oklch(0.172 0.008 221.828);
  --secondary: oklch(0.716 0.054 335.791);
  --secondary-foreground: oklch(0.166 0.014 335.911);
  --accent: oklch(0.771 0.049 119.684);
  --accent-foreground: oklch(0.18 0.012 119.785);
  --destructive: oklch(0.621 0.22 27.876);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.742 0.031 221.771);
  --chart-1: oklch(0.742 0.031 221.771);
  --chart-2: oklch(0.716 0.054 335.791);
  --chart-3: oklch(0.771 0.049 119.684);
  --chart-4: oklch(0.742 0.049 335.635);
  --chart-5: oklch(0.744 0.036 221.86);
}