macOS JS behaviour

The full Mac desktop

A whole Mac: a live menu bar with a Persian clock, a magnifying dock that bounces on launch, real windows — Finder, Mail, Notes — that drag around, minimise into the dock, and whose shadows breathe with focus.

Documentation

Real scenarios

The component as it is used in a product — not a specimen grid.

The full Mac desktop

Drag the windows by their toolbars, sweep the dock to magnify it, minimise a window into its icon, and dim the wallpaper from Control Centre — the clock is genuinely ticking.

Finder
Mail

Sidebar design review

Sara Novak · today 14:02 · to me

Hi! I went through the final sidebar files. The blue selection reads far better than the last round, and the row spacing finally feels right. Could you set the counter beside Recents in the lighter weight before the review? Thanks!

Notes

IdeasToday

Important props

Important props
Prop Type Default What it does
windows manager 'z-order' The active window gets the big shadow and a strong title; the rest dim.
minimise animation 'into dock' The yellow light shrinks the window toward the dock; click its dock icon to bring it back.
launch animation 'dock bounce' A freshly launched icon bounces until its window opens.
menu-bar behaviour 'live' The menu bar renames itself to the active app and the clock really ticks.

Snippet

<div class="mcdesk" x-data="{ z: 10, active: null, open: {}, minimised: {} }">
    <nav class="mcdesk-menubar"> + live clock + status </nav>
    <div class="mcdesk-win" x-show="open.finder"
         :style="`z-index: ${winZ('finder')}`" x-on:pointerdown="focus('finder')">
        <div class="mcdesk-lights" x-on:pointerdown.stop="dragless($event)">…</div>
        …finder body…
    </div>
    <div class="mcdesk-dock" x-on:click="launch('mail')">…magnifying icons…</div>
</div>

<style>
.mcdesk { position: relative; overflow: clip; block-size: 32rem; border-radius: 12px;
          background: radial-gradient(130% 110% at 30% 10%, #4a5d8a, #16203a 55%, #0b1224); }
.mcdesk-win { position: absolute; inline-size: min(100%, 24rem); background: var(--mcwin-bg);
              border-radius: 10px; overflow: clip;
              box-shadow: 0 22px 70px 4px #00000040, 0 0 0 .5px #00000026; }
.mcdesk-win[data-dim] { filter: saturate(.9); }
</style>