Elastic is a shadcn/ui theme built around a teal primary color (#92ddd0) with cyan accents (#92c5dd). The light mode uses a neutral background (#f7fdfc). Dark mode keeps the teal primary (#92ddd0) on a neutral background (#010403).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdfcmintcream | #010403black |
| Foreground | #03120fblack | #fcfdfdwhite |
| Card | #f2fcfamintcream | #020807black |
| Card foreground | #020d0bblack | #ffffffwhite |
| Popover | #f2fcfamintcream | #020807black |
| Popover foreground | #020d0bblack | #ffffffwhite |
| Primary | #92ddd0skyblue | #92ddd0skyblue |
| Primary foreground | #0e2f29darkslategray | #0e2f29darkslategray |
| Secondary | #92ddaalightgreen | #92ddaalightgreen |
| Secondary foreground | #0e2f19black | #0e2f19black |
| Muted | #dae7degainsboro | #18251cblack |
| Muted foreground | #656766dimgray | #989a99darkgray |
| Accent | #92c5ddskyblue | #92c5ddskyblue |
| Accent foreground | #0e252fblack | #0e252fblack |
| Destructive | #782107maroon | #f25626tomato |
| Destructive foreground | #fbc7b7peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #92ddd0skyblue | #92ddd0skyblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.61:1 | AAA |
| Text on card | 18.91:1 | AAA |
| Primary button | 9.27:1 | AAA |
| Secondary button | 9.16:1 | AAA |
| Muted text | 4.45:1 | AA Large |
| Accent | 8.52:1 | AAA |
| Destructive | 6.86:1 | AA |
| Text on background | 20.20:1 | AAA |
| Text on card | 20.18:1 | AAA |
| Primary button | 9.27:1 | AAA |
| Secondary button | 9.16:1 | AAA |
| Muted text | 5.62:1 | AA |
| Accent | 8.52:1 | AAA |
| Destructive | 3.41:1 | AA Large |
Paste this into your globals.css to use Elastic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.007 184.118);
--foreground: oklch(0.165 0.024 181.35);
--muted: oklch(0.915 0.017 156.185);
--muted-foreground: oklch(0.512 0.003 156.432);
--popover: oklch(0.984 0.011 184.019);
--popover-foreground: oklch(0.147 0.021 182.893);
--card: oklch(0.984 0.011 184.019);
--card-foreground: oklch(0.147 0.021 182.893);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.846 0.078 181.543);
--primary-foreground: oklch(0.278 0.04 179.274);
--secondary: oklch(0.836 0.105 153.755);
--secondary-foreground: oklch(0.273 0.056 151.325);
--accent: oklch(0.797 0.064 228.248);
--accent-foreground: oklch(0.25 0.034 230.262);
--destructive: oklch(0.386 0.125 35.903);
--destructive-foreground: oklch(0.87 0.064 37.593);
--ring: oklch(0.846 0.078 181.543);
--chart-1: oklch(0.846 0.078 181.543);
--chart-2: oklch(0.836 0.105 153.755);
--chart-3: oklch(0.797 0.064 228.248);
--chart-4: oklch(0.852 0.094 154.147);
--chart-5: oklch(0.85 0.082 181.396);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.011 184.08);
--foreground: oklch(0.993 0.001 184.284);
--muted: oklch(0.249 0.023 154.549);
--muted-foreground: oklch(0.684 0.003 156.471);
--popover: oklch(0.125 0.014 184.08);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.125 0.014 184.08);
--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.846 0.078 181.543);
--primary-foreground: oklch(0.278 0.04 179.274);
--secondary: oklch(0.836 0.105 153.755);
--secondary-foreground: oklch(0.273 0.056 151.325);
--accent: oklch(0.797 0.064 228.248);
--accent-foreground: oklch(0.25 0.034 230.262);
--destructive: oklch(0.658 0.201 36.507);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.846 0.078 181.543);
--chart-1: oklch(0.846 0.078 181.543);
--chart-2: oklch(0.836 0.105 153.755);
--chart-3: oklch(0.797 0.064 228.248);
--chart-4: oklch(0.852 0.094 154.147);
--chart-5: oklch(0.85 0.082 181.396);
}