Important for shadcn/ui

Important is a shadcn/ui theme built around a vivid green primary color (#42da01) with muted light green accents (#dde1db). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#42da01) on a green-tinted background (#090e06).

Color palette

TokenLightDark
Background
#ffffffwhite
#090e06black
Foreground
#020401black
#f6faf5whitesmoke
Card
#fcfcfcsnow
#0b1108black
Card foreground
#000000black
#f9fbf8mintcream
Popover
#fcfcfcsnow
#0b1108black
Popover foreground
#000000black
#f9fbf8mintcream
Primary
#42da01limegreen
#42da01limegreen
Primary foreground
#050f00black
#050f00black
Secondary
#dde1dbgainsboro
#171716black
Secondary foreground
#434a3fdarkslategray
#afb2aedarkgray
Muted
#d6e8cegainsboro
#1f3117black
Muted foreground
#424441darkslategray
#bcbebbsilver
Accent
#dde1dbgainsboro
#171716black
Accent foreground
#434a3fdarkslategray
#afb2aedarkgray
Destructive
#a83200firebrick
#ff540aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#42da01limegreen
#42da01limegreen

Contrast

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

Light mode
Text on background20.58:1AAA
Text on card20.54:1AAA
Primary button10.49:1AAA
Secondary button6.90:1AA
Muted text7.64:1AAA
Accent6.90:1AA
Destructive6.69:1AA
Dark mode
Text on background18.49:1AAA
Text on card18.33:1AAA
Primary button10.49:1AAA
Secondary button8.35:1AAA
Muted text7.47:1AAA
Accent8.35:1AAA
Destructive3.22:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.099 0.016 134.469);
  --muted: oklch(0.911 0.039 136.184);
  --muted-foreground: oklch(0.383 0.005 136.07);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.778 0.251 140.179);
  --primary-foreground: oklch(0.152 0.043 133.714);
  --secondary: oklch(0.904 0.008 136.055);
  --secondary-foreground: oklch(0.4 0.021 136.218);
  --accent: oklch(0.904 0.008 136.055);
  --accent-foreground: oklch(0.4 0.021 136.218);
  --destructive: oklch(0.492 0.161 37.903);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.778 0.251 140.179);
  --chart-1: oklch(0.778 0.251 140.179);
  --chart-2: oklch(0.904 0.008 136.055);
  --chart-3: oklch(0.904 0.008 136.055);
  --chart-4: oklch(0.926 0.006 136.046);
  --chart-5: oklch(0.786 0.255 140.298);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.155 0.019 135.476);
  --foreground: oklch(0.98 0.007 136.047);
  --muted: oklch(0.288 0.05 136.876);
  --muted-foreground: oklch(0.799 0.004 136.041);
  --popover: oklch(0.169 0.022 136.299);
  --popover-foreground: oklch(0.987 0.005 136.039);
  --card: oklch(0.169 0.022 136.299);
  --card-foreground: oklch(0.987 0.005 136.039);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.778 0.251 140.179);
  --primary-foreground: oklch(0.152 0.043 133.714);
  --secondary: oklch(0.205 0.002 136.058);
  --secondary-foreground: oklch(0.759 0.005 136.046);
  --accent: oklch(0.205 0.002 136.058);
  --accent-foreground: oklch(0.759 0.005 136.046);
  --destructive: oklch(0.675 0.218 37.932);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.778 0.251 140.179);
  --chart-1: oklch(0.778 0.251 140.179);
  --chart-2: oklch(0.205 0.002 136.058);
  --chart-3: oklch(0.205 0.002 136.058);
  --chart-4: oklch(0.239 0.003 136.062);
  --chart-5: oklch(0.786 0.255 140.298);
}