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.
Teletype is a shadcn/ui theme built around a vivid light red primary color (#fcebe8) with muted light red accents (#e5dddc). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light red primary (#fcebe8) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #000000black | #ffffffwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #fcebe8linen | #fcebe8linen |
| Primary foreground | #a12512firebrick | #a12512firebrick |
| Secondary | #e5dddcgainsboro | #312321darkslategray |
| Secondary foreground | #52403ddarkslategray | #ceb9b6silver |
| Muted | #ece9e9linen | #161313black |
| Muted foreground | #574542darkolivegreen | #bdaba8darkgray |
| Accent | #e5dddcgainsboro | #312321darkslategray |
| Accent foreground | #52403ddarkslategray | #ceb9b6silver |
| Destructive | #760404maroon | #f72626crimson |
| Destructive foreground | #fcb0b0lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fcebe8linen | #fcebe8linen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.51:1 | AA |
| Secondary button | 7.27:1 | AAA |
| Muted text | 7.46:1 | AAA |
| Accent | 7.27:1 | AAA |
| Destructive | 6.68:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.51:1 | AA |
| Secondary button | 8.08:1 | AAA |
| Muted text | 8.40:1 | AAA |
| Accent | 8.08:1 | AAA |
| Destructive | 3.98:1 | AA Large |
Paste this into your globals.css to use Teletype in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.937 0.004 27.952);
--muted-foreground: oklch(0.408 0.026 28.397);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.953 0.02 28.048);
--primary-foreground: oklch(0.465 0.163 31.64);
--secondary: oklch(0.904 0.009 27.984);
--secondary-foreground: oklch(0.389 0.027 28.436);
--accent: oklch(0.904 0.009 27.984);
--accent-foreground: oklch(0.389 0.027 28.436);
--destructive: oklch(0.358 0.143 28.669);
--destructive-foreground: oklch(0.83 0.089 19.133);
--ring: oklch(0.953 0.02 28.048);
--chart-1: oklch(0.953 0.02 28.048);
--chart-2: oklch(0.904 0.009 27.984);
--chart-3: oklch(0.904 0.009 27.984);
--chart-4: oklch(0.928 0.007 27.969);
--chart-5: oklch(0.952 0.02 28.054);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.191 0.005 28.097);
--muted-foreground: oklch(0.755 0.022 28.106);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.953 0.02 28.048);
--primary-foreground: oklch(0.465 0.163 31.64);
--secondary: oklch(0.272 0.022 28.574);
--secondary-foreground: oklch(0.802 0.025 28.119);
--accent: oklch(0.272 0.022 28.574);
--accent-foreground: oklch(0.802 0.025 28.119);
--destructive: oklch(0.627 0.238 27.688);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.953 0.02 28.048);
--chart-1: oklch(0.953 0.02 28.048);
--chart-2: oklch(0.272 0.022 28.574);
--chart-3: oklch(0.272 0.022 28.574);
--chart-4: oklch(0.301 0.026 28.612);
--chart-5: oklch(0.952 0.02 28.054);
}