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.
Contention is a shadcn/ui theme built around a green primary color (#8dce90) with red accents (#ce908d). The light mode uses a neutral background (#f7fdf8). Dark mode keeps the green primary (#8dce90) on a green-tinted background (#030c04).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdf8mintcream | #030c04black |
| Foreground | #020802black | #f6f9f6whitesmoke |
| Card | #f3fbf4whitesmoke | #041005black |
| Card foreground | #010401black | #f9fbf9mintcream |
| Popover | #f7fdf8mintcream | #030c04black |
| Popover foreground | #020802black | #f6f9f6whitesmoke |
| Primary | #8dce90darkseagreen | #8dce90darkseagreen |
| Primary foreground | #0c1d0dblack | #0c1d0dblack |
| Secondary | #908dcemediumpurple | #908dcemediumpurple |
| Secondary foreground | #0d0c1dblack | #0d0c1dblack |
| Muted | #eeeef1whitesmoke | #0e0e11black |
| Muted foreground | #444446darkslategray | #bab9bbsilver |
| Accent | #ce908drosybrown | #ce908drosybrown |
| Accent foreground | #1d0d0cblack | #1d0d0cblack |
| Destructive | #6d1908maroon | #ed3612orangered |
| Destructive foreground | #f9bbaelightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8dce90darkseagreen | #8dce90darkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.55:1 | AAA |
| Text on card | 19.58:1 | AAA |
| Primary button | 9.49:1 | AAA |
| Secondary button | 6.32:1 | AA |
| Muted text | 8.40:1 | AAA |
| Accent | 7.17:1 | AAA |
| Destructive | 7.10:1 | AAA |
| Text on background | 18.70:1 | AAA |
| Text on card | 18.65:1 | AAA |
| Primary button | 9.49:1 | AAA |
| Secondary button | 6.32:1 | AA |
| Muted text | 9.87:1 | AAA |
| Accent | 7.17:1 | AAA |
| Destructive | 4.07:1 | AA Large |
Paste this into your globals.css to use Contention in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.008 146.958);
--foreground: oklch(0.123 0.026 145.366);
--muted: oklch(0.951 0.004 288.629);
--muted-foreground: oklch(0.388 0.002 288.599);
--popover: oklch(0.987 0.008 146.958);
--popover-foreground: oklch(0.123 0.026 145.366);
--card: oklch(0.981 0.013 146.917);
--card-foreground: oklch(0.098 0.021 145.366);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.792 0.109 145.641);
--primary-foreground: oklch(0.209 0.037 145.174);
--secondary: oklch(0.671 0.096 285.794);
--secondary-foreground: oklch(0.166 0.034 284.379);
--accent: oklch(0.713 0.076 22.508);
--accent-foreground: oklch(0.182 0.027 23.301);
--destructive: oklch(0.355 0.12 32.995);
--destructive-foreground: oklch(0.845 0.075 31.48);
--ring: oklch(0.792 0.109 145.641);
--chart-1: oklch(0.792 0.109 145.641);
--chart-2: oklch(0.671 0.096 285.794);
--chart-3: oklch(0.713 0.076 22.508);
--chart-4: oklch(0.702 0.086 286.25);
--chart-5: oklch(0.795 0.117 145.542);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.027 145.496);
--foreground: oklch(0.979 0.005 146.988);
--muted: oklch(0.164 0.006 287.972);
--muted-foreground: oklch(0.788 0.002 288.664);
--popover: oklch(0.14 0.027 145.496);
--popover-foreground: oklch(0.979 0.005 146.988);
--card: oklch(0.157 0.032 145.322);
--card-foreground: oklch(0.986 0.003 147.005);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.792 0.109 145.641);
--primary-foreground: oklch(0.209 0.037 145.174);
--secondary: oklch(0.671 0.096 285.794);
--secondary-foreground: oklch(0.166 0.034 284.379);
--accent: oklch(0.713 0.076 22.508);
--accent-foreground: oklch(0.182 0.027 23.301);
--destructive: oklch(0.618 0.222 32.511);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.792 0.109 145.641);
--chart-1: oklch(0.792 0.109 145.641);
--chart-2: oklch(0.671 0.096 285.794);
--chart-3: oklch(0.713 0.076 22.508);
--chart-4: oklch(0.702 0.086 286.25);
--chart-5: oklch(0.795 0.117 145.542);
}