All your computers and your phone/iPhone, working as one desk. Screens, apps, files, clipboard, calls, texts, notifications, mouse and keyboard, shared between Mac, Windows, Linux , Android, Web and ios / ipados . Free and open source. No account, no cloud, and no shared network needed.
JavaScript androidapple-ecosystemconnectelectronfile-sharingintel-unison-alternativeiosios-windowskde-connect-alternativekvmlinuxmacbookmacosmouse-sharingphone-link-alternativeproductivityscreen-sharingsidecar-alternativesynergy-alternativewindows
/* TwinDesk — Copyright (C) 2026 inukaasith. GPL-3.0, see LICENSE. */
/* Overview (shared/ui-device.js), Mirroring and Apps (shared/ui-mirror.js), Mac, PC and Linux.
Built on each app's own variables (--card, --text, --muted, --accent, --line…). */
.dv-hero { display: flex; align-items: center; gap: 24px; padding: 20px 22px; }
.dv-hero .device.big { margin: 0; flex: none; }
.dv-hero .device.phone.big { width: 74px; height: 140px; border-radius: 15px; border-width: 4px; }
.dv-hero .device.phone.big::after { left: 26px; right: 26px; bottom: 6px; }
.dv-hero .device.pc.big, .dv-hero .device.mac.big { width: 120px; height: 78px; }
.dv-hero .device.mac.big { width: 120px; height: 76px; }
.dv-hero .device.tv.big { width: 150px; height: 86px; margin-bottom: 12px; } /* TwinDesk TV (shared/ui-device-tv.js) */
.dv-hero .device.tv.big::after { left: 22px; right: 22px; bottom: -14px; height: 9px; }
.dv-hero-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dv-hero .hero-name { margin: 0; font-size: 20px; font-weight: 600; }
.dv-hero .hero-status { margin: 0; padding: 0; border: 0; text-align: left; color: var(--muted); font-variant-numeric: tabular-nums; }
.dv-batt-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.dv-batt { width: 140px; height: 7px; border-radius: 4px; background: var(--track-off); overflow: hidden; }
.dv-batt-fill { height: 100%; border-radius: 4px; background: var(--good); transition: width 0.4s; }
.dv-batt.low .dv-batt-fill { background: var(--bad); }
.dv-batt-text { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.dv-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dv-ring-note { color: var(--bad); margin-top: 4px; }
.dv-facts { margin: 0; display: grid; grid-template-columns: auto auto; gap: 6px 18px; align-self: stretch; align-content: center;
padding-left: 22px; border-left: 1px solid var(--row-line); font-size: 12px; min-width: 200px; }
.dv-facts dt { color: var(--muted); }
.dv-facts dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.dv-facts dd.dv-old { color: var(--bad); font-weight: 600; } /* the other side's TwinDesk is older */
.dv-media { padding: 4px 14px; }
.dv-media .np { width: 100%; max-width: none; }
/* Quick actions in even rows: all in one when they fit, else two (--cols, ui-device.js). */
.dv-qs { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 8px; padding: 12px 14px; }
.dv-qs-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 11px 12px; border-radius: 10px;
border: 1px solid var(--control-line); background: var(--control); text-align: left; cursor: default;
transition: background-color 0.15s, border-color 0.15s; }
.dv-qs-tile:hover { border-color: var(--accent); }
.dv-qs-tile svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dv-qs-tile.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.dv-qs-label { display: flex; flex-direction: column; font-size: 12px; line-height: 1.3; }
.dv-qs-state { font-size: 11px; opacity: 0.75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100px; }
.dv-qs-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dv-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dv-two.one { grid-template-columns: minmax(0, 1fr); }
.dv-two > .card-wrap, .dv-col { min-width: 0; }
/* Side by side, cards end level (#224): a pair's two are as tall as each other, and in the lower two
columns the last card of each reaches down to the other column's bottom (ui-device-parts.js, dv-fill). */
.dv-two { align-items: stretch; }
.dv-col { display: flex; flex-direction: column; }
.dv-col > .card-wrap.dv-fill, .dv-pair.two > .card-wrap { display: flex; flex-direction: column; }
.dv-col > .card-wrap.dv-fill { flex: 1; }
.dv-col > .card-wrap.dv-fill > .card, .dv-pair.two > .card-wrap > .card { flex: 1; display: flex; flex-direction: column; }
.dv-col > .card-wrap.dv-fill > .card > .dv-drop { flex: 1; min-height: 84px; height: auto; }
.dv-col > .card-wrap[hidden], .dv-col[hidden] { display: none; }
.dv-col .history { max-height: 260px; }
.dv-drop { height: 84px; cursor: copy; }
.dv-nicon { width: 22px; height: 22px; border-radius: 6px; flex: none; align-self: start; margin-top: 1px; }
/* A notification with buttons: the words take the whole width, the buttons a line under them. */
.row.dv-notif { flex-wrap: wrap; row-gap: 8px; padding-top: 10px; padding-bottom: 10px; }
.row.dv-notif .text { flex: 1 1 100%; }
.row.dv-notif .hint { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.row.dv-notif .controls { flex: 1 1 100%; justify-content: flex-end; flex-wrap: wrap; }
.dv-apps { max-height: none; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.btn.link { background: none; border-color: transparent; color: var(--accent); box-shadow: none; }
.btn.link:hover { text-decoration: underline; }
/* Apps */
.papps-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.papps-bar input[type=search] { flex: 1; max-width: 360px; }
.papps-bar .btn { margin-left: auto; white-space: nowrap; } /* + Install Apps */
#page-papps .app-grid { max-height: none; }
/* QR pairing (shared/ui-qrpair.js) and wireless debugging's QR (shared/ui-adbqr.js) */
.qr-box { display: flex; gap: 20px; align-items: center; padding: 14px 16px; }
.qr-img { width: 176px; height: 176px; flex: none; background: #fff; border-radius: 12px; padding: 6px; }
.qr-img canvas { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.qr-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.qr-text strong { font-size: 14px; }
.qr-text ol { margin: 4px 0 0; padding-left: 18px; color: var(--muted); }
.qr-text ol li { margin: 2px 0; }
@media (max-width: 860px) {
.dv-hero { flex-wrap: wrap; }
.dv-facts { border-left: 0; padding-left: 0; }
.dv-two { grid-template-columns: minmax(0, 1fr); }
}
/* ---- The look (Mac, PC and Linux): the same layout, calmer colours and rounder shapes ----
Loaded after each app's own stylesheet, so these win; light mode keeps the app's own values. */
@media (prefers-color-scheme: dark) {
:root {
--content: #18181a; --card: #232326; --sidebar: #1c1c1f;
--line: rgba(255, 255, 255, 0.075); --row-line: rgba(255, 255, 255, 0.055);
--muted: #a3a3a8; --faint: #77777c;
--control: #2e2e32; --control-line: rgba(255, 255, 255, 0.09); --track-off: rgba(255, 255, 255, 0.14);
--nav-hover: rgba(255, 255, 255, 0.055);
}
.btn:not(.primary):not(.link):hover { background: #37373b; }
}
.card { border-radius: 12px; }
.card-title { margin-bottom: 8px; font-size: 13px; letter-spacing: 0.1px; }
.row { min-height: 46px; padding: 9px 16px; }
.row + .row::before { left: 16px; right: 16px; }
.btn { border-radius: 7px; padding: 5px 13px; transition: background-color 0.12s, filter 0.12s; }
.btn.small { border-radius: 6px; padding: 3px 10px; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger.primary, .btn.primary.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.page-head h1 { font-size: 24px; letter-spacing: -0.3px; }
.nav-item { height: 32px; border-radius: 8px; }
.phone-tile { border-radius: 12px; }
.phone-tile.active { background: var(--accent-soft); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--accent); }
.phone-tile.active .phone-sub { color: var(--muted); }
.note { border-radius: 10px; }
.dv-hero { padding: 22px 24px; }
.dv-qs-tile { border-radius: 12px; min-height: 74px; }
/* Overview: the hero names the device; no title above it. */
.device-page .page-head { display: none; }
.device-page .page-body { padding-top: 22px; }
/* Pages in the middle of a wide window, not flush left. */
#pages { max-width: 1120px; margin: 0 auto; }
/* Messages: Texts and the chat apps in one place (shared/ui-messages.js) */
.msg-pills { display: flex; gap: 6px; margin: 0 0 12px; flex-wrap: wrap; }
.msg-pill { height: 30px; padding: 0 14px; border-radius: 15px; border: 1px solid var(--control-line); background: var(--control); font-size: 12.5px; cursor: default; }
.msg-pill:hover { border-color: var(--accent); }
.msg-pill.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.msg-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Scrollbars: thin and rounded, a little wider under the pointer (as Windows 11's and macOS's). */
::-webkit-scrollbar { width: 10px; height: 10px; background: transparent; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background-color: rgba(128, 128, 128, 0.4); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; min-height: 40px; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(128, 128, 128, 0.65); border-width: 2px; }
::-webkit-scrollbar-button { display: none; height: 0; width: 0; }
::-webkit-scrollbar-corner { background: transparent; }
/* Buttons with an icon (Overview's): the icon in the text's colour, before it. */
.btn.ico { display: inline-flex; align-items: center; gap: 7px; }
.btn.ico svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn.danger.ico, .btn.ico.danger { color: var(--bad); }
/* ---- tiles, the way Control Center has them (D.tiles): one or two rows that scroll sideways;
small (one cell), wide (two across), large (two by two). Each with its icon on its colour;
on: the accent behind it. ---- */
/* A row fits the icon and two lines of words inside the tile's padding, the same space above and below; never less. */
.dv-tiles { display: grid; grid-template-rows: repeat(var(--rows, 2), minmax(84px, auto)); grid-template-columns: repeat(var(--cols, 4), minmax(100px, 1fr));
gap: 8px; padding: 12px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.dv-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 6px; min-width: 0;
padding: 11px 12px; border-radius: 14px; border: 1px solid var(--control-line); background: var(--control); color: var(--text); text-align: left;
cursor: default; transition: background-color 0.15s, border-color 0.15s, transform 0.12s, box-shadow 0.15s; }
.dv-tile:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--control-line)); }
.dv-tile:active { transform: scale(0.97); }
.dv-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dv-tile.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.dv-tile-ico { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; color: #fff;
box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.18), 0 1px 2px rgba(0, 0, 0, 0.18); }
.dv-tile-ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dv-tile.on .dv-tile-ico { background: rgba(255, 255, 255, 0.22) !important; box-shadow: none; }
.dv-tile-text { display: flex; flex-direction: column; min-width: 0; max-width: 100%; }
.dv-tile-label { font-size: 12.5px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-tile-state { font-size: 11px; line-height: 1.3; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-tile.on .dv-tile-state { color: rgba(255, 255, 255, 0.82); }
/* Wide: the icon beside the words. Large: a big icon, the words at the bottom, two lines of state. */
.dv-tile.wide { flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; }
.dv-tile.wide .dv-tile-ico { width: 32px; height: 32px; border-radius: 9px; }
.dv-tile.wide .dv-tile-label { font-size: 13px; }
.dv-tile.large { padding: 14px; }
.dv-tile.large .dv-tile-ico { width: 42px; height: 42px; border-radius: 12px; }
.dv-tile.large .dv-tile-ico svg { width: 24px; height: 24px; stroke-width: 1.6; }
.dv-tile.large .dv-tile-label { font-size: 15px; }
.dv-tile.large .dv-tile-state { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 12px; }
.dv-tile.missing { opacity: 0.4; }
/* Customizing: each tile outlined, the chosen one in the accent, − to take it off, dragged into place. */
.dv-tiles.editing { padding-top: 18px; padding-left: 18px; }
.dv-tiles.editing .dv-tile { border-style: dashed; animation: dv-wiggle 0.32s ease-in-out infinite alternate; cursor: grab; }
.dv-tiles.editing .dv-tile:nth-child(2n) { animation-delay: -0.16s; }
.dv-tiles.editing .dv-tile:hover { animation-play-state: paused; }
.dv-tiles.editing .dv-tile.sel { border: 2px solid var(--accent); animation: none; }
.dv-tiles.editing .dv-tile.dragging { opacity: 0.35; }
.dv-tiles.editing .dv-tile.drop { box-shadow: 0 0 0 2px var(--accent); }
@keyframes dv-wiggle { from { transform: rotate(-0.6deg); } to { transform: rotate(0.6deg); } }
@media (prefers-reduced-motion: reduce) { .dv-tiles.editing .dv-tile { animation: none; } }
.dv-tile-x { position: absolute; top: -8px; left: -8px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
background: #8e8e93; color: #fff; font-size: 15px; font-weight: 700; line-height: 1; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); cursor: default; z-index: 2; }
.dv-tile-x:hover { background: var(--bad); }
.dv-tiles-empty { grid-column: 1 / -1; align-self: center; }
.dv-tiles-edit { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 14px; border-top: 1px solid var(--row-line); }
.dv-tiles-edit[hidden] { display: none; }
.dv-tiles-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dv-tiles-row[hidden], .dv-tiles-edit .hint[hidden] { display: none; }
.dv-tiles-gap { flex: 1; }
.dv-tiles-sel { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dv-tiles-edit .seg button[hidden] { display: none; }
.dv-tiles-add { display: flex; flex-wrap: wrap; gap: 8px; }
.dv-tiles-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--control-line);
background: var(--control); color: var(--text); font-size: 12.5px; cursor: default; }
.dv-tiles-chip:hover { border-color: var(--accent); }
.dv-tiles-chip .dv-tile-ico { width: 24px; height: 24px; border-radius: 7px; }
.dv-tiles-chip .dv-tile-ico svg { width: 15px; height: 15px; }
.dv-tiles-plus { color: var(--accent); font-weight: 700; font-size: 15px; }
/* The Shortcuts and Quick actions cards: side by side when both fit at full size (D.tilePair). */
.dv-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 14px; align-items: start; }
.dv-pair.two { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.dv-pair > [hidden] { display: none; }
.dv-pair.two .row { flex-wrap: wrap; row-gap: 8px; } /* the volume row under narrower tiles */
.dv-pair.two .row .controls { flex-wrap: wrap; }