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.
Max is a shadcn/ui theme built around a near-white primary color (#f6f7fe) with muted light blue accents (#e0e1e6). The light mode uses a neutral background (#f7f8fc). Dark mode keeps the near-white primary (#f6f7fe) on a blue-tinted background (#05060a).
| Token | Light | Dark |
|---|---|---|
| Background | #f7f8fcghostwhite | #05060ablack |
| Foreground | #030611black | #fcfcfdwhite |
| Card | #f7f8fcghostwhite | #05060ablack |
| Card foreground | #030611black | #fcfcfdwhite |
| Popover | #f7f8fcghostwhite | #05060ablack |
| Popover foreground | #030611black | #fcfcfdwhite |
| Primary | #f6f7feghostwhite | #f6f7feghostwhite |
| Primary foreground | #1632acdarkslateblue | #1632acdarkslateblue |
| Secondary | #e0e1e6gainsboro | #272930darkslategray |
| Secondary foreground | #414453darkslategray | #bec1casilver |
| Muted | #daddecgainsboro | #131725black |
| Muted foreground | #4f5054darkslategray | #abacb0darkgray |
| Accent | #e0e1e6gainsboro | #272930darkslategray |
| Accent foreground | #414453darkslategray | #bec1casilver |
| Destructive | #d01f0bfirebrick | #e9220cred |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f6f7feghostwhite | #f6f7feghostwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.11:1 | AAA |
| Text on card | 19.11:1 | AAA |
| Primary button | 9.44:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.97:1 | AA |
| Accent | 7.37:1 | AAA |
| Destructive | 5.39:1 | AA |
| Text on background | 19.74:1 | AAA |
| Text on card | 19.74:1 | AAA |
| Primary button | 9.44:1 | AAA |
| Secondary button | 8.10:1 | AAA |
| Muted text | 7.88:1 | AAA |
| Accent | 8.10:1 | AAA |
| Destructive | 4.48:1 | AA Large |
Paste this into your globals.css to use Max in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.006 276.091);
--foreground: oklch(0.124 0.028 267.812);
--muted: oklch(0.901 0.02 275.872);
--muted-foreground: oklch(0.432 0.007 275.962);
--popover: oklch(0.98 0.006 276.091);
--popover-foreground: oklch(0.124 0.028 267.812);
--card: oklch(0.98 0.006 276.091);
--card-foreground: oklch(0.124 0.028 267.812);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.978 0.009 276.049);
--primary-foreground: oklch(0.393 0.195 266.202);
--secondary: oklch(0.91 0.008 276.057);
--secondary-foreground: oklch(0.391 0.025 275.241);
--accent: oklch(0.91 0.008 276.057);
--accent-foreground: oklch(0.391 0.025 275.241);
--destructive: oklch(0.55 0.211 30.448);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.978 0.009 276.049);
--chart-1: oklch(0.978 0.009 276.049);
--chart-2: oklch(0.91 0.008 276.057);
--chart-3: oklch(0.91 0.008 276.057);
--chart-4: oklch(0.935 0.005 276.089);
--chart-5: oklch(0.978 0.009 276.045);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.011 272.55);
--foreground: oklch(0.992 0.001 276.154);
--muted: oklch(0.207 0.029 273.93);
--muted-foreground: oklch(0.744 0.006 276.064);
--popover: oklch(0.123 0.011 272.55);
--popover-foreground: oklch(0.992 0.001 276.154);
--card: oklch(0.123 0.011 272.55);
--card-foreground: oklch(0.992 0.001 276.154);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.978 0.009 276.049);
--primary-foreground: oklch(0.393 0.195 266.202);
--secondary: oklch(0.281 0.013 275.504);
--secondary-foreground: oklch(0.811 0.014 275.943);
--accent: oklch(0.281 0.013 275.504);
--accent-foreground: oklch(0.811 0.014 275.943);
--destructive: oklch(0.596 0.23 30.425);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.978 0.009 276.049);
--chart-1: oklch(0.978 0.009 276.049);
--chart-2: oklch(0.281 0.013 275.504);
--chart-3: oklch(0.281 0.013 275.504);
--chart-4: oklch(0.31 0.015 275.475);
--chart-5: oklch(0.978 0.009 276.045);
}