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.
Disposition is a shadcn/ui theme built around an indigo primary color (#7976bc) with violet accents (#9b76bc). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the indigo primary (#7976bc) on an indigo-tinted background (#07070d).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f8fcghostwhite | #07070dblack |
| Foreground | #020109black | #f5f5f9whitesmoke |
| Card | #f5f5fawhitesmoke | #090911black |
| Card foreground | #010104black | #f9f8fbghostwhite |
| Popover | #f5f5fawhitesmoke | #090911black |
| Popover foreground | #010104black | #f9f8fbghostwhite |
| Primary | #7976bcslateblue | #7976bcslateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #7697bccadetblue | #7697bccadetblue |
| Secondary foreground | #000000black | #000000black |
| Muted | #d9dbddgainsboro | #222426darkslategray |
| Muted foreground | #4f5459darkslategray | #a6abb0darkgray |
| Accent | #9b76bcmediumpurple | #9b76bcmediumpurple |
| Accent foreground | #000000black | #000000black |
| Destructive | #c7150ffirebrick | #ef2c25crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7976bcslateblue | #7976bcslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.65:1 | AAA |
| Text on card | 19.17:1 | AAA |
| Primary button | 4.08:1 | AA Large |
| Secondary button | 6.90:1 | AA |
| Muted text | 5.52:1 | AA |
| Accent | 5.72:1 | AA |
| Destructive | 5.91:1 | AA |
| Text on background | 18.46:1 | AAA |
| Text on card | 18.76:1 | AAA |
| Primary button | 4.08:1 | AA Large |
| Secondary button | 6.90:1 | AA |
| Muted text | 6.76:1 | AA |
| Accent | 5.72:1 | AA |
| Destructive | 4.17:1 | AA Large |
Paste this into your globals.css to use Disposition in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.004 287.858);
--foreground: oklch(0.085 0.03 280.825);
--muted: oklch(0.891 0.004 251.485);
--muted-foreground: oklch(0.443 0.011 251.637);
--popover: oklch(0.971 0.006 287.816);
--popover-foreground: oklch(0.068 0.024 280.825);
--card: oklch(0.971 0.006 287.816);
--card-foreground: oklch(0.068 0.024 280.825);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.598 0.105 284.293);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.665 0.066 252.149);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.63 0.109 308.016);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.528 0.207 29.077);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.598 0.105 284.293);
--chart-1: oklch(0.598 0.105 284.293);
--chart-2: oklch(0.665 0.066 252.149);
--chart-3: oklch(0.63 0.109 308.016);
--chart-4: oklch(0.691 0.061 252.068);
--chart-5: oklch(0.591 0.114 283.867);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.133 0.015 285.999);
--foreground: oklch(0.972 0.006 287.831);
--muted: oklch(0.257 0.005 251.608);
--muted-foreground: oklch(0.738 0.009 251.552);
--popover: oklch(0.143 0.017 285.639);
--popover-foreground: oklch(0.981 0.004 287.868);
--card: oklch(0.143 0.017 285.639);
--card-foreground: oklch(0.981 0.004 287.868);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.598 0.105 284.293);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.665 0.066 252.149);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.63 0.109 308.016);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.614 0.228 28.448);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.598 0.105 284.293);
--chart-1: oklch(0.598 0.105 284.293);
--chart-2: oklch(0.665 0.066 252.149);
--chart-3: oklch(0.63 0.109 308.016);
--chart-4: oklch(0.691 0.061 252.068);
--chart-5: oklch(0.591 0.114 283.867);
}