Drain is a shadcn/ui theme built around a vivid light green primary color (#e7fdef) with vivid light teal accents (#e7fdfa). The light mode uses a neutral background (#f7fcf9). Dark mode keeps the vivid light green primary (#e7fdef) on a neutral background (#010402).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fcf9mintcream | #010402black |
| Foreground | #031108black | #f6f9f7whitesmoke |
| Card | #f4fbf6mintcream | #030804black |
| Card foreground | #030d06black | #f9fbfamintcream |
| Popover | #f4fbf6mintcream | #030804black |
| Popover foreground | #030d06black | #f9fbfamintcream |
| Primary | #e7fdefhoneydew | #e7fdefhoneydew |
| Primary foreground | #05481cdarkgreen | #05481cdarkgreen |
| Secondary | #eafde7honeydew | #eafde7honeydew |
| Secondary foreground | #0f4805darkgreen | #0f4805darkgreen |
| Muted | #f0f6efwhitesmoke | #0a1009black |
| Muted foreground | #556652dimgray | #9cad99darkgray |
| Accent | #e7fdfalightcyan | #e7fdfalightcyan |
| Accent foreground | #05483edarkslategray | #05483edarkslategray |
| Destructive | #b61207firebrick | #f73022orangered |
| Destructive foreground | #fef1f0seashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e7fdefhoneydew | #e7fdefhoneydew |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.68:1 | AAA |
| Text on card | 18.78:1 | AAA |
| Primary button | 10.12:1 | AAA |
| Secondary button | 10.13:1 | AAA |
| Muted text | 5.60:1 | AA |
| Accent | 9.92:1 | AAA |
| Destructive | 6.18:1 | AA |
| Text on background | 19.44:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 10.12:1 | AAA |
| Secondary button | 10.13:1 | AAA |
| Muted text | 8.10:1 | AAA |
| Accent | 9.92:1 | AAA |
| Destructive | 3.89:1 | AA Large |
Paste this into your globals.css to use Drain in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.007 157.838);
--foreground: oklch(0.161 0.029 156.02);
--muted: oklch(0.966 0.011 141.04);
--muted-foreground: oklch(0.489 0.038 140.899);
--popover: oklch(0.981 0.01 157.762);
--popover-foreground: oklch(0.143 0.025 157.291);
--card: oklch(0.981 0.01 157.762);
--card-foreground: oklch(0.143 0.025 157.291);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.975 0.03 157.324);
--primary-foreground: oklch(0.351 0.095 149.046);
--secondary: oklch(0.975 0.035 140.986);
--secondary-foreground: oklch(0.35 0.11 141.104);
--accent: oklch(0.978 0.024 185.976);
--accent-foreground: oklch(0.359 0.063 179.107);
--destructive: oklch(0.494 0.194 29.795);
--destructive-foreground: oklch(0.969 0.014 22.385);
--ring: oklch(0.975 0.03 157.324);
--chart-1: oklch(0.975 0.03 157.324);
--chart-2: oklch(0.975 0.035 140.986);
--chart-3: oklch(0.978 0.024 185.976);
--chart-4: oklch(0.99 0.014 141.034);
--chart-5: oklch(0.975 0.031 157.301);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.013 157.732);
--foreground: oklch(0.979 0.005 157.887);
--muted: oklch(0.165 0.017 140.806);
--muted-foreground: oklch(0.729 0.034 140.962);
--popover: oklch(0.122 0.016 157.732);
--popover-foreground: oklch(0.986 0.003 157.92);
--card: oklch(0.122 0.016 157.732);
--card-foreground: oklch(0.986 0.003 157.92);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.975 0.03 157.324);
--primary-foreground: oklch(0.351 0.095 149.046);
--secondary: oklch(0.975 0.035 140.986);
--secondary-foreground: oklch(0.35 0.11 141.104);
--accent: oklch(0.978 0.024 185.976);
--accent-foreground: oklch(0.359 0.063 179.107);
--destructive: oklch(0.631 0.234 29.498);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.975 0.03 157.324);
--chart-1: oklch(0.975 0.03 157.324);
--chart-2: oklch(0.975 0.035 140.986);
--chart-3: oklch(0.978 0.024 185.976);
--chart-4: oklch(0.99 0.014 141.034);
--chart-5: oklch(0.975 0.031 157.301);
}