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.
Submarine is a shadcn/ui theme built around a green primary color (#c7cf72) with indigo accents (#7a72cf). The light mode uses a neutral background (#fdfefb). Dark mode keeps the green primary (#c7cf72) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #000000black |
| Foreground | #141504black | #f9faf5whitesmoke |
| Card | #fdfefbwhite | #000000black |
| Card foreground | #141504black | #f9faf5whitesmoke |
| Popover | #fdfefbwhite | #000000black |
| Popover foreground | #141504black | #f9faf5whitesmoke |
| Primary | #c7cf72darkkhaki | #c7cf72darkkhaki |
| Primary foreground | #0b0b04black | #0b0b04black |
| Secondary | #7a72cfmediumpurple | #7a72cfmediumpurple |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dbd9e7gainsboro | #191826black |
| Muted foreground | #464649darkslategray | #b6b6b9silver |
| Accent | #7a72cfmediumpurple | #7a72cfmediumpurple |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #b34614sienna | #cf5117chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c7cf72darkkhaki | #c7cf72darkkhaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.19:1 | AAA |
| Text on card | 18.19:1 | AAA |
| Primary button | 11.83:1 | AAA |
| Secondary button | 4.07:1 | AA Large |
| Muted text | 6.77:1 | AA |
| Accent | 4.07:1 | AA Large |
| Destructive | 5.51:1 | AA |
| Text on background | 20.02:1 | AAA |
| Text on card | 20.02:1 | AAA |
| Primary button | 11.83:1 | AAA |
| Secondary button | 4.07:1 | AA Large |
| Muted text | 8.68:1 | AAA |
| Accent | 4.07:1 | AA Large |
| Destructive | 4.34:1 | AA Large |
Paste this into your globals.css to use Submarine in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 110.303);
--foreground: oklch(0.189 0.031 113.044);
--muted: oklch(0.892 0.019 289.839);
--muted-foreground: oklch(0.395 0.005 290.02);
--popover: oklch(0.995 0.003 110.303);
--popover-foreground: oklch(0.189 0.031 113.044);
--card: oklch(0.995 0.003 110.303);
--card-foreground: oklch(0.189 0.031 113.044);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.828 0.117 112.843);
--primary-foreground: oklch(0.148 0.018 111.767);
--secondary: oklch(0.602 0.138 285.275);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.602 0.138 285.275);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.536 0.153 41.357);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.828 0.117 112.843);
--chart-1: oklch(0.828 0.117 112.843);
--chart-2: oklch(0.602 0.138 285.275);
--chart-3: oklch(0.602 0.138 285.275);
--chart-4: oklch(0.635 0.125 286.049);
--chart-5: oklch(0.836 0.123 112.956);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.983 0.007 110.373);
--muted: oklch(0.216 0.027 287.676);
--muted-foreground: oklch(0.778 0.004 290.15);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.983 0.007 110.373);
--card: oklch(0 0 0);
--card-foreground: oklch(0.983 0.007 110.373);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.828 0.117 112.843);
--primary-foreground: oklch(0.148 0.018 111.767);
--secondary: oklch(0.602 0.138 285.275);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.602 0.138 285.275);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.594 0.172 41.159);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.828 0.117 112.843);
--chart-1: oklch(0.828 0.117 112.843);
--chart-2: oklch(0.602 0.138 285.275);
--chart-3: oklch(0.602 0.138 285.275);
--chart-4: oklch(0.635 0.125 286.049);
--chart-5: oklch(0.836 0.123 112.956);
}