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.
ƒ - Oceanic is a shadcn/ui theme built around a muted blue primary color (#74819a) with deep blue accents (#253646). The light mode uses a blue-tinted background (#0b0f14). Dark mode keeps the muted blue primary (#74819a) on a blue-tinted background (#0b0f14).
| Token | Light | Dark |
|---|---|---|
| Background | #0b0f14black | #0b0f14black |
| Foreground | #c8d1dalightgrey | #c8d1dalightgrey |
| Card | #070a0dblack | #070a0dblack |
| Card foreground | #d8dee4gainsboro | #d8dee4gainsboro |
| Popover | #05080ablack | #05080ablack |
| Popover foreground | #e7ebeelavender | #e7ebeelavender |
| Primary | #74819alightslategray | #74819alightslategray |
| Primary foreground | #000000black | #000000black |
| Secondary | #3c3e44darkslategray | #3c3e44darkslategray |
| Secondary foreground | #d6d8dbgainsboro | #d6d8dbgainsboro |
| Muted | #22262bdarkslategray | #22262bdarkslategray |
| Muted foreground | #9ba6b0darkgray | #9ba6b0darkgray |
| Accent | #253646darkslategray | #253646darkslategray |
| Accent foreground | #c0cfdelightsteelblue | #c0cfdelightsteelblue |
| Destructive | #f83a25orangered | #f83a25orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #161c22black | #161c22black |
| Input | #1c242bdarkslategray | #1c242bdarkslategray |
| Ring | #74819alightslategray | #74819alightslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 12.42:1 | AAA |
| Text on card | 14.62:1 | AAA |
| Primary button | 5.33:1 | AA |
| Secondary button | 7.45:1 | AAA |
| Muted text | 6.13:1 | AA |
| Accent | 7.83:1 | AAA |
| Destructive | 3.72:1 | AA Large |
| Text on background | 12.42:1 | AAA |
| Text on card | 14.62:1 | AAA |
| Primary button | 5.33:1 | AA |
| Secondary button | 7.45:1 | AAA |
| Muted text | 6.13:1 | AA |
| Accent | 7.83:1 | AAA |
| Destructive | 3.72:1 | AA Large |
Paste this into your globals.css to use ƒ - Oceanic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.167 0.013 248.582);
--foreground: oklch(0.857 0.015 248.008);
--muted: oklch(0.267 0.011 248.233);
--muted-foreground: oklch(0.719 0.02 248.103);
--popover: oklch(0.13 0.008 243.449);
--popover-foreground: oklch(0.937 0.007 247.896);
--card: oklch(0.143 0.009 245.965);
--card-foreground: oklch(0.897 0.011 247.949);
--border: oklch(0.223 0.015 248.477);
--input: oklch(0.255 0.018 248.529);
--primary: oklch(0.601 0.042 264.189);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.365 0.009 264.451);
--secondary-foreground: oklch(0.882 0.005 264.535);
--accent: oklch(0.324 0.037 249.025);
--accent-foreground: oklch(0.846 0.027 248.142);
--destructive: oklch(0.641 0.228 30.446);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.601 0.042 264.189);
--chart-1: oklch(0.601 0.042 264.189);
--chart-2: oklch(0.365 0.009 264.451);
--chart-3: oklch(0.324 0.037 249.025);
--chart-4: oklch(0.394 0.01 264.449);
--chart-5: oklch(0.597 0.05 264.09);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.167 0.013 248.582);
--foreground: oklch(0.857 0.015 248.008);
--muted: oklch(0.267 0.011 248.233);
--muted-foreground: oklch(0.719 0.02 248.103);
--popover: oklch(0.13 0.008 243.449);
--popover-foreground: oklch(0.937 0.007 247.896);
--card: oklch(0.143 0.009 245.965);
--card-foreground: oklch(0.897 0.011 247.949);
--border: oklch(0.223 0.015 248.477);
--input: oklch(0.255 0.018 248.529);
--primary: oklch(0.601 0.042 264.189);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.365 0.009 264.451);
--secondary-foreground: oklch(0.882 0.005 264.535);
--accent: oklch(0.324 0.037 249.025);
--accent-foreground: oklch(0.846 0.027 248.142);
--destructive: oklch(0.641 0.228 30.446);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.601 0.042 264.189);
--chart-1: oklch(0.601 0.042 264.189);
--chart-2: oklch(0.365 0.009 264.451);
--chart-3: oklch(0.324 0.037 249.025);
--chart-4: oklch(0.394 0.01 264.449);
--chart-5: oklch(0.597 0.05 264.09);
}