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.
Fortnight is a shadcn/ui theme built around a neutral gray primary color (#a7aea8) with muted light green accents (#e1eae2). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the neutral gray primary (#a7aea8) on a green-tinted background (#041005).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf8mintcream | #041005black |
| Foreground | #031203black | #f6f9f6whitesmoke |
| Card | #f8fcf8mintcream | #041005black |
| Card foreground | #031203black | #f6f9f6whitesmoke |
| Popover | #f8fcf8mintcream | #041005black |
| Popover foreground | #031203black | #f6f9f6whitesmoke |
| Primary | #a7aea8darkgray | #a7aea8darkgray |
| Primary foreground | #111311black | #111311black |
| Secondary | #e1eae2gainsboro | #2a322adarkslategray |
| Secondary foreground | #405941darkslategray | #c2ccc2silver |
| Muted | #e6eae7lavender | #151916black |
| Muted foreground | #4b624ddarkolivegreen | #9db49edarkgray |
| Accent | #e1eae2gainsboro | #2a322adarkslategray |
| Accent foreground | #405941darkslategray | #c2ccc2silver |
| Destructive | #650101maroon | #fd3030crimson |
| Destructive foreground | #fe9a9alightsalmon | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a7aea8darkgray | #a7aea8darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.57:1 | AAA |
| Text on card | 18.57:1 | AAA |
| Primary button | 8.25:1 | AAA |
| Secondary button | 6.25:1 | AA |
| Muted text | 5.47:1 | AA |
| Accent | 6.25:1 | AA |
| Destructive | 6.61:1 | AA |
| Text on background | 18.29:1 | AAA |
| Text on card | 18.29:1 | AAA |
| Primary button | 8.25:1 | AAA |
| Secondary button | 8.00:1 | AAA |
| Muted text | 8.01:1 | AAA |
| Accent | 8.00:1 | AAA |
| Destructive | 3.72:1 | AA Large |
Paste this into your globals.css to use Fortnight in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.008 146.966);
--foreground: oklch(0.161 0.04 144.873);
--muted: oklch(0.933 0.005 146.985);
--muted-foreground: oklch(0.471 0.044 146.13);
--popover: oklch(0.987 0.008 146.966);
--popover-foreground: oklch(0.161 0.04 144.873);
--card: oklch(0.987 0.008 146.966);
--card-foreground: oklch(0.161 0.04 144.873);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.744 0.012 146.89);
--primary-foreground: oklch(0.183 0.004 146.856);
--secondary: oklch(0.927 0.014 146.902);
--secondary-foreground: oklch(0.436 0.048 145.945);
--accent: oklch(0.927 0.014 146.902);
--accent-foreground: oklch(0.436 0.048 145.945);
--destructive: oklch(0.319 0.13 29.04);
--destructive-foreground: oklch(0.789 0.12 20.109);
--ring: oklch(0.744 0.012 146.89);
--chart-1: oklch(0.744 0.012 146.89);
--chart-2: oklch(0.927 0.014 146.902);
--chart-3: oklch(0.927 0.014 146.902);
--chart-4: oklch(0.949 0.009 146.946);
--chart-5: oklch(0.747 0.021 146.779);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.157 0.032 145.322);
--foreground: oklch(0.979 0.005 146.993);
--muted: oklch(0.207 0.008 146.685);
--muted-foreground: oklch(0.745 0.039 146.535);
--popover: oklch(0.157 0.032 145.322);
--popover-foreground: oklch(0.979 0.005 146.993);
--card: oklch(0.157 0.032 145.322);
--card-foreground: oklch(0.979 0.005 146.993);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.744 0.012 146.89);
--primary-foreground: oklch(0.183 0.004 146.856);
--secondary: oklch(0.307 0.018 146.477);
--secondary-foreground: oklch(0.835 0.017 146.845);
--accent: oklch(0.307 0.018 146.477);
--accent-foreground: oklch(0.835 0.017 146.845);
--destructive: oklch(0.643 0.237 27.145);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.744 0.012 146.89);
--chart-1: oklch(0.744 0.012 146.89);
--chart-2: oklch(0.307 0.018 146.477);
--chart-3: oklch(0.307 0.018 146.477);
--chart-4: oklch(0.338 0.02 146.458);
--chart-5: oklch(0.747 0.021 146.779);
}