Import for shadcn/ui

Import is a shadcn/ui theme built around a muted green primary color (#aecbb5) with muted light green accents (#d5e2d8). The light mode uses a neutral background (#f7fdf8). Dark mode keeps the muted green primary (#aecbb5) on a green-tinted background (#060e08).

Color palette

TokenLightDark
Background
#f7fdf8mintcream
#060e08black
Foreground
#000000black
#f9fbf9mintcream
Card
#f7fdf8mintcream
#060e08black
Card foreground
#000000black
#f9fbf9mintcream
Popover
#f7fdf8mintcream
#060e08black
Popover foreground
#000000black
#f9fbf9mintcream
Primary
#aecbb5silver
#aecbb5silver
Primary foreground
#1c2c20black
#1c2c20black
Secondary
#e8ede9linen
#2d2f2ddarkslategray
Secondary foreground
#475c4cdarkslategray
#c6c8c6silver
Muted
#ebefecwhitesmoke
#101411black
Muted foreground
#535554dimgray
#aaacaadarkgray
Accent
#d5e2d8gainsboro
#3b443edarkslategray
Accent foreground
#364f3cdarkslategray
#d6dbd7gainsboro
Destructive
#cf1107firebrick
#f7362borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#aecbb5silver
#aecbb5silver

Contrast

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

Light mode
Text on background20.36:1AAA
Text on card20.36:1AAA
Primary button8.41:1AAA
Secondary button6.11:1AA
Muted text6.47:1AA
Accent6.70:1AA
Destructive5.62:1AA
Dark mode
Text on background18.78:1AAA
Text on card18.78:1AAA
Primary button8.41:1AAA
Secondary button8.03:1AAA
Muted text8.14:1AAA
Accent7.17:1AAA
Destructive3.80:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.009 153.718);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.948 0.005 153.784);
  --muted-foreground: oklch(0.448 0.003 153.765);
  --popover: oklch(0.988 0.009 153.718);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.988 0.009 153.718);
  --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.815 0.044 152.93);
  --primary-foreground: oklch(0.273 0.03 151.796);
  --secondary: oklch(0.942 0.008 153.738);
  --secondary-foreground: oklch(0.453 0.037 152.415);
  --accent: oklch(0.9 0.02 153.496);
  --accent-foreground: oklch(0.401 0.044 151.811);
  --destructive: oklch(0.541 0.215 29.512);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.815 0.044 152.93);
  --chart-1: oklch(0.815 0.044 152.93);
  --chart-2: oklch(0.942 0.008 153.738);
  --chart-3: oklch(0.9 0.02 153.496);
  --chart-4: oklch(0.964 0.005 153.793);
  --chart-5: oklch(0.818 0.05 152.8);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.153 0.018 152.8);
  --foreground: oklch(0.986 0.003 153.822);
  --muted: oklch(0.185 0.008 153.141);
  --muted-foreground: oklch(0.742 0.003 153.818);
  --popover: oklch(0.153 0.018 152.8);
  --popover-foreground: oklch(0.986 0.003 153.822);
  --card: oklch(0.153 0.018 152.8);
  --card-foreground: oklch(0.986 0.003 153.822);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.815 0.044 152.93);
  --primary-foreground: oklch(0.273 0.03 151.796);
  --secondary: oklch(0.302 0.004 153.677);
  --secondary-foreground: oklch(0.831 0.003 153.808);
  --accent: oklch(0.377 0.016 153.123);
  --accent-foreground: oklch(0.887 0.008 153.725);
  --destructive: oklch(0.637 0.229 28.688);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.815 0.044 152.93);
  --chart-1: oklch(0.815 0.044 152.93);
  --chart-2: oklch(0.302 0.004 153.677);
  --chart-3: oklch(0.377 0.016 153.123);
  --chart-4: oklch(0.333 0.004 153.67);
  --chart-5: oklch(0.818 0.05 152.8);
}