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.
Skylight is a shadcn/ui theme built around a green primary color (#bec757) with purple accents (#c757be). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the green primary (#bec757) on a green-tinted background (#0a0a05).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfbsnow | #0a0a05black |
| Foreground | #0f1004black | #fdfdfcwhite |
| Card | #fdfdfbsnow | #0a0a05black |
| Card foreground | #0f1004black | #fdfdfcwhite |
| Popover | #fdfdfbsnow | #0a0a05black |
| Popover foreground | #0f1004black | #fdfdfcwhite |
| Primary | #bec757darkkhaki | #bec757darkkhaki |
| Primary foreground | #3a3d14darkolivegreen | #3a3d14darkolivegreen |
| Secondary | #57bec7mediumturquoise | #57bec7mediumturquoise |
| Secondary foreground | #000000black | #000000black |
| Muted | #d7dadbgainsboro | #242828darkslategray |
| Muted foreground | #5b6f71dimgray | #8ea2a4darkgray |
| Accent | #c757bemediumorchid | #c757bemediumorchid |
| Accent foreground | #000000black | #000000black |
| Destructive | #a0370esaddlebrown | #e64f14orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bec757darkkhaki | #bec757darkkhaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.88:1 | AAA |
| Text on card | 18.88:1 | AAA |
| Primary button | 6.17:1 | AA |
| Secondary button | 9.55:1 | AAA |
| Muted text | 3.78:1 | AA Large |
| Accent | 5.51:1 | AA |
| Destructive | 6.90:1 | AA |
| Text on background | 19.48:1 | AAA |
| Text on card | 19.48:1 | AAA |
| Primary button | 6.17:1 | AA |
| Secondary button | 9.55:1 | AAA |
| Muted text | 5.57:1 | AA |
| Accent | 5.51:1 | AA |
| Destructive | 3.81:1 | AA Large |
Paste this into your globals.css to use Skylight in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 110.298);
--foreground: oklch(0.167 0.024 112.458);
--muted: oklch(0.887 0.004 203.541);
--muted-foreground: oklch(0.527 0.025 203.229);
--popover: oklch(0.995 0.003 110.298);
--popover-foreground: oklch(0.167 0.024 112.458);
--card: oklch(0.995 0.003 110.298);
--card-foreground: oklch(0.167 0.024 112.458);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.8 0.137 113.448);
--primary-foreground: oklch(0.348 0.061 113.533);
--secondary: oklch(0.743 0.096 203.398);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.633 0.188 330.85);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.483 0.147 38.777);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.8 0.137 113.448);
--chart-1: oklch(0.8 0.137 113.448);
--chart-2: oklch(0.743 0.096 203.398);
--chart-3: oklch(0.633 0.188 330.85);
--chart-4: oklch(0.759 0.091 203.285);
--chart-5: oklch(0.809 0.143 113.574);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.143 0.012 111.19);
--foreground: oklch(0.993 0.001 110.263);
--muted: oklch(0.273 0.005 203.418);
--muted-foreground: oklch(0.698 0.023 203.31);
--popover: oklch(0.143 0.012 111.19);
--popover-foreground: oklch(0.993 0.001 110.263);
--card: oklch(0.143 0.012 111.19);
--card-foreground: oklch(0.993 0.001 110.263);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.8 0.137 113.448);
--primary-foreground: oklch(0.348 0.061 113.533);
--secondary: oklch(0.743 0.096 203.398);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.633 0.188 330.85);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.63 0.196 38.288);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.8 0.137 113.448);
--chart-1: oklch(0.8 0.137 113.448);
--chart-2: oklch(0.743 0.096 203.398);
--chart-3: oklch(0.633 0.188 330.85);
--chart-4: oklch(0.759 0.091 203.285);
--chart-5: oklch(0.809 0.143 113.574);
}