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.
Paper is a shadcn/ui theme built around a muted deep blue primary color (#1d1e26) with muted deep violet accents (#201d26). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep blue primary (#1d1e26) on a blue-tinted background (#05060a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #05060ablack |
| Foreground | #060813black | #f5f5fawhitesmoke |
| Card | #ffffffwhite | #05060ablack |
| Card foreground | #060813black | #f5f5fawhitesmoke |
| Popover | #ffffffwhite | #05060ablack |
| Popover foreground | #060813black | #f5f5fawhitesmoke |
| Primary | #1d1e26black | #1d1e26black |
| Primary foreground | #b1b3c4silver | #b1b3c4silver |
| Secondary | #1d2226black | #1d2226black |
| Secondary foreground | #b1bdc4silver | #b1bdc4silver |
| Muted | #eaf1f5whitesmoke | #0a1115black |
| Muted foreground | #5c656adimgray | #959da3darkgray |
| Accent | #201d26black | #201d26black |
| Accent foreground | #b8b1c4silver | #b8b1c4silver |
| Destructive | #a02208firebrick | #da2e0borangered |
| Destructive foreground | #fde2ddmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1d1e26black | #1d1e26black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.96:1 | AAA |
| Text on card | 19.96:1 | AAA |
| Primary button | 8.01:1 | AAA |
| Secondary button | 8.34:1 | AAA |
| Muted text | 5.22:1 | AA |
| Accent | 8.03:1 | AAA |
| Destructive | 6.28:1 | AA |
| Text on background | 18.64:1 | AAA |
| Text on card | 18.64:1 | AAA |
| Primary button | 8.01:1 | AAA |
| Secondary button | 8.34:1 | AAA |
| Muted text | 6.92:1 | AA |
| Accent | 8.03:1 | AAA |
| Destructive | 4.79:1 | AA |
Paste this into your globals.css to use Paper in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.139 0.025 274.785);
--muted: oklch(0.955 0.009 232.709);
--muted-foreground: oklch(0.502 0.014 232.981);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.139 0.025 274.785);
--card: oklch(1 0 180);
--card-foreground: oklch(0.139 0.025 274.785);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.236 0.016 278.263);
--primary-foreground: oklch(0.77 0.024 278.856);
--secondary: oklch(0.249 0.011 233.25);
--secondary-foreground: oklch(0.79 0.017 232.891);
--accent: oklch(0.237 0.018 301.749);
--accent-foreground: oklch(0.771 0.028 302.372);
--destructive: oklch(0.461 0.165 32.545);
--destructive-foreground: oklch(0.934 0.031 31.138);
--ring: oklch(0.236 0.016 278.263);
--chart-1: oklch(0.236 0.016 278.263);
--chart-2: oklch(0.249 0.011 233.25);
--chart-3: oklch(0.237 0.018 301.749);
--chart-4: oklch(0.281 0.013 233.294);
--chart-5: oklch(0.234 0.019 277.986);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.012 276.189);
--foreground: oklch(0.972 0.006 279.247);
--muted: oklch(0.171 0.013 233.917);
--muted-foreground: oklch(0.692 0.013 232.843);
--popover: oklch(0.122 0.012 276.189);
--popover-foreground: oklch(0.972 0.006 279.247);
--card: oklch(0.122 0.012 276.189);
--card-foreground: oklch(0.972 0.006 279.247);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.236 0.016 278.263);
--primary-foreground: oklch(0.77 0.024 278.856);
--secondary: oklch(0.249 0.011 233.25);
--secondary-foreground: oklch(0.79 0.017 232.891);
--accent: oklch(0.237 0.018 301.749);
--accent-foreground: oklch(0.771 0.028 302.372);
--destructive: oklch(0.577 0.211 32.316);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.236 0.016 278.263);
--chart-1: oklch(0.236 0.016 278.263);
--chart-2: oklch(0.249 0.011 233.25);
--chart-3: oklch(0.237 0.018 301.749);
--chart-4: oklch(0.281 0.013 233.294);
--chart-5: oklch(0.234 0.019 277.986);
}