@import 'tailwindcss'; /* Konduktor design tokens — "dark liquid glass". Surfaces are translucent layers over a slowly drifting wash of colour (`AmbientBackdrop`) sampled from the loaded track's cover art. So the ink scale is no longer a set of opaque greys: 900 → 600 are increasingly strong WHITE overlays, which read correctly on any glass panel they sit on. Only `ink-950` stays opaque — it is the dark text on light (accent, mint, gold) buttons, and the page's base colour. Recessed things (inputs, waveforms, readouts, progress tracks) use `well`. Colour is reserved for meaning: cue types, key, the playhead, the one primary action. Chrome stays neutral. */ @theme { --font-sans: 'Geist Variable', system-ui, -apple-system, 'Segoe UI', sans-serif; --font-mono: 'Geist Mono Variable', ui-monospace, 'SF Mono', Menlo, monospace; --color-ink-950: #05060a; --color-ink-900: rgb(255 255 255 / 0.03); --color-ink-850: rgb(255 255 255 / 0.05); --color-ink-800: rgb(255 255 255 / 0.075); --color-ink-700: rgb(255 255 255 / 0.11); --color-ink-600: rgb(255 255 255 / 0.16); --color-line: rgb(255 255 255 / 0.085); --color-well: rgb(0 0 0 / 0.32); --color-text: #f4f6fb; --color-muted: rgb(235 240 255 / 0.68); --color-faint: rgb(235 240 255 / 0.54); /* The accent follows the cover art's dominant hue at a FIXED lightness and chroma, so dark text on an accent button always has the same contrast whatever track is loaded. */ --color-accent: oklch(0.8 0.11 var(--accent-hue)); --color-accent-soft: color-mix(in oklab, var(--color-accent) 20%, transparent); --color-gold: #ffc861; --color-mint: #3ddc84; --color-pink: #ff7a9a; } /* Registered so they interpolate: the accent and the backdrop glide to a new track's colours instead of snapping. */ @property --accent-hue { syntax: ''; inherits: true; initial-value: 275; } @property --amb-1 { syntax: ''; inherits: true; initial-value: #6d4aff; } @property --amb-2 { syntax: ''; inherits: true; initial-value: #e0409a; } @property --amb-3 { syntax: ''; inherits: true; initial-value: #12b5c9; } @property --amb-4 { syntax: ''; inherits: true; initial-value: #2f3fe0; } :root { color-scheme: dark; --glass-blur: blur(28px) saturate(180%); transition: --accent-hue 1.4s ease, --amb-1 1.8s ease, --amb-2 1.8s ease, --amb-3 1.8s ease, --amb-4 1.8s ease; } html, body, #root { height: 100%; /* A horizontal trackpad swipe past an edge is the browser's back/forward gesture; an app has no page to go back to. See lib/noNavigation.ts. */ overscroll-behavior: none; } /* While something is being dragged (lib/drag.tsx), the cursor is the hand everywhere — buttons and links would otherwise show their own. */ html.is-dragging, html.is-dragging * { cursor: grabbing !important; } body { margin: 0; background: var(--color-ink-950); color: var(--color-text); font-family: var(--font-sans); font-feature-settings: 'tnum' 1; /* tabular numbers for BPM columns */ -webkit-font-smoothing: antialiased; /* An app, not a document: clicks and drags must not paint a text selection. Only fields the user types into can select. */ -webkit-user-select: none; user-select: none; } input, textarea, [contenteditable='true'] { -webkit-user-select: text; user-select: text; } /* Keyboard focus: a soft accent ring instead of the browser's hard outline, which reads as a white box on glass. :focus-visible only, so a mouse click leaves no ring behind. */ :focus-visible { outline: 2px solid color-mix(in oklab, var(--color-accent) 75%, transparent); outline-offset: 2px; } input::placeholder, textarea::placeholder { color: var(--color-faint); } /* Native dropdown lists cannot be glass; give them a solid dark ground. */ option { background: #14161f; color: var(--color-text); } /* Thin, translucent scrollbars that sit on glass. */ * { scrollbar-width: thin; scrollbar-color: var(--color-ink-600) transparent; } *::-webkit-scrollbar { width: 10px; height: 10px; } *::-webkit-scrollbar-thumb { background: var(--color-ink-600); border-radius: 6px; border: 2px solid transparent; background-clip: padding-box; } *::-webkit-scrollbar-thumb:hover { background: rgb(255 255 255 / 0.26); background-clip: padding-box; } /* ---- Materials --------------------------------------------------------- Plain classes rather than utilities: each is a whole material (fill, blur, rim light, shadow), and the rim needs a pseudo-element. */ @layer components { /* A floating panel: frosted, tinted dark so text holds contrast over bright colour, with a light-catching rim. The blur and the tint live on ::after, NEVER on the element itself: an element with `backdrop-filter` becomes the containing block for every `position: fixed` descendant, so a context menu or dialog opened from inside a panel would be positioned against the panel instead of the window (the sidebar's playlist menu opened far from the cursor). `isolation` keeps the z-index:-1 layer behind this panel's content without escaping the panel, and unlike a filter it does not capture fixed descendants. */ .glass, .glass-overlay { position: relative; isolation: isolate; border-radius: 22px; } .glass { --glass-tint: linear-gradient(180deg, rgb(255 255 255 / 0.1), rgb(255 255 255 / 0.06)), rgb(12 14 24 / 0.42); --glass-filter: var(--glass-blur); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.14), 0 30px 80px -30px rgb(0 0 0 / 0.8); } /* Menus, dialogs, toasts: denser so they read over busy content beneath. */ .glass-overlay { --glass-tint: linear-gradient(180deg, rgb(255 255 255 / 0.12), rgb(255 255 255 / 0.08)), rgb(14 16 26 / 0.78); --glass-filter: blur(40px) saturate(180%); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.16), 0 40px 90px -20px rgb(0 0 0 / 0.9); } .glass::after, .glass-overlay::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: var(--glass-tint); backdrop-filter: var(--glass-filter); -webkit-backdrop-filter: var(--glass-filter); } .glass::before, .glass-overlay::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: linear-gradient( 155deg, rgb(255 255 255 / 0.42), rgb(255 255 255 / 0.07) 32%, rgb(255 255 255 / 0) 58%, rgb(255 255 255 / 0.14) ); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; } /* Recessed: waveforms, readouts, the loop-size selector. */ .well { background: rgb(0 0 0 / 0.36); box-shadow: inset 0 2px 6px rgb(0 0 0 / 0.55), inset 0 0 0 1px rgb(255 255 255 / 0.06); } /* A raised glass control. */ .btn-glass { background: rgb(255 255 255 / 0.07); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.14), inset 0 0 0 1px rgb(255 255 255 / 0.08); transition: background-color 120ms, box-shadow 120ms, filter 120ms; } .btn-glass:hover:not(:disabled) { background: rgb(255 255 255 / 0.12); } /* A row of buttons that should LOOK like one raised control (‹ ›, the tempo group) but act as separate keys: the btn-glass surface with no hover of its own, so only the key under the pointer reacts. */ .glass-group { background: rgb(255 255 255 / 0.07); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.14), inset 0 0 0 1px rgb(255 255 255 / 0.08); } /* THE primary action: a lit pill, white into the accent. One per view. */ .btn-primary { color: var(--color-ink-950); background: linear-gradient(180deg, #ffffff 0%, var(--color-accent) 100%); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.9), inset 0 -2px 6px rgb(0 0 0 / 0.12), 0 10px 26px -8px var(--color-accent); transition: filter 120ms; } .btn-primary:hover:not(:disabled) { filter: brightness(1.06); } /* Selected / toggled-on state for chips and list rows. */ .is-selected { background: color-mix(in oklab, var(--color-accent) 18%, transparent); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.1), inset 0 0 0 1px color-mix(in oklab, var(--color-accent) 36%, transparent); } } @media (prefers-reduced-motion: reduce) { :root { transition: none; } } /* ---- Track info popup (see TrackInfoDialog.tsx) ---------------------- */ .track-info-pop { animation: track-info-pop 220ms cubic-bezier(0.2, 0.9, 0.3, 1.15); } @keyframes track-info-pop { from { opacity: 0; transform: translateY(8px) scale(0.96); } to { opacity: 1; transform: none; } } @media (prefers-reduced-motion: reduce) { .track-info-pop { animation: none; } } /* ---- Ambient backdrop (see AmbientBackdrop.tsx) ------------------------ */ .ambient-wash { position: absolute; border-radius: 50%; will-change: transform; } @keyframes drift-a { from { transform: translate(0, 0) scale(1); } to { transform: translate(8vw, 6vh) scale(1.12); } } @keyframes drift-b { from { transform: translate(0, 0) scale(1.05); } to { transform: translate(-9vw, -4vh) scale(0.94); } } @keyframes drift-c { from { transform: translate(0, 0); } to { transform: translate(5vw, -9vh); } } @media (prefers-reduced-motion: reduce) { .ambient-wash { animation: none !important; } } /* ---- On-screen MIDI learning (MidiLearnOverlay.tsx) --------------------- */ /* Outlines, not borders or shadows: they sit outside the control and change no layout, and the controls' own shadows (lit buttons) stay as they are. */ body.midi-learn [data-midi-action] { outline: 1px dashed color-mix(in oklab, var(--color-accent) 70%, transparent); outline-offset: 2px; cursor: crosshair; } body.midi-learn [data-midi-action][data-midi-mapped] { outline-style: solid; } body.midi-learn [data-midi-action][data-midi-armed] { outline: 2px solid var(--color-accent); outline-offset: 3px; animation: midi-armed 0.9s ease-in-out infinite alternate; } body.midi-learn [data-midi-action][data-midi-learned] { outline: 2px solid var(--color-mint); outline-offset: 3px; } @keyframes midi-armed { from { outline-color: var(--color-accent); } to { outline-color: color-mix(in oklab, var(--color-accent) 30%, transparent); } } @media (prefers-reduced-motion: reduce) { body.midi-learn [data-midi-action][data-midi-armed] { animation: none; } }