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.
Steam is a shadcn/ui theme built around a green primary color (#5e6e2b) with indigo accents (#3b2b6e). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#5e6e2b) on a green-tinted background (#0d1005).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0d1005black |
| Foreground | #030401black | #fdfdfcwhite |
| Card | #fcfcfcsnow | #101406black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #101406black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #5e6e2bdarkolivegreen | #5e6e2bdarkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #3b2b6edarkslateblue | #3b2b6edarkslateblue |
| Secondary foreground | #e0daf1lavender | #e0daf1lavender |
| Muted | #e4e0f0lavender | #130f1fblack |
| Muted foreground | #5b5a5edimgray | #a2a1a5darkgray |
| Accent | #3b2b6edarkslateblue | #3b2b6edarkslateblue |
| Accent foreground | #e0daf1lavender | #e0daf1lavender |
| Destructive | #ae2513firebrick | #e8422cchocolate |
| Destructive foreground | #fef7f6snow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5e6e2bdarkolivegreen | #5e6e2bdarkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.55:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 5.59:1 | AA |
| Secondary button | 8.82:1 | AAA |
| Muted text | 5.29:1 | AA |
| Accent | 8.82:1 | AAA |
| Destructive | 6.42:1 | AA |
| Text on background | 18.88:1 | AAA |
| Text on card | 18.68:1 | AAA |
| Primary button | 5.59:1 | AA |
| Secondary button | 8.82:1 | AAA |
| Muted text | 7.32:1 | AAA |
| Accent | 8.82:1 | AAA |
| Destructive | 4.01:1 | AA Large |
Paste this into your globals.css to use Steam in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.101 0.013 117.364);
--muted: oklch(0.915 0.021 296.658);
--muted-foreground: oklch(0.47 0.006 296.852);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.511 0.094 120.86);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.346 0.112 290.042);
--secondary-foreground: oklch(0.9 0.031 296.46);
--accent: oklch(0.346 0.112 290.042);
--accent-foreground: oklch(0.9 0.031 296.46);
--destructive: oklch(0.492 0.176 31.041);
--destructive-foreground: oklch(0.981 0.008 26.494);
--ring: oklch(0.511 0.094 120.86);
--chart-1: oklch(0.511 0.094 120.86);
--chart-2: oklch(0.346 0.112 290.042);
--chart-3: oklch(0.346 0.112 290.042);
--chart-4: oklch(0.368 0.121 289.899);
--chart-5: oklch(0.517 0.099 121.075);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.165 0.024 118.855);
--foreground: oklch(0.993 0.001 117.098);
--muted: oklch(0.182 0.032 293.732);
--muted-foreground: oklch(0.712 0.005 296.944);
--popover: oklch(0.182 0.028 119.542);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.182 0.028 119.542);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.511 0.094 120.86);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.346 0.112 290.042);
--secondary-foreground: oklch(0.9 0.031 296.46);
--accent: oklch(0.346 0.112 290.042);
--accent-foreground: oklch(0.9 0.031 296.46);
--destructive: oklch(0.62 0.206 30.92);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.511 0.094 120.86);
--chart-1: oklch(0.511 0.094 120.86);
--chart-2: oklch(0.346 0.112 290.042);
--chart-3: oklch(0.346 0.112 290.042);
--chart-4: oklch(0.368 0.121 289.899);
--chart-5: oklch(0.517 0.099 121.075);
}