Email for professionals and teams
@import "tailwindcss";
@custom-variant dark (&:where(.dark, .dark *));
:root {
--color-neutral-500: #6b6b6b;
--background: #f6f8fc;
--foreground: #202124;
--card: #ffffff;
--muted: #eef3fb;
--border: #dadce0;
--primary: #0b57d0;
--primary-foreground: #ffffff;
}
@theme inline {
--color-background: var(--background);
--color-foreground: var(--foreground);
--font-sans: var(--font-geist-sans);
--no-font-mono: var(--font-geist-mono);
}
body {
background: var(--background);
color: var(--foreground);
font-family: var(--font-geist-sans), system-ui, sans-serif;
}
pre {
font-family: var(--font-geist-sans), system-ui, sans-serif;
}
.text {
font-family: var(--font-geist-sans), system-ui, sans-serif;
}
@keyframes dialog-overlay-show {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes dialog-overlay-hide {
from { opacity: 1; }
to { opacity: 0; }
}
@keyframes dialog-content-show {
from {
opacity: 0;
transform: scale(0.94);
}
to {
opacity: 1;
transform: scale(1);
}
}
@keyframes dialog-content-hide {
from {
opacity: 1;
transform: scale(1);
}
to {
opacity: 0;
transform: scale(0.97);
}
}
/* Phone compose sheet: full height, slides up from the bottom;
on close it slides away again. */
@keyframes compose-sheet-in {
from { transform: translateY(100%); }
to { transform: translateY(0); }
}
@media (max-width: 767px) {
.compose-sheet {
overscroll-behavior: contain;
transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.compose-sheet-closing {
transform: translateY(100%) !important;
transition: transform 260ms cubic-bezier(0.4, 0, 1, 1) !important;
}
}
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
.compose-sheet { animation: compose-sheet-in 360ms cubic-bezier(0.2, 0.8, 0.2, 1); }
}
/* Bottom-sheet dialogs (send options): slide up from the bottom edge. */
@keyframes slide-sheet-out {
from { transform: translateY(0); }
to { transform: translateY(100%); }
}
.slide-sheet[data-state="open"] { animation: compose-sheet-in 300ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.slide-sheet[data-state="closed"] { animation: slide-sheet-out 200ms cubic-bezier(0.4, 0, 1, 1) both; }
.slide-sheet-overlay[data-state="open"] { animation: dialog-overlay-show 200ms ease-out both; }
.slide-sheet-overlay[data-state="closed"] { animation: dialog-overlay-hide 160ms ease-in both; }
.dialog-overlay[data-state="open"] {
animation: dialog-overlay-show 180ms ease-out both;
}
.dialog-overlay[data-state="closed"] {
animation: dialog-overlay-hide 130ms ease-in both;
}
.dialog-content[data-state="open"] {
transform-origin: center;
animation: dialog-content-show 180ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.dialog-content[data-state="closed"] {
transform-origin: center;
animation: dialog-content-hide 130ms ease-in both;
}
@keyframes route-loading-bar {
0% { transform: translateX(-110%) scaleX(0.55); }
50% { transform: translateX(110%) scaleX(1); }
100% { transform: translateX(280%) scaleX(0.55); }
}
@keyframes page-transition-enter {
from { opacity: 0; transform: translateY(8px); }
to { opacity: 1; transform: translateY(0); }
}
.page-transition-enter {
animation: page-transition-enter 260ms ease-out both;
}
.route-loading-bar {
transform-origin: left;
animation: route-loading-bar 1.1s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
.dialog-overlay,
.dialog-content {
animation-duration: 1ms !important;
}
.route-loading-bar {
width: 100%;
animation: none;
}
.page-transition-enter {
animation: none;
}
}
/* Rendered email bodies (reader, conversation cards, composer). Tailwind's
preflight strips list markers and blockquote styling, which both incoming
mail and the composer's own lists rely on. */
.email-body ul {
list-style: disc;
padding-left: 1.5rem;
margin: 0.25rem 0;
}
.email-body ol {
list-style: decimal;
padding-left: 1.5rem;
margin: 0.25rem 0;
}
.email-body blockquote {
border-left: 2px solid #d4d4d4;
margin: 0.25rem 0;
padding-left: 0.75rem;
color: #525252;
}
.email-body a {
color: #2563eb;
text-decoration: underline;
}
.email-body p {
margin: 0 0 0.5rem;
}
.email-quote-toggle {
margin-top: 1.4em;
}
.email-quote-toggle > summary {
display: inline-flex;
align-items: center;
justify-content: center;
width: 26px;
height: 12px;
border-radius: 9999px;
background: #ececec;
color: #4d4d4d;
cursor: pointer;
list-style: none;
}
.email-quote-toggle > summary::-webkit-details-marker {
display: none;
}
.email-quote-toggle > summary::marker {
content: "";
}
.email-quote-toggle > summary::before {
content: "•••";
font-size: 11px;
font-weight: 700;
letter-spacing: 0.04em;
transform: translateY(-0.5px);
}
.email-quote-toggle > summary:hover {
background: #e5e5e5;
}
.email-quote-toggle > summary:focus-visible {
outline: 2px solid #2563eb;
outline-offset: 2px;
}
.email-quote-content {
display: flow-root;
}
button {
cursor: pointer;
}
/* ── Dark theme ──────────────────────────────────────────────────────────────
Screens use the Tailwind palette directly (bg-white, text-neutral-900, bg-blue-50…). Rather than
editing every component, the dark theme remaps the palette variables under .dark: neutrals follow
Gmail's dark palette (#202124, #303134, #3c4043, #9aa0a6, #e8eaed…) and accents are inverted
(50↔950, 100↔900…). The exceptions come right after. The .dark class is set on <html>
(theme-utils.ts). */
.dark {
color-scheme: dark;
--background: #202124;
--foreground: #e8eaed;
--card: #292a2d;
--muted: #303134;
--border: #3c4043;
--primary: #8ab4f8;
--primary-foreground: #202124;
--color-white: #292a2d;
--color-black: #000;
--color-neutral-50: #303134;
--color-neutral-100: #35363a;
--color-neutral-200: #3c4043;
--color-neutral-300: #5f6368;
--color-neutral-400: #9aa0a6;
--color-neutral-500: #a8aeb4;
--color-neutral-600: #bdc1c6;
--color-neutral-700: #dadce0;
--color-neutral-800: #e8eaed;
--color-neutral-900: #f1f3f4;
--color-neutral-950: #ffffff;
--color-gray-50: #303134;
--color-gray-100: #35363a;
--color-gray-200: #3c4043;
--color-gray-300: #5f6368;
--color-gray-400: #80868b;
--color-gray-500: #9aa0a6;
--color-gray-600: #bdc1c6;
--color-gray-700: #dadce0;
--color-gray-800: #e8eaed;
--color-gray-900: #f1f3f4;
--color-gray-950: #ffffff;
--color-stone-50: #303134;
--color-stone-100: #35363a;
--color-stone-200: #3c4043;
--color-stone-300: #5f6368;
--color-stone-400: #80868b;
--color-stone-500: #9aa0a6;
--color-stone-600: #bdc1c6;
--color-stone-700: #dadce0;
--color-stone-800: #e8eaed;
--color-stone-900: #f1f3f4;
--color-stone-950: #ffffff;
--color-zinc-50: #303134;
--color-zinc-100: #35363a;
--color-zinc-200: #3c4043;
--color-zinc-300: #5f6368;
--color-zinc-400: #80868b;
--color-zinc-500: #9aa0a6;
--color-zinc-600: #bdc1c6;
--color-zinc-700: #dadce0;
--color-zinc-800: #e8eaed;
--color-zinc-900: #f1f3f4;
--color-zinc-950: #ffffff;
--color-slate-50: #303134;
--color-slate-100: #35363a;
--color-slate-200: #3c4043;
--color-slate-300: #5f6368;
--color-slate-400: #80868b;
--color-slate-500: #9aa0a6;
--color-slate-600: #bdc1c6;
--color-slate-700: #dadce0;
--color-slate-800: #e8eaed;
--color-slate-900: #f1f3f4;
--color-slate-950: #ffffff;
--color-blue-50: #2c3d57;
--color-blue-100: #33486a;
--color-blue-200: oklch(42.4% 0.199 265.638);
--color-blue-300: oklch(48.8% 0.243 264.376);
--color-blue-400: oklch(54.6% 0.245 262.881);
--color-blue-500: oklch(62.3% 0.214 259.815);
--color-blue-600: oklch(70.7% 0.165 254.624);
--color-blue-700: oklch(80.9% 0.105 251.813);
--color-blue-800: oklch(88.2% 0.059 254.128);
--color-blue-900: oklch(93.2% 0.032 255.585);
--color-blue-950: oklch(97% 0.014 254.604);
--color-red-50: oklch(25.8% 0.092 26.042);
--color-red-100: oklch(39.6% 0.141 25.723);
--color-red-200: oklch(44.4% 0.177 26.899);
--color-red-300: oklch(50.5% 0.213 27.518);
--color-red-400: oklch(57.7% 0.245 27.325);
--color-red-500: oklch(63.7% 0.237 25.331);
--color-red-600: oklch(70.4% 0.191 22.216);
--color-red-700: oklch(80.8% 0.114 19.571);
--color-red-800: oklch(88.5% 0.062 18.334);
--color-red-900: oklch(93.6% 0.032 17.717);
--color-red-950: oklch(97.1% 0.013 17.38);
--color-green-50: oklch(26.6% 0.065 152.934);
--color-green-100: oklch(39.3% 0.095 152.535);
--color-green-200: oklch(44.8% 0.119 151.328);
--color-green-300: oklch(52.7% 0.154 150.069);
--color-green-400: oklch(62.7% 0.194 149.214);
--color-green-500: oklch(72.3% 0.219 149.579);
--color-green-600: oklch(79.2% 0.209 151.711);
--color-green-700: oklch(87.1% 0.15 154.449);
--color-green-800: oklch(92.5% 0.084 155.995);
--color-green-900: oklch(96.2% 0.044 156.743);
--color-green-950: oklch(98.2% 0.018 155.826);
--color-amber-50: oklch(27.9% 0.077 45.635);
--color-amber-100: oklch(41.4% 0.112 45.904);
--color-amber-200: oklch(47.3% 0.137 46.201);
--color-amber-300: oklch(55.5% 0.163 48.998);
--color-amber-400: oklch(66.6% 0.179 58.318);
--color-amber-500: oklch(76.9% 0.188 70.08);
--color-amber-600: oklch(82.8% 0.189 84.429);
--color-amber-700: oklch(87.9% 0.169 91.605);
--color-amber-800: oklch(92.4% 0.12 95.746);
--color-amber-900: oklch(96.2% 0.059 95.617);
--color-amber-950: oklch(98.7% 0.022 95.277);
--color-sky-50: oklch(29.3% 0.066 243.157);
--color-sky-100: oklch(39.1% 0.09 240.876);
--color-sky-200: oklch(44.3% 0.11 240.79);
--color-sky-300: oklch(50% 0.134 242.749);
--color-sky-400: oklch(58.8% 0.158 241.966);
--color-sky-500: oklch(68.5% 0.169 237.323);
--color-sky-600: oklch(74.6% 0.16 232.661);
--color-sky-700: oklch(82.8% 0.111 230.318);
--color-sky-800: oklch(90.1% 0.058 230.902);
--color-sky-900: oklch(95.1% 0.026 236.824);
--color-sky-950: oklch(97.7% 0.013 236.62);
--color-violet-50: oklch(28.3% 0.141 291.089);
--color-violet-100: oklch(38% 0.189 293.745);
--color-violet-200: oklch(43.2% 0.232 292.759);
--color-violet-300: oklch(49.1% 0.27 292.581);
--color-violet-400: oklch(54.1% 0.281 293.009);
--color-violet-500: oklch(60.6% 0.25 292.717);
--color-violet-600: oklch(70.2% 0.183 293.541);
--color-violet-700: oklch(81.1% 0.111 293.571);
--color-violet-800: oklch(89.4% 0.057 293.283);
--color-violet-900: oklch(94.3% 0.029 294.588);
--color-violet-950: oklch(96.9% 0.016 293.756);
--color-teal-50: oklch(27.7% 0.046 192.524);
--color-teal-100: oklch(38.6% 0.063 188.416);
--color-teal-200: oklch(43.7% 0.078 188.216);
--color-teal-300: oklch(51.1% 0.096 186.391);
--color-teal-400: oklch(60% 0.118 184.704);
--color-teal-500: oklch(70.4% 0.14 182.503);
--color-teal-600: oklch(77.7% 0.152 181.912);
--color-teal-700: oklch(85.5% 0.138 181.071);
--color-teal-800: oklch(91% 0.096 180.426);
--color-teal-900: oklch(95.3% 0.051 180.801);
--color-teal-950: oklch(98.4% 0.014 180.72);
--color-pink-50: oklch(28.4% 0.109 3.907);
--color-pink-100: oklch(40.8% 0.153 2.432);
--color-pink-200: oklch(45.9% 0.187 3.815);
--color-pink-300: oklch(52.5% 0.223 3.958);
--color-pink-400: oklch(59.2% 0.249 0.584);
--color-pink-500: oklch(65.6% 0.241 354.308);
--color-pink-600: oklch(71.8% 0.202 349.761);
--color-pink-700: oklch(82.3% 0.12 346.018);
--color-pink-800: oklch(89.9% 0.061 343.231);
--color-pink-900: oklch(94.8% 0.028 342.258);
--color-pink-950: oklch(97.1% 0.014 343.198);
--color-orange-50: oklch(26.6% 0.079 36.259);
--color-orange-100: oklch(40.8% 0.123 38.172);
--color-orange-200: oklch(47% 0.157 37.304);
--color-orange-300: oklch(55.3% 0.195 38.402);
--color-orange-400: oklch(64.6% 0.222 41.116);
--color-orange-500: oklch(70.5% 0.213 47.604);
--color-orange-600: oklch(75% 0.183 55.934);
--color-orange-700: oklch(83.7% 0.128 66.29);
--color-orange-800: oklch(90.1% 0.076 70.697);
--color-orange-900: oklch(95.4% 0.038 75.164);
--color-orange-950: oklch(98% 0.016 73.684);
--color-rose-50: oklch(27.1% 0.105 12.094);
--color-rose-100: oklch(41% 0.159 10.272);
--color-rose-200: oklch(45.5% 0.188 13.697);
--color-rose-300: oklch(51.4% 0.222 16.935);
--color-rose-400: oklch(58.6% 0.253 17.585);
--color-rose-500: oklch(64.5% 0.246 16.439);
--color-rose-600: oklch(71.2% 0.194 13.428);
--color-rose-700: oklch(81% 0.117 11.638);
--color-rose-800: oklch(89.2% 0.058 10.001);
--color-rose-900: oklch(94.1% 0.03 12.58);
--color-rose-950: oklch(96.9% 0.015 12.422);
--color-emerald-50: oklch(26.2% 0.051 172.552);
--color-emerald-100: oklch(37.8% 0.077 168.94);
--color-emerald-200: oklch(43.2% 0.095 166.913);
--color-emerald-300: oklch(50.8% 0.118 165.612);
--color-emerald-400: oklch(59.6% 0.145 163.225);
--color-emerald-500: oklch(69.6% 0.17 162.48);
--color-emerald-600: oklch(76.5% 0.177 163.223);
--color-emerald-700: oklch(84.5% 0.143 164.978);
--color-emerald-800: oklch(90.5% 0.093 164.15);
--color-emerald-900: oklch(95% 0.052 163.051);
--color-emerald-950: oklch(97.9% 0.021 166.113);
--color-cyan-50: oklch(30.2% 0.056 229.695);
--color-cyan-100: oklch(39.8% 0.07 227.392);
--color-cyan-200: oklch(45% 0.085 224.283);
--color-cyan-300: oklch(52% 0.105 223.128);
--color-cyan-400: oklch(60.9% 0.126 221.723);
--color-cyan-500: oklch(71.5% 0.143 215.221);
--color-cyan-600: oklch(78.9% 0.154 211.53);
--color-cyan-700: oklch(86.5% 0.127 207.078);
--color-cyan-800: oklch(91.7% 0.08 205.041);
--color-cyan-900: oklch(95.6% 0.045 203.388);
--color-cyan-950: oklch(98.4% 0.019 200.873);
--color-yellow-50: oklch(28.6% 0.066 53.813);
--color-yellow-100: oklch(42.1% 0.095 57.708);
--color-yellow-200: oklch(47.6% 0.114 61.907);
--color-yellow-300: oklch(55.4% 0.135 66.442);
--color-yellow-400: oklch(68.1% 0.162 75.834);
--color-yellow-500: oklch(79.5% 0.184 86.047);
--color-yellow-600: oklch(85.2% 0.199 91.936);
--color-yellow-700: oklch(90.5% 0.182 98.111);
--color-yellow-800: oklch(94.5% 0.129 101.54);
--color-yellow-900: oklch(97.3% 0.071 103.193);
--color-yellow-950: oklch(98.7% 0.026 102.212);
--color-indigo-50: oklch(25.7% 0.09 281.288);
--color-indigo-100: oklch(35.9% 0.144 278.697);
--color-indigo-200: oklch(39.8% 0.195 277.366);
--color-indigo-300: oklch(45.7% 0.24 277.023);
--color-indigo-400: oklch(51.1% 0.262 276.966);
--color-indigo-500: oklch(58.5% 0.233 277.117);
--color-indigo-600: oklch(67.3% 0.182 276.935);
--color-indigo-700: oklch(78.5% 0.115 274.713);
--color-indigo-800: oklch(87% 0.065 274.039);
--color-indigo-900: oklch(93% 0.034 272.788);
--color-indigo-950: oklch(96.2% 0.018 272.314);
--color-purple-50: oklch(29.1% 0.149 302.717);
--color-purple-100: oklch(38.1% 0.176 304.987);
--color-purple-200: oklch(43.8% 0.218 303.724);
--color-purple-300: oklch(49.6% 0.265 301.924);
--color-purple-400: oklch(55.8% 0.288 302.321);
--color-purple-500: oklch(62.7% 0.265 303.9);
--color-purple-600: oklch(71.4% 0.203 305.504);
--color-purple-700: oklch(82.7% 0.119 306.383);
--color-purple-800: oklch(90.2% 0.063 306.703);
--color-purple-900: oklch(94.6% 0.033 307.174);
--color-purple-950: oklch(97.7% 0.014 308.299);
--color-lime-50: oklch(27.4% 0.072 132.109);
--color-lime-100: oklch(40.5% 0.101 131.063);
--color-lime-200: oklch(45.3% 0.124 130.933);
--color-lime-300: oklch(53.2% 0.157 131.589);
--color-lime-400: oklch(64.8% 0.2 131.684);
--color-lime-500: oklch(76.8% 0.233 130.85);
--color-lime-600: oklch(84.1% 0.238 128.85);
--color-lime-700: oklch(89.7% 0.196 126.665);
--color-lime-800: oklch(93.8% 0.127 124.321);
--color-lime-900: oklch(96.7% 0.067 122.328);
--color-lime-950: oklch(98.6% 0.031 120.757);
}
/* White text and borders on coloured surfaces (buttons, badges) stay white */
.dark .text-white, .dark .hover\:text-white:hover, .dark .fill-white { color: #fff; fill: #fff; }
.dark .border-white { border-color: #fff; }
/* Dark chips with white text (tooltip, compose header): the chip turns light, the text turns dark */
.dark .bg-neutral-900.text-white, .dark .bg-neutral-800.text-white, .dark .bg-neutral-950.text-white { color: var(--color-neutral-50); }
/* Buttons and highlights with white text keep their original saturated background, not the inverted one */
.dark .bg-blue-600 { background-color: oklch(54.6% 0.245 262.881); }
.dark .bg-blue-700, .dark .hover\:bg-blue-700:hover { background-color: oklch(48.8% 0.243 264.376); }
.dark .bg-red-600 { background-color: oklch(57.7% 0.245 27.325); }
.dark .bg-red-700, .dark .hover\:bg-red-700:hover { background-color: oklch(50.5% 0.213 27.518); }
.dark .bg-green-600 { background-color: oklch(62.7% 0.194 149.214); }
.dark .bg-amber-600 { background-color: oklch(66.6% 0.179 58.318); }
.dark .bg-violet-600 { background-color: oklch(54.1% 0.281 293.009); }
.dark .bg-teal-600 { background-color: oklch(60% 0.118 184.704); }
.dark .bg-pink-600 { background-color: oklch(59.2% 0.249 0.584); }
.dark .bg-orange-600 { background-color: oklch(64.6% 0.222 41.116); }
/* Fixed-hex backgrounds (page, panels) and their hover: variants (inbox rows, mailbox selector) */
.dark .bg-\[\#f6f8fc\], .dark .bg-\[\#f7f9fc\] { background-color: #202124; }
.dark .bg-\[\#f2f6fc\], .dark .bg-\[\#f1f4fa\], .dark .bg-\[\#f0f3f9\] { background-color: #303134; }
.dark .bg-\[\#eef3fb\], .dark .bg-\[\#eaf1fb\], .dark .bg-\[\#e6ecf6\] { background-color: #383a3e; }
.dark .hover\:bg-\[\#f2f6fc\]:hover,
.dark .bg-\[\#f2f6fc\] { background-color: #35363a; }
.dark .hover\:bg-\[\#e6ecf6\]:hover { background-color: #3c4043; }
/* Soft shadows turn dark */
.dark .shadow-neutral-200, .dark .shadow-neutral-300 { --tw-shadow-color: rgb(0 0 0 / 0.6); }
/* HTML emails assume a white background: keep them on light "paper" inside the dark theme */
.dark .email-body {
color-scheme: light;
/* background: #fff; */
/* color: #202124; */
border-radius: 0.75rem;
padding: 1rem;
}
/* On phones the settings/admin body is already white and padded, so white cards drop their own side padding to line up with the page header. */
@media (max-width: 767px) {
.page-flush :is(.bg-white.p-6, .bg-white.p-5) {
padding-inline: 0;
}
}