Generate feedback colors (success, warning, error, and info) for shadcn/ui
Go to generatorUsed by 4k+ developers. Want me to build your product next? Let's work together.
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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.23:1 | AAA |
| Text on card | 19.23:1 | AAA |
| Primary button | 4.22:1 | AA Large |
| Secondary button | 4.23:1 | AA Large |
| Muted text | 4.81:1 | AA |
| Accent | 4.13:1 | AA Large |
| Destructive | 6.87:1 | AA |
| Text on background | 19.43:1 | AAA |
| Text on card | 19.43:1 | AAA |
| Primary button | 4.22:1 | AA Large |
| Secondary button | 4.23:1 | AA Large |
| Muted text | 5.41:1 | AA |
| Accent | 4.13:1 | AA Large |
| Destructive | 6.82:1 | AA |
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);
}