Generate feedback colors (success, warning, error, and info) for shadcn/ui

Go to generator

10000+Themes for shadcn/ui

Input for shadcn/ui

Input is a shadcn/ui theme built around a deep green primary color (#226323) with muted green accents (#accdad). The light mode uses a neutral background (#f7fdf7). Dark mode keeps the deep green primary (#226323) on a neutral background (#030803).

Color palette

TokenLightDark
Background
#f7fdf7mintcream
#030803black
Foreground
#010401black
#f9fbf9mintcream
Card
#f3fcf3honeydew
#040b04black
Card foreground
#000000black
#fcfdfcwhite
Popover
#f3fcf3honeydew
#040b04black
Popover foreground
#000000black
#fcfdfcwhite
Primary
#226323forestgreen
#226323forestgreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#c3d5c4silver
#273a27darkslategray
Secondary foreground
#2a3c2bdarkslategray
#bfd4bfsilver
Muted
#edf7edhoneydew
#081208black
Muted foreground
#4d564ddarkslategray
#a9b2a9darkgray
Accent
#accdadsilver
#2d522edarkslategray
Accent foreground
#1b2d1bblack
#cee4celightgrey
Destructive
#b02607firebrick
#f75a36tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#226323forestgreen
#226323forestgreen

Contrast

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

Light mode
Text on background19.93:1AAA
Text on card19.98:1AAA
Primary button7.32:1AAA
Secondary button7.64:1AAA
Muted text6.96:1AA
Accent8.42:1AAA
Destructive6.69:1AA
Dark mode
Text on background19.46:1AAA
Text on card19.48:1AAA
Primary button7.32:1AAA
Secondary button7.76:1AAA
Muted text8.76:1AAA
Accent6.59:1AA
Destructive6.44:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.009 145.977);
  --foreground: oklch(0.098 0.022 144.202);
  --muted: oklch(0.967 0.017 145.909);
  --muted-foreground: oklch(0.443 0.02 145.682);
  --popover: oklch(0.981 0.014 145.937);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.014 145.937);
  --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.442 0.117 143.53);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.854 0.03 145.765);
  --secondary-foreground: oklch(0.334 0.037 145.095);
  --accent: oklch(0.816 0.057 145.461);
  --accent-foreground: oklch(0.274 0.04 144.78);
  --destructive: oklch(0.495 0.178 32.962);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.442 0.117 143.53);
  --chart-1: oklch(0.442 0.117 143.53);
  --chart-2: oklch(0.854 0.03 145.765);
  --chart-3: oklch(0.816 0.057 145.461);
  --chart-4: oklch(0.876 0.025 145.817);
  --chart-5: oklch(0.447 0.122 143.427);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.021 144.645);
  --foreground: oklch(0.986 0.003 146.03);
  --muted: oklch(0.168 0.026 144.736);
  --muted-foreground: oklch(0.754 0.017 145.864);
  --popover: oklch(0.139 0.024 144.635);
  --popover-foreground: oklch(0.993 0.001 146.042);
  --card: oklch(0.139 0.024 144.635);
  --card-foreground: oklch(0.993 0.001 146.042);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.442 0.117 143.53);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.326 0.042 144.945);
  --secondary-foreground: oklch(0.849 0.037 145.693);
  --accent: oklch(0.401 0.073 144.406);
  --accent-foreground: oklch(0.896 0.038 145.705);
  --destructive: oklch(0.67 0.199 34.109);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.442 0.117 143.53);
  --chart-1: oklch(0.442 0.117 143.53);
  --chart-2: oklch(0.326 0.042 144.945);
  --chart-3: oklch(0.401 0.073 144.406);
  --chart-4: oklch(0.358 0.047 144.911);
  --chart-5: oklch(0.447 0.122 143.427);
}