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.
Boxy Ocean Light is a shadcn/ui theme built around a blue primary color (#334466) with neutral gray accents (#d4d4d4). The light mode uses a neutral background (#fafafa). Dark mode keeps the blue primary (#334466) on a neutral background (#fafafa).
| Token | Light | Dark |
|---|---|---|
| Background | #fafafasnow | #fafafasnow |
| Foreground | #17242bblack | #17242bblack |
| Card | #f5f5f5whitesmoke | #f5f5f5whitesmoke |
| Card foreground | #0e161bblack | #0e161bblack |
| Popover | #f2f2f2whitesmoke | #f2f2f2whitesmoke |
| Popover foreground | #05080ablack | #05080ablack |
| Primary | #334466darkslategray | #334466darkslategray |
| Primary foreground | #dde3eelavender | #dde3eelavender |
| Secondary | #b1bacelightsteelblue | #b1bacelightsteelblue |
| Secondary foreground | #1d232fdarkslategray | #1d232fdarkslategray |
| Muted | #e9e2e2gainsboro | #e9e2e2gainsboro |
| Muted foreground | #564343darkslategray | #564343darkslategray |
| Accent | #d4d4d4lightgrey | #d4d4d4lightgrey |
| Accent foreground | #3b3b3bdarkslategray | #3b3b3bdarkslategray |
| Destructive | #6c0909maroon | #6c0909maroon |
| Destructive foreground | #f8afaflightpink | #f8afaflightpink |
| Border | #edededwhitesmoke | #edededwhitesmoke |
| Input | #e6e6e6gainsboro | #e6e6e6gainsboro |
| Ring | #334466darkslategray | #334466darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 15.18:1 | AAA |
| Text on card | 16.73:1 | AAA |
| Primary button | 7.53:1 | AAA |
| Secondary button | 8.10:1 | AAA |
| Muted text | 7.22:1 | AAA |
| Accent | 7.53:1 | AAA |
| Destructive | 6.98:1 | AA |
| Text on background | 15.18:1 | AAA |
| Text on card | 16.73:1 | AAA |
| Primary button | 7.53:1 | AAA |
| Secondary button | 8.10:1 | AAA |
| Muted text | 7.22:1 | AAA |
| Accent | 7.53:1 | AAA |
| Destructive | 6.98:1 | AA |
Paste this into your globals.css to use Boxy Ocean Light in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.985 0 180);
--foreground: oklch(0.252 0.022 232.303);
--muted: oklch(0.919 0.007 17.278);
--muted-foreground: oklch(0.404 0.025 18.259);
--popover: oklch(0.962 0 180);
--popover-foreground: oklch(0.133 0.007 227.082);
--card: oklch(0.97 0 180);
--card-foreground: oklch(0.195 0.015 231.985);
--border: oklch(0.947 0 180);
--input: oklch(0.923 0 153.435);
--primary: oklch(0.388 0.062 263.471);
--primary-foreground: oklch(0.914 0.016 264.487);
--secondary: oklch(0.789 0.03 264.39);
--secondary-foreground: oklch(0.257 0.024 264.021);
--accent: oklch(0.869 0 165.964);
--accent-foreground: oklch(0.351 0 167.471);
--destructive: oklch(0.34 0.13 27.833);
--destructive-foreground: oklch(0.824 0.086 19.062);
--ring: oklch(0.388 0.062 263.471);
--chart-1: oklch(0.388 0.062 263.471);
--chart-2: oklch(0.789 0.03 264.39);
--chart-3: oklch(0.869 0 165.964);
--chart-4: oklch(0.815 0.026 264.421);
--chart-5: oklch(0.386 0.067 263.337);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.985 0 180);
--foreground: oklch(0.252 0.022 232.303);
--muted: oklch(0.919 0.007 17.278);
--muted-foreground: oklch(0.404 0.025 18.259);
--popover: oklch(0.962 0 180);
--popover-foreground: oklch(0.133 0.007 227.082);
--card: oklch(0.97 0 180);
--card-foreground: oklch(0.195 0.015 231.985);
--border: oklch(0.947 0 180);
--input: oklch(0.923 0 153.435);
--primary: oklch(0.388 0.062 263.471);
--primary-foreground: oklch(0.914 0.016 264.487);
--secondary: oklch(0.789 0.03 264.39);
--secondary-foreground: oklch(0.257 0.024 264.021);
--accent: oklch(0.869 0 165.964);
--accent-foreground: oklch(0.351 0 167.471);
--destructive: oklch(0.34 0.13 27.833);
--destructive-foreground: oklch(0.824 0.086 19.062);
--ring: oklch(0.388 0.062 263.471);
--chart-1: oklch(0.388 0.062 263.471);
--chart-2: oklch(0.789 0.03 264.39);
--chart-3: oklch(0.869 0 165.964);
--chart-4: oklch(0.815 0.026 264.421);
--chart-5: oklch(0.386 0.067 263.337);
}