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

Go to generator

10000+Themes for shadcn/ui

Plough for shadcn/ui

Plough is a shadcn/ui theme built around a neutral gray primary color (#7e7986) with neutral gray accents (#857986). The light mode uses a neutral background (#f9f6fd). Dark mode keeps the neutral gray primary (#7e7986) on a neutral background (#050307).

Color palette

TokenLightDark
Background
#f9f6fdghostwhite
#050307black
Foreground
#07020dblack
#faf8fbghostwhite
Card
#f9f6fdghostwhite
#050307black
Card foreground
#07020dblack
#faf8fbghostwhite
Popover
#f9f6fdghostwhite
#050307black
Popover foreground
#07020dblack
#faf8fbghostwhite
Primary
#7e7986gray
#7e7986gray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#797a86gray
#797a86gray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dadbe7gainsboro
#181925black
Muted foreground
#595b73dimgray
#8c8ea6lightslategray
Accent
#857986gray
#857986gray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#731e02maroon
#fb602dtomato
Destructive foreground
#fdbfaalightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7e7986gray
#7e7986gray

Contrast

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

Light mode
Text on background19.23:1AAA
Text on card19.23:1AAA
Primary button4.22:1AA Large
Secondary button4.23:1AA Large
Muted text4.81:1AA
Accent4.13:1AA Large
Destructive6.87:1AA
Dark mode
Text on background19.43:1AAA
Text on card19.43:1AAA
Primary button4.22:1AA Large
Secondary button4.23:1AA Large
Muted text5.41:1AA
Accent4.13:1AA Large
Destructive6.82:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.978 0.01 304.202);
  --foreground: oklch(0.111 0.032 305.301);
  --muted: oklch(0.894 0.017 280.983);
  --muted-foreground: oklch(0.479 0.038 279.872);
  --popover: oklch(0.978 0.01 304.202);
  --popover-foreground: oklch(0.111 0.032 305.301);
  --card: oklch(0.978 0.01 304.202);
  --card-foreground: oklch(0.111 0.032 305.301);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.585 0.02 303.854);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.584 0.017 280.788);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.591 0.023 322.784);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.372 0.123 36.649);
  --destructive-foreground: oklch(0.856 0.078 39.222);
  --ring: oklch(0.585 0.02 303.854);
  --chart-1: oklch(0.585 0.02 303.854);
  --chart-2: oklch(0.584 0.017 280.788);
  --chart-3: oklch(0.591 0.023 322.784);
  --chart-4: oklch(0.61 0.016 280.846);
  --chart-5: oklch(0.578 0.032 303.545);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.106 0.014 304.981);
  --foreground: oklch(0.982 0.004 304.281);
  --muted: oklch(0.219 0.024 279.312);
  --muted-foreground: oklch(0.654 0.035 280.357);
  --popover: oklch(0.106 0.014 304.981);
  --popover-foreground: oklch(0.982 0.004 304.281);
  --card: oklch(0.106 0.014 304.981);
  --card-foreground: oklch(0.982 0.004 304.281);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.585 0.02 303.854);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.584 0.017 280.788);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.591 0.023 322.784);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.684 0.199 37.76);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.585 0.02 303.854);
  --chart-1: oklch(0.585 0.02 303.854);
  --chart-2: oklch(0.584 0.017 280.788);
  --chart-3: oklch(0.591 0.023 322.784);
  --chart-4: oklch(0.61 0.016 280.846);
  --chart-5: oklch(0.578 0.032 303.545);
}