Coral is a shadcn/ui theme built around a light blue primary color (#eaf1f5) with light orange accents (#f5eeea). The light mode uses a neutral background (#f8fafc). Dark mode keeps the light blue primary (#eaf1f5) on a neutral background (#020608).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fafcghostwhite | #020608black |
| Foreground | #050e14black | #ffffffwhite |
| Card | #f8fafcghostwhite | #020608black |
| Card foreground | #050e14black | #ffffffwhite |
| Popover | #f8fafcghostwhite | #020608black |
| Popover foreground | #050e14black | #ffffffwhite |
| Primary | #eaf1f5whitesmoke | #eaf1f5whitesmoke |
| Primary foreground | #375e76darkslategray | #375e76darkslategray |
| Secondary | #f5eeealinen | #f5eeealinen |
| Secondary foreground | #764f37saddlebrown | #764f37saddlebrown |
| Muted | #ebe7e6linen | #191614black |
| Muted foreground | #67605bdimgray | #a49d98darkgray |
| Accent | #f5eeealinen | #f5eeealinen |
| Accent foreground | #764f37saddlebrown | #764f37saddlebrown |
| Destructive | #720b04maroon | #f94134tomato |
| Destructive foreground | #fcb0ablightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #eaf1f5whitesmoke | #eaf1f5whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.63:1 | AAA |
| Text on card | 18.63:1 | AAA |
| Primary button | 6.08:1 | AA |
| Secondary button | 6.23:1 | AA |
| Muted text | 5.03:1 | AA |
| Accent | 6.23:1 | AA |
| Destructive | 6.77:1 | AA |
| Text on background | 20.36:1 | AAA |
| Text on card | 20.36:1 | AAA |
| Primary button | 6.08:1 | AA |
| Secondary button | 6.23:1 | AA |
| Muted text | 6.71:1 | AA |
| Accent | 6.23:1 | AA |
| Destructive | 3.60:1 | AA Large |
Paste this into your globals.css to use Coral in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.985 0.003 234.548);
--foreground: oklch(0.159 0.019 234.701);
--muted: oklch(0.931 0.004 54.442);
--muted-foreground: oklch(0.493 0.012 54.186);
--popover: oklch(0.985 0.003 234.548);
--popover-foreground: oklch(0.159 0.019 234.701);
--card: oklch(0.985 0.003 234.548);
--card-foreground: oklch(0.159 0.019 234.701);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.954 0.009 234.645);
--primary-foreground: oklch(0.463 0.059 237.197);
--secondary: oklch(0.954 0.009 54.372);
--secondary-foreground: oklch(0.466 0.063 52.445);
--accent: oklch(0.954 0.009 54.372);
--accent-foreground: oklch(0.466 0.063 52.445);
--destructive: oklch(0.353 0.136 30.089);
--destructive-foreground: oklch(0.829 0.09 23.742);
--ring: oklch(0.954 0.009 234.645);
--chart-1: oklch(0.954 0.009 234.645);
--chart-2: oklch(0.954 0.009 54.372);
--chart-3: oklch(0.954 0.009 54.372);
--chart-4: oklch(0.977 0.005 54.441);
--chart-5: oklch(0.954 0.01 234.657);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.115 0.012 227.608);
--foreground: oklch(1 0 180);
--muted: oklch(0.205 0.006 54.091);
--muted-foreground: oklch(0.7 0.011 54.298);
--popover: oklch(0.115 0.012 227.608);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.115 0.012 227.608);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.954 0.009 234.645);
--primary-foreground: oklch(0.463 0.059 237.197);
--secondary: oklch(0.954 0.009 54.372);
--secondary-foreground: oklch(0.466 0.063 52.445);
--accent: oklch(0.954 0.009 54.372);
--accent-foreground: oklch(0.466 0.063 52.445);
--destructive: oklch(0.649 0.221 28.872);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.954 0.009 234.645);
--chart-1: oklch(0.954 0.009 234.645);
--chart-2: oklch(0.954 0.009 54.372);
--chart-3: oklch(0.954 0.009 54.372);
--chart-4: oklch(0.977 0.005 54.441);
--chart-5: oklch(0.954 0.01 234.657);
}