Open-source music player for YouTube Music's catalog, with genres, full albums and playlists. Windows, macOS, Linux, Android, iPhone and Docker. No account needed.
TypeScript
@import "tailwindcss";
@custom-variant light (&:where([data-theme="light"], [data-theme="light"] *));
/* The wide (labelled) rail, from 1280px up unless the user chose a compact sidebar in Settings (always compact on TV). */
@custom-variant wide {
@media (width >= 80rem) {
&:where(html:not([data-rail="compact"]):not([data-tv="1"]) *) {
@slot;
}
}
}
/* Theme tokens. Dark is the default; see docs/design-system.md */
:root,
[data-theme="dark"] {
color-scheme: dark;
--bg: #0b0c0f;
--surface-1: #121318;
--surface-2: #181a20;
--surface-3: #20232b;
--surface-4: #2a2e38;
--line: rgb(255 255 255 / 0.07);
--line-strong: rgb(255 255 255 / 0.12);
--fg: #eceef2;
--fg-2: #9ba1ad;
--fg-3: #6b717d;
--accent: #c3ec52;
--accent-ink: #0b0c0f;
--accent-text: #c3ec52;
--accent-soft: rgb(195 236 82 / 0.12);
--highlight: rgb(255 255 255 / 0.06);
--scrim: rgb(5 6 8 / 0.72);
--danger: #ff7a6b;
}
[data-theme="light"] {
color-scheme: light;
--bg: #e9ebef;
--surface-1: #ffffff;
--surface-2: #f2f3f6;
--surface-3: #e4e7ec;
--surface-4: #d6dae1;
--line: rgb(15 18 25 / 0.08);
--line-strong: rgb(15 18 25 / 0.14);
--fg: #12141a;
--fg-2: #555b67;
--fg-3: #7d8390;
--accent: #c3ec52;
--accent-ink: #0b0c0f;
--accent-text: #4a6300;
--accent-soft: rgb(110 150 0 / 0.12);
--highlight: rgb(255 255 255 / 0.8);
--scrim: rgb(20 22 28 / 0.45);
--danger: #c4372a;
}
@theme inline {
--color-bg: var(--bg);
--color-surface-1: var(--surface-1);
--color-surface-2: var(--surface-2);
--color-surface-3: var(--surface-3);
--color-surface-4: var(--surface-4);
--color-line: var(--line);
--color-line-strong: var(--line-strong);
--color-fg: var(--fg);
--color-fg-2: var(--fg-2);
--color-fg-3: var(--fg-3);
--color-accent: var(--accent);
--color-accent-ink: var(--accent-ink);
--color-accent-text: var(--accent-text);
--color-accent-soft: var(--accent-soft);
--color-scrim: var(--scrim);
--color-danger: var(--danger);
--font-sans: "Geist Variable", ui-sans-serif, system-ui, sans-serif;
--font-mono: "Geist Mono Variable", ui-monospace, "SFMono-Regular", monospace;
--ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
--radius-tile: 14px;
--radius-art: 10px;
--radius-panel: 20px;
}
@layer base {
html,
body,
#root {
height: 100%;
}
body {
background: var(--bg);
color: var(--fg);
font-family: var(--font-sans);
-webkit-font-smoothing: antialiased;
-webkit-tap-highlight-color: transparent;
overscroll-behavior: none;
font-feature-settings: "ss01";
}
button {
cursor: pointer;
}
:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
border-radius: 8px;
}
::selection {
background: var(--accent);
color: var(--accent-ink);
}
}
@layer components {
/* Floating island with a nested bezel: outer shell + inner core (high-end-visual-design). */
.island {
background: var(--surface-1);
border: 1px solid var(--line);
border-radius: var(--radius-panel);
padding: 5px;
}
.island-core {
background: var(--surface-2);
border-radius: calc(var(--radius-panel) - 5px);
box-shadow: inset 0 1px 0 var(--highlight);
}
.scroll-area {
scrollbar-width: thin;
scrollbar-color: var(--surface-4) transparent;
}
.safe-bottom {
padding-bottom: env(safe-area-inset-bottom);
}
.safe-top {
padding-top: env(safe-area-inset-top);
}
/* Full-window overlays clear the phone notch and, in the desktop app, the native window buttons. */
.overlay-top {
padding-top: max(env(safe-area-inset-top), env(titlebar-area-height, 0px));
}
.drawer-top {
top: calc(env(titlebar-area-height, 0px) + 0.5rem);
}
/* Desktop app title bar: draggable, with clicks still reaching buttons inside it. */
.app-drag {
-webkit-app-region: drag;
app-region: drag;
}
.app-no-drag {
-webkit-app-region: no-drag;
app-region: no-drag;
}
.no-scrollbar {
scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
display: none;
}
.kbd {
font-family: var(--font-mono);
font-size: 11px;
line-height: 1;
padding: 3px 6px;
border-radius: 6px;
background: var(--surface-3);
border: 1px solid var(--line-strong);
color: var(--fg-2);
}
}
/* Film grain, fixed and non-interactive so it never repaints with scroll. */
.grain::after {
content: "";
position: fixed;
inset: 0;
z-index: 1;
pointer-events: none;
opacity: 0.035;
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
[data-theme="light"] .grain::after {
opacity: 0.025;
}
[data-texture="off"] .grain::after {
display: none;
}
/* Living brand mark: the equalizer that marks the playing track. */
@keyframes eq {
0%,
100% {
transform: scaleY(0.3);
}
50% {
transform: scaleY(1);
}
}
.eq-bar {
transform-origin: bottom;
transform: scaleY(0.45);
}
.eq-live .eq-bar {
animation: eq 0.9s var(--ease-out-expo) infinite;
}
.eq-live .eq-bar:nth-child(2) {
animation-duration: 0.7s;
animation-delay: -0.3s;
}
.eq-live .eq-bar:nth-child(3) {
animation-duration: 1.05s;
animation-delay: -0.55s;
}
@keyframes shimmer {
from {
background-position: -200% 0;
}
to {
background-position: 200% 0;
}
}
.skeleton {
background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
background-size: 200% 100%;
animation: shimmer 1.6s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
.eq-live .eq-bar,
.skeleton {
animation: none;
}
*,
*::before,
*::after {
transition-duration: 0.01ms !important;
}
}