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.
Facet is a shadcn/ui theme built around an orange primary color (#875540) with muted light orange accents (#d3cdca). The light mode uses a neutral background (#fbf9f8). Dark mode keeps the orange primary (#875540) on a neutral background (#030202).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf9f8snow | #030202black |
| Foreground | #080402black | #fbfaf9snow |
| Card | #faf6f5whitesmoke | #070403black |
| Card foreground | #040201black | #fdfcfcsnow |
| Popover | #faf6f5whitesmoke | #070403black |
| Popover foreground | #040201black | #fdfcfcsnow |
| Primary | #875540sienna | #875540sienna |
| Primary foreground | #fdfcfcsnow | #fdfcfcsnow |
| Secondary | #d3cdcalightgrey | #161413black |
| Secondary foreground | #3b3330darkslategray | #b5aaa6darkgray |
| Muted | #f5f1f0whitesmoke | #0f0c0ablack |
| Muted foreground | #5f5754dimgray | #aba4a0darkgray |
| Accent | #d3cdcalightgrey | #161413black |
| Accent foreground | #3b3330darkslategray | #b5aaa6darkgray |
| Destructive | #7e1402maroon | #fb2904orangered |
| Destructive foreground | #febfb4lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #875540sienna | #875540sienna |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.50:1 | AAA |
| Text on card | 19.32:1 | AAA |
| Primary button | 6.01:1 | AA |
| Secondary button | 7.82:1 | AAA |
| Muted text | 6.29:1 | AA |
| Accent | 7.82:1 | AAA |
| Destructive | 6.71:1 | AA |
| Text on background | 19.85:1 | AAA |
| Text on card | 19.92:1 | AAA |
| Primary button | 6.01:1 | AA |
| Secondary button | 8.11:1 | AAA |
| Muted text | 7.94:1 | AAA |
| Accent | 8.11:1 | AAA |
| Destructive | 3.87:1 | AA Large |
Paste this into your globals.css to use Facet in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.984 0.003 44.955);
--foreground: oklch(0.113 0.013 53.299);
--muted: oklch(0.961 0.004 44.937);
--muted-foreground: oklch(0.463 0.011 44.752);
--popover: oklch(0.977 0.004 44.941);
--popover-foreground: oklch(0.09 0.011 53.299);
--card: oklch(0.977 0.004 44.941);
--card-foreground: oklch(0.09 0.011 53.299);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.501 0.075 43.84);
--primary-foreground: oklch(0.992 0.002 44.966);
--secondary: oklch(0.852 0.009 44.88);
--secondary-foreground: oklch(0.33 0.012 44.645);
--accent: oklch(0.852 0.009 44.88);
--accent-foreground: oklch(0.33 0.012 44.645);
--destructive: oklch(0.383 0.142 32.296);
--destructive-foreground: oklch(0.858 0.075 30.033);
--ring: oklch(0.501 0.075 43.84);
--chart-1: oklch(0.501 0.075 43.84);
--chart-2: oklch(0.852 0.009 44.88);
--chart-3: oklch(0.852 0.009 44.88);
--chart-4: oklch(0.876 0.007 44.898);
--chart-5: oklch(0.502 0.081 43.724);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.091 0.006 49.426);
--foreground: oklch(0.985 0.001 44.969);
--muted: oklch(0.157 0.007 44.604);
--muted-foreground: oklch(0.723 0.01 44.845);
--popover: oklch(0.114 0.008 49.426);
--popover-foreground: oklch(0.992 0.001 44.976);
--card: oklch(0.114 0.008 49.426);
--card-foreground: oklch(0.992 0.001 44.976);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.501 0.075 43.84);
--primary-foreground: oklch(0.992 0.002 44.966);
--secondary: oklch(0.192 0.005 44.746);
--secondary-foreground: oklch(0.747 0.013 44.804);
--accent: oklch(0.192 0.005 44.746);
--accent-foreground: oklch(0.747 0.013 44.804);
--destructive: oklch(0.634 0.243 31.339);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.501 0.075 43.84);
--chart-1: oklch(0.501 0.075 43.84);
--chart-2: oklch(0.192 0.005 44.746);
--chart-3: oklch(0.192 0.005 44.746);
--chart-4: oklch(0.226 0.006 44.719);
--chart-5: oklch(0.502 0.081 43.724);
}