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.
Phrase is a shadcn/ui theme built around a near-white primary color (#ffffff) with muted light red accents (#e7dfdf). The light mode uses a neutral background (#fdfbfb). Dark mode keeps the near-white primary (#ffffff) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfbsnow | #000000black |
| Foreground | #170303black | #fcf8f8snow |
| Card | #fdfbfbsnow | #000000black |
| Card foreground | #170303black | #fcf8f8snow |
| Popover | #fdfbfbsnow | #000000black |
| Popover foreground | #170303black | #fcf8f8snow |
| Primary | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #e7dfdfgainsboro | #291e1eblack |
| Secondary foreground | #553f3fdarkslategray | #c7b2b2silver |
| Muted | #f4f1f1whitesmoke | #0e0b0bblack |
| Muted foreground | #4a3b3bdarkslategray | #c4b5b5silver |
| Accent | #e7dfdfgainsboro | #291e1eblack |
| Accent foreground | #553f3fdarkslategray | #c7b2b2silver |
| Destructive | #872403darkred | #eb3e05orangered |
| Destructive foreground | #fecebepeachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.45:1 | AAA |
| Text on card | 19.45:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 9.42:1 | AAA |
| Accent | 7.37:1 | AAA |
| Destructive | 6.48:1 | AA |
| Text on background | 19.92:1 | AAA |
| Text on card | 19.92:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 8.02:1 | AAA |
| Muted text | 9.90:1 | AAA |
| Accent | 8.02:1 | AAA |
| Destructive | 4.01:1 | AA Large |
Paste this into your globals.css to use Phrase in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 17.194);
--foreground: oklch(0.14 0.04 23.913);
--muted: oklch(0.96 0.003 17.215);
--muted-foreground: oklch(0.368 0.021 18.128);
--popover: oklch(0.991 0.002 17.194);
--popover-foreground: oklch(0.14 0.04 23.913);
--card: oklch(0.991 0.002 17.194);
--card-foreground: oklch(0.14 0.04 23.913);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.91 0.009 17.326);
--secondary-foreground: oklch(0.391 0.031 18.575);
--accent: oklch(0.91 0.009 17.326);
--accent-foreground: oklch(0.391 0.031 18.575);
--destructive: oklch(0.416 0.139 36.154);
--destructive-foreground: oklch(0.888 0.059 39.252);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.91 0.009 17.326);
--chart-3: oklch(0.91 0.009 17.326);
--chart-4: oklch(0.934 0.007 17.275);
--chart-5: oklch(1 0 180);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.982 0.004 17.218);
--muted: oklch(0.155 0.005 17.739);
--muted-foreground: oklch(0.787 0.017 17.513);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.982 0.004 17.218);
--card: oklch(0 0 0);
--card-foreground: oklch(0.982 0.004 17.218);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.249 0.018 18.429);
--secondary-foreground: oklch(0.782 0.024 17.687);
--accent: oklch(0.249 0.018 18.429);
--accent-foreground: oklch(0.782 0.024 17.687);
--destructive: oklch(0.62 0.216 34.995);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.249 0.018 18.429);
--chart-3: oklch(0.249 0.018 18.429);
--chart-4: oklch(0.278 0.021 18.507);
--chart-5: oklch(1 0 180);
}