@import "tailwindcss"; /* Shared client code (cn() call sites, class constants) lives outside this app. */ @source "../../../packages/client/src"; /* * Design tokens, the same palette as the native app (apps/amethyst/global.css): * plain grounds, one teal tint, frosted panels over album-art backdrops. * Light and dark follow the system unless overrides it. */ @theme { --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, Roboto, "Segoe UI", sans-serif; --color-ground: var(--ground); --color-ground-2: var(--ground-2); --color-ink: var(--ink); --color-ink-2: var(--ink-2); --color-ink-3: var(--ink-3); --color-hair: var(--hair); --color-tint: var(--tint); --color-on-tint: var(--on-tint); --color-tint-soft: var(--tint-soft); /* Presence ("listening now"): deeper in light mode so the ring clears 3:1 on white. */ --color-now: var(--now); --color-glass: var(--glass); --color-glass-strong: var(--glass-strong); --color-glass-edge: var(--glass-edge); --color-fill: var(--fill); --color-destructive: hsl(var(--destructive)); } @layer theme { :root { --ground: #ffffff; --ground-2: #f2f2f7; --ink: #000000; --ink-2: rgba(0, 0, 0, 0.66); --ink-3: rgba(60, 60, 67, 0.4); --hair: rgba(60, 60, 67, 0.18); --tint: #0b7a73; --on-tint: #ffffff; --tint-soft: rgba(11, 122, 115, 0.12); --glass: rgba(255, 255, 255, 0.58); --glass-strong: rgba(255, 255, 255, 0.72); --glass-edge: rgba(255, 255, 255, 0.7); --fill: rgba(120, 120, 128, 0.12); --now: #0f8f84; --destructive: 5 91% 37%; /* Text on the backdrop gets a halo in the ground colour; covers get a veil. */ --halo: rgba(255, 255, 255, 0.8); --veil: rgba(250, 250, 252, 0.46); --placeholder: #636366; color-scheme: light; } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ground: #000000; --ground-2: #1c1c1e; --ink: #ffffff; --ink-2: rgba(235, 235, 245, 0.8); --ink-3: rgba(235, 235, 245, 0.36); --hair: rgba(84, 84, 88, 0.6); --tint: #3fc9bd; --on-tint: #002b28; --tint-soft: rgba(63, 201, 189, 0.16); --glass: rgba(30, 30, 32, 0.46); --glass-strong: rgba(0, 0, 0, 0.64); --glass-edge: rgba(255, 255, 255, 0.08); --fill: rgba(120, 120, 128, 0.24); --now: #3fc9bd; --destructive: 5 85% 72%; --halo: rgba(0, 0, 0, 0.6); --veil: rgba(0, 0, 0, 0.42); --placeholder: #98989d; color-scheme: dark; } } :root[data-theme="dark"] { --ground: #000000; --ground-2: #1c1c1e; --ink: #ffffff; --ink-2: rgba(235, 235, 245, 0.8); --ink-3: rgba(235, 235, 245, 0.36); --hair: rgba(84, 84, 88, 0.6); --tint: #3fc9bd; --on-tint: #002b28; --tint-soft: rgba(63, 201, 189, 0.16); --glass: rgba(30, 30, 32, 0.46); --glass-strong: rgba(0, 0, 0, 0.64); --glass-edge: rgba(255, 255, 255, 0.08); --fill: rgba(120, 120, 128, 0.24); --now: #3fc9bd; --destructive: 5 85% 72%; --halo: rgba(0, 0, 0, 0.6); --veil: rgba(0, 0, 0, 0.42); --placeholder: #98989d; color-scheme: dark; } } @layer base { /* * Only the root gets the ground colour. A body background paints above the * backdrop, which sits at a negative z-index, and would hide the covers. */ html { background-color: var(--ground); color: var(--ink); } body { font-family: var(--font-sans); font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; -webkit-tap-highlight-color: transparent; } ::selection { background: var(--tint); color: var(--on-tint); } input, textarea { caret-color: var(--tint); } input::placeholder, textarea::placeholder { color: var(--placeholder); } button:not(:disabled), [role="button"]:not([aria-disabled="true"]) { cursor: pointer; } /* One keyboard focus ring for every control. */ :focus-visible { outline: 2px solid var(--tint); outline-offset: 2px; } /* Tabs sit in rows that clip overflow, so their ring is drawn inside. */ [role="tab"]:focus-visible { outline-offset: -2px; } /* Text fields mark focus with a tint border. Fields set inside a panel opt out and light the panel instead. */ input:focus-visible, textarea:focus-visible { outline: none; border-color: var(--tint); box-shadow: 0 0 0 1px var(--tint); } input.field-in-panel:focus-visible { border-color: transparent; box-shadow: none; } } @utility halo { /* A tight inner shadow lifts the glyph edges; the wide one softens the patch behind them. */ text-shadow: 0 0 3px var(--halo), 0 0 12px var(--halo); } @utility scrollbar-none { scrollbar-width: none; &::-webkit-scrollbar { display: none; } } /* The shell's breakpoints: the sidebar appears at `nav:`, the right rail at `rail:`. */ @theme { --breakpoint-nav: 1000px; --breakpoint-rail: 1280px; } /* The backdrop's covers drift and turn slowly, so the colour is never still. */ @keyframes backdrop-wander { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(9%, -7%) scale(1.1); } 66% { transform: translate(-7%, 8%) scale(0.94); } } @keyframes backdrop-spin { to { transform: rotate(360deg); } } /* Each cover layer is blurred once; the Settings colour choice tones it down. */ .backdrop-layer { filter: blur(56px) saturate(var(--backdrop-saturate, 2)); } :root[data-backdrop-colour="muted"] { --backdrop-saturate: 0.7; } :root[data-backdrop="off"] .backdrop-root { display: none; } .backdrop-wander { animation: backdrop-wander 40s ease-in-out infinite; will-change: transform; } .backdrop-spin { animation: backdrop-spin 80s linear infinite; will-change: transform; } @media (prefers-reduced-motion: reduce) { .backdrop-wander, .backdrop-spin { animation: none; } } :root[data-backdrop-motion="still"] :is(.backdrop-wander, .backdrop-spin) { animation: none; } /* Reaction stickers spring in when someone reacts. */ @keyframes sticker { from { transform: scale(0.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }