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.
Familiarity is a shadcn/ui theme built around a light green primary color (#cddcb2) with light green accents (#b8dcb2). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the light green primary (#cddcb2) on a neutral background (#060703).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcf8snow | #060703black |
| Foreground | #030401black | #f8faf5whitesmoke |
| Card | #fbfcf8snow | #060703black |
| Card foreground | #030401black | #f8faf5whitesmoke |
| Popover | #fbfcf8snow | #060703black |
| Popover foreground | #030401black | #f8faf5whitesmoke |
| Primary | #cddcb2silver | #cddcb2silver |
| Primary foreground | #333f1cdarkslategray | #333f1cdarkslategray |
| Secondary | #dcd6b2wheat | #dcd6b2wheat |
| Secondary foreground | #3f3a1cdarkolivegreen | #3f3a1cdarkolivegreen |
| Muted | #ebeae6linen | #191914black |
| Muted foreground | #67634cdimgray | #b3af98darkgray |
| Accent | #b8dcb2silver | #b8dcb2silver |
| Accent foreground | #223f1cdarkslategray | #223f1cdarkslategray |
| Destructive | #9c2e02saddlebrown | #fc672ctomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cddcb2silver | #cddcb2silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.95:1 | AAA |
| Text on card | 19.95:1 | AAA |
| Primary button | 7.76:1 | AAA |
| Secondary button | 7.79:1 | AAA |
| Muted text | 5.02:1 | AA |
| Accent | 7.76:1 | AAA |
| Destructive | 7.50:1 | AAA |
| Text on background | 19.19:1 | AAA |
| Text on card | 19.19:1 | AAA |
| Primary button | 7.76:1 | AAA |
| Secondary button | 7.79:1 | AAA |
| Muted text | 7.98:1 | AAA |
| Accent | 7.76:1 | AAA |
| Destructive | 7.10:1 | AAA |
Paste this into your globals.css to use Familiarity in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.006 122.313);
--foreground: oklch(0.102 0.015 121.783);
--muted: oklch(0.936 0.006 98.405);
--muted-foreground: oklch(0.496 0.035 99.166);
--popover: oklch(0.989 0.006 122.313);
--popover-foreground: oklch(0.102 0.015 121.783);
--card: oklch(0.989 0.006 122.313);
--card-foreground: oklch(0.102 0.015 121.783);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.873 0.059 123.301);
--primary-foreground: oklch(0.349 0.057 125.157);
--secondary: oklch(0.871 0.049 99.02);
--secondary-foreground: oklch(0.346 0.046 99.506);
--accent: oklch(0.858 0.07 140.891);
--accent-foreground: oklch(0.336 0.068 140.729);
--destructive: oklch(0.465 0.152 37.44);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.873 0.059 123.301);
--chart-1: oklch(0.873 0.059 123.301);
--chart-2: oklch(0.871 0.049 99.02);
--chart-3: oklch(0.858 0.07 140.891);
--chart-4: oklch(0.889 0.042 98.926);
--chart-5: oklch(0.876 0.064 123.382);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.016 121.842);
--foreground: oklch(0.982 0.007 122.327);
--muted: oklch(0.211 0.008 98.832);
--muted-foreground: oklch(0.751 0.032 98.871);
--popover: oklch(0.126 0.016 121.842);
--popover-foreground: oklch(0.982 0.007 122.327);
--card: oklch(0.126 0.016 121.842);
--card-foreground: oklch(0.982 0.007 122.327);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.873 0.059 123.301);
--primary-foreground: oklch(0.349 0.057 125.157);
--secondary: oklch(0.871 0.049 99.02);
--secondary-foreground: oklch(0.346 0.046 99.506);
--accent: oklch(0.858 0.07 140.891);
--accent-foreground: oklch(0.336 0.068 140.729);
--destructive: oklch(0.694 0.195 39.889);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.873 0.059 123.301);
--chart-1: oklch(0.873 0.059 123.301);
--chart-2: oklch(0.871 0.049 99.02);
--chart-3: oklch(0.858 0.07 140.891);
--chart-4: oklch(0.889 0.042 98.926);
--chart-5: oklch(0.876 0.064 123.382);
}