Important for shadcn/ui

Important is a shadcn/ui theme built around a vivid green primary color (#899801) with vivid purple accents (#980189). The light mode uses a neutral background (#fefefb). Dark mode keeps the vivid green primary (#899801) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefefbwhite
#000000black
Foreground
#040401black
#fdfdfcwhite
Card
#fefefbwhite
#000000black
Card foreground
#040401black
#fdfdfcwhite
Popover
#fefefbwhite
#000000black
Popover foreground
#040401black
#fdfdfcwhite
Primary
#899801olive
#899801olive
Primary foreground
#000000black
#000000black
Secondary
#018998darkcyan
#018998darkcyan
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d3dedfgainsboro
#202b2cdarkslategray
Muted foreground
#576e70dimgray
#8fa6a8darkgray
Accent
#980189darkmagenta
#980189darkmagenta
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#861804darkred
#df2707orangered
Destructive foreground
#fdc8bfpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#899801olive
#899801olive

Contrast

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

Light mode
Text on background20.31:1AAA
Text on card20.31:1AAA
Primary button6.57:1AA
Secondary button4.16:1AA Large
Muted text3.93:1AA Large
Accent7.76:1AAA
Destructive6.64:1AA
Dark mode
Text on background20.63:1AAA
Text on card20.63:1AAA
Primary button6.57:1AA
Secondary button4.16:1AA Large
Muted text5.66:1AA
Accent7.76:1AAA
Destructive4.74:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.996 0.004 111.093);
  --foreground: oklch(0.104 0.015 112.418);
  --muted: oklch(0.892 0.012 204.891);
  --muted-foreground: oklch(0.52 0.028 204.703);
  --popover: oklch(0.996 0.004 111.093);
  --popover-foreground: oklch(0.104 0.015 112.418);
  --card: oklch(0.996 0.004 111.093);
  --card-foreground: oklch(0.104 0.015 112.418);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.646 0.148 116.61);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.577 0.099 208.418);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.468 0.209 333.844);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.402 0.147 32.124);
  --destructive-foreground: oklch(0.877 0.062 29.888);
  --ring: oklch(0.646 0.148 116.61);
  --chart-1: oklch(0.646 0.148 116.61);
  --chart-2: oklch(0.577 0.099 208.418);
  --chart-3: oklch(0.468 0.209 333.844);
  --chart-4: oklch(0.618 0.106 208.529);
  --chart-5: oklch(0.653 0.15 116.703);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.994 0.002 111.052);
  --muted: oklch(0.28 0.015 204.7);
  --muted-foreground: oklch(0.708 0.026 204.759);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.994 0.002 111.052);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.994 0.002 111.052);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.646 0.148 116.61);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.577 0.099 208.418);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.468 0.209 333.844);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.581 0.219 31.563);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.646 0.148 116.61);
  --chart-1: oklch(0.646 0.148 116.61);
  --chart-2: oklch(0.577 0.099 208.418);
  --chart-3: oklch(0.468 0.209 333.844);
  --chart-4: oklch(0.618 0.106 208.529);
  --chart-5: oklch(0.653 0.15 116.703);
}