kitbash Sign in Connect agent
Components

Painted desktop

The signature: a rounded frame of painted landscape with a menu bar and live clock, a floating editor window with switchable tabs and a mono status line, and a smoked-glass toolbar.

Part of the style

Painted Sky Desktop

7 parts that belong together, with their tokens, type and rules.

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --ink: #f9f9f8;
  --ink-deep: #fffffe;
  --ink-soft: #a9a9a7;
  --ink-mute: #7c7a78;
  --paper: #24211e;
  --paper-soft: #272421;
  --pill-grey: #565351;
  --glass: rgba(236, 236, 235, 0.33);
  --glass-light: rgba(36, 33, 30, 0.42);
  --on-glass: #24211e;
  --glass-hover: rgba(36, 33, 30, 0.14);
  --hairline: rgba(255, 255, 254, 0.1);
  --window-dark: #0a0a09;
  --window-dark-ink: #2b2825;
  --sky: #77654e;
  --sky-light: #756959;
  --dot-min: #77654e;
  --dot-zoom: #77654e;
  --dot-close: #77654e;
  --alert: #6e5d47;
}
</style>

<section class="desktop" aria-label="Lull on a desktop">
  <div class="desktop__frame">
    <img class="desktop__wallpaper" src="assets/poppy-field.jpg" alt="A painted field of poppies under a soft blue sky with tall poplars" width="1200" height="779" />

    <div class="desktop__menubar">
      <svg class="desktop__menuglyph" viewBox="0 0 24 24" aria-hidden="true">
        <path d="M3 15c2.6-3 5.4-3 8 0s5.4 3 10-1" fill="none" stroke="currentColor" stroke-width="2.6" stroke-linecap="round" />
        <circle cx="17" cy="6.5" r="2.6" fill="currentColor" />
      </svg>
      <span class="desktop__appname">Lull</span>
      <span class="desktop__menu">File</span>
      <span class="desktop__menu">Edit</span>
      <span class="desktop__menu">View</span>
      <span class="desktop__menu">Shelf</span>
      <span class="desktop__menu">Window</span>
      <span class="desktop__menu">Help</span>
      <span class="desktop__status">
        <svg class="desktop__statusicon" viewBox="0 0 16 16" aria-hidden="true"><rect x="1" y="2" width="14" height="12" rx="3" fill="currentColor" /><path d="M4.5 9.5c1.2-1.4 2.4-1.4 3.6 0s2.4 1.4 3.6 0" fill="none" stroke="var(--ink-deep)" stroke-width="1.4" stroke-linecap="round" /></svg>
        <time class="desktop__clock">Fri, Nov 20 9:41 AM</time>
      </span>
    </div>

    <div class="desktop__stage">
      <div class="desktop__window">
        <div class="desktop__chrome">
          <span class="desktop__dots" aria-hidden="true"><i></i><i></i><i></i></span>
          <div class="desktop__tabs" role="tablist" aria-label="Open shelves">
            <button class="desktop__tab is-active" role="tab" aria-selected="true" data-pane="0" data-count="72 words · 418 characters · 13 pt"><span class="desktop__tabchip">Morning pages <span class="desktop__x" aria-hidden="true">×</span></span></button>
            <button class="desktop__tab" role="tab" aria-selected="false" data-pane="1" data-count="3 clippings · 2 unread"><span class="desktop__tabchip">Clippings</span></button>
            <button class="desktop__tab" role="tab" aria-selected="false" data-pane="2" data-count="5 titles · 1 in progress"><span class="desktop__tabchip">Reading list</span></button>
          </div>
          <span class="desktop__plus" aria-hidden="true">+</span>
          <svg class="desktop__burger" viewBox="0 0 16 16" aria-hidden="true"><path d="M3 5h10M3 8h10M3 11h10" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" /></svg>
        </div>

        <div class="desktop__panes">
          <div class="desktop__pane is-shown" role="tabpanel">
            <p>Woke before the alarm. The light came in flat and gold across the desk, and for once the list could wait.</p>
            <p>Three things worth keeping from yesterday: the sentence about rivers that only run downhill, the smell of the print shop on the corner, and the way the tram slows before the bridge as if it were listening.</p>
            <p>Today: one page, no tabs open, nothing to answer until noon.<span class="desktop__caret" aria-hidden="true"></span></p>
          </div>
          <div class="desktop__pane" role="tabpanel" hidden>
            <ul class="desktop__clips">
              <li class="desktop__clip"><img class="desktop__thumb" src="assets/haymaking.jpg" alt="A painted orchard at haymaking time" width="800" height="642" /><span><b>On slow afternoons</b><span class="desktop__source">kept from an essay · 4 min</span></span></li>
              <li class="desktop__clip"><img class="desktop__thumb" src="assets/loire.jpg" alt="A painted river bank in pale winter light" width="843" height="704" /><span><b>Rivers and their banks</b><span class="desktop__source">kept from a letter · 2 min</span></span></li>
              <li class="desktop__clip"><img class="desktop__thumb" src="assets/shiomi-slope.jpg" alt="A woodblock print of a green headland over a blue bay" width="800" height="534" /><span><b>A road along the coast</b><span class="desktop__source">kept from a travel book · 6 min</span></span></li>
            </ul>
          </div>
          <div class="desktop__pane" role="tabpanel" hidden>
            <ol class="desktop__reading">
              <li>The Quiet Year of the Orchard</li>
              <li class="is-reading">Notes from a Lighthouse Keeper</li>
              <li>A Short History of Paper Boats</li>
              <li>Weather for Beginners</li>
              <li>Letters Left on the Train</li>
            </ol>
          </div>
        </div>

        <div class="desktop__footer">
          <span class="desktop__count">72 words · 418 characters · 13 pt</span>
          <svg class="desktop__gear" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="2.2" fill="none" stroke="currentColor" stroke-width="1.2" /><circle cx="8" cy="8" r="5.6" fill="none" stroke="currentColor" stroke-width="1.2" stroke-dasharray="2.2 1.3" /></svg>
        </div>
      </div>

      <div class="desktop__toolbar" role="toolbar" aria-label="Window tools">
        <button class="desktop__tool" data-tool="focus" aria-pressed="false">
          <svg viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="5.5" fill="none" stroke="currentColor" stroke-width="1.3" /><circle cx="8" cy="8" r="2" fill="currentColor" /></svg>
          <span class="desktop__toollabel">Focus</span>
        </button>
        <button class="desktop__tool" data-tool="theme" aria-pressed="false">
          <svg viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="3" fill="none" stroke="currentColor" stroke-width="1.3" /><path d="M8 1.5v1.6M8 12.9v1.6M1.5 8h1.6M12.9 8h1.6M3.4 3.4l1.1 1.1M11.5 11.5l1.1 1.1M3.4 12.6l1.1-1.1M11.5 4.5l1.1-1.1" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" /></svg>
          <span class="desktop__toollabel">Theme</span>
        </button>
        <button class="desktop__tool" data-tool="tabs" aria-pressed="false">
          <svg viewBox="0 0 16 16" aria-hidden="true"><rect x="1.5" y="3" width="13" height="10" rx="2.5" fill="none" stroke="currentColor" stroke-width="1.3" /><path d="M1.5 6.5h13" stroke="currentColor" stroke-width="1.3" /></svg>
          <span class="desktop__toollabel">Hide tabs</span>
        </button>
        <button class="desktop__tool" data-tool="note">
          <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M7 2.5H4A1.5 1.5 0 0 0 2.5 4v8A1.5 1.5 0 0 0 4 13.5h8a1.5 1.5 0 0 0 1.5-1.5V9" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" /><path d="M12.2 2.3l1.5 1.5L8.4 9.1l-2 .5.5-2z" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linejoin="round" /></svg>
          <span class="desktop__toollabel">New page</span>
        </button>
      </div>
    </div>
  </div>
</section>

<style>
  .desktop {
    max-width: calc(var(--content-max) + 2 * var(--edge));
    margin: 0 auto;
    padding: 0 var(--edge);
  }
  .desktop__frame {
    position: relative;
    display: flex;
    flex-direction: column;
    aspect-ratio: 16 / 11;
    min-height: 460px;
    border-radius: var(--radius-l);
    overflow: hidden;
    isolation: isolate;
    color: var(--on-glass);
    animation: desktop-fade var(--rise) var(--ease) both;
  }
  .desktop__wallpaper {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
    filter: var(--paint);
    transition: filter var(--rise) var(--ease);
  }
  .desktop.is-focus .desktop__wallpaper {
    filter: var(--paint) blur(6px) brightness(0.92);
  }

  /* Menu bar */
  .desktop__menubar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 9px 16px;
    font-size: var(--text-s);
    font-weight: 600;
    line-height: 16px;
    text-shadow: var(--shadow-text);
  }
  .desktop__menuglyph {
    width: 15px;
    height: 15px;
  }
  .desktop__status {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
    white-space: nowrap;
  }
  .desktop__statusicon {
    width: 14px;
    height: 14px;
  }

  /* Window */
  .desktop__stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 12px 16px 40px;
  }
  .desktop__window {
    display: flex;
    flex-direction: column;
    width: min(620px, 100%);
    height: clamp(300px, 34vw, 396px);
    border-radius: var(--radius-l);
    background: var(--paper);
    color: var(--ink-deep);
    box-shadow: var(--shadow-window);
    animation: desktop-rise var(--rise) var(--ease-out) 120ms both;
    transition: background var(--time) var(--ease), color var(--time) var(--ease);
  }
  .desktop__chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 12px 0;
    color: var(--ink-mute);
  }
  .desktop__dots {
    display: inline-flex;
    gap: 8px;
    margin-right: 8px;
  }
  .desktop__dots i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--dot-close);
  }
  .desktop__dots i:nth-child(2) { background: var(--dot-min); }
  .desktop__dots i:nth-child(3) { background: var(--dot-zoom); }
  .desktop__tabs {
    display: flex;
    min-width: 0;
    overflow: hidden;
    transition: opacity var(--fade) var(--ease);
  }
  .desktop.is-notabs .desktop__tabs,
  .desktop.is-notabs .desktop__plus {
    opacity: 0;
    pointer-events: none;
  }
  .desktop__tab {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 2px;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-size: var(--text-s);
    cursor: pointer;
    white-space: nowrap;
  }
  .desktop__tabchip {
    padding: 3px 8px;
    border: var(--rule) solid transparent;
    border-radius: var(--radius-s);
    transition: background var(--time) var(--ease), color var(--time) var(--ease), border-color var(--time) var(--ease);
  }
  .desktop__tab:hover .desktop__tabchip {
    background: var(--paper-soft);
  }
  .desktop__tab.is-active {
    color: var(--ink-deep);
  }
  .desktop__tab.is-active .desktop__tabchip {
    border-color: var(--hairline);
    font-weight: 500;
  }
  .desktop__tab:focus-visible {
    outline: none;
  }
  .desktop__tab:focus-visible .desktop__tabchip {
    outline: 2px solid var(--sky);
  }
  .desktop__x {
    margin-left: 6px;
    color: var(--ink-mute);
    font-weight: 400;
  }
  .desktop__plus {
    padding: 0 10px;
    font-size: var(--text-l);
  }
  .desktop__burger {
    width: 14px;
    height: 14px;
    margin-left: auto;
    flex: none;
  }

  .desktop__panes {
    position: relative;
    flex: 1;
    overflow: hidden;
    padding: 10px 22px 0;
    font-size: var(--text-m);
    line-height: 1.55;
  }
  .desktop__pane {
    animation: desktop-pane var(--fade) var(--ease) both;
  }
  .desktop__pane p {
    margin: 0 0 14px;
    max-width: 58ch;
  }
  .desktop__caret {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    margin-left: 2px;
    vertical-align: -0.2em;
    background: var(--sky);
    animation: desktop-caret 1.1s steps(1) infinite;
  }
  .desktop__clips,
  .desktop__reading {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .desktop__clip {
    display: flex;
    align-items: center;
    gap: var(--space-m);
    padding: 8px 0;
  }
  .desktop__clip b {
    display: block;
    font-weight: 500;
  }
  .desktop__thumb {
    flex: none;
    width: 64px;
    height: 48px;
    border-radius: var(--radius-m);
    object-fit: cover;
    filter: var(--paint);
  }
  .desktop__source {
    color: var(--ink-mute);
    font-size: var(--text-s);
  }
  .desktop__reading {
    counter-reset: desktop-read;
  }
  .desktop__reading li {
    counter-increment: desktop-read;
    padding: 7px 0;
  }
  .desktop__reading li::before {
    content: counter(desktop-read, decimal-leading-zero);
    display: inline-block;
    width: 2.6em;
    color: var(--ink-mute);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
  }
  .desktop__reading .is-reading {
    color: var(--sky);
  }

  .desktop__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px 12px;
    color: var(--ink-mute);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
  }
  .desktop__gear {
    width: 13px;
    height: 13px;
  }

  /* Dark theme */
  .desktop.is-dark .desktop__window {
    background: var(--window-dark);
    color: var(--window-dark-ink);
  }
  .desktop.is-dark .desktop__tab.is-active { color: var(--window-dark-ink); }
  .desktop.is-dark .desktop__tab.is-active .desktop__tabchip { border-color: var(--glass-light); }
  .desktop.is-dark .desktop__tab:hover .desktop__tabchip { background: var(--glass); }

  /* Glass toolbar */
  .desktop__toolbar {
    display: flex;
    gap: 2px;
    padding: 0 10px;
    border-radius: var(--radius-pill);
    background: var(--glass);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
    animation: desktop-rise var(--rise) var(--ease-out) 260ms both;
  }
  .desktop__tool {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
    padding: 0 10px;
    border: 0;
    border-radius: var(--radius-pill);
    background: none;
    color: var(--on-glass);
    font: inherit;
    font-size: var(--text-m);
    cursor: pointer;
    opacity: 0.88;
    transition: opacity var(--quick) var(--ease), background var(--time) var(--ease);
  }
  .desktop__tool svg {
    width: 15px;
    height: 15px;
  }
  .desktop__tool:hover,
  .desktop__tool[aria-pressed="true"] {
    opacity: 1;
    background: var(--glass-hover);
  }
  .desktop__tool:focus-visible {
    outline: 2px solid var(--on-glass);
    outline-offset: -4px;
  }

  @keyframes desktop-fade { from { opacity: 0; } }
  @keyframes desktop-rise { from { opacity: 0; transform: translateY(24px) scale(0.96); } }
  @keyframes desktop-pane { from { opacity: 0; } }
  @keyframes desktop-caret { 50% { opacity: 0; } }

  @media (max-width: 760px) {
    .desktop__menu { display: none; }
    .desktop__toollabel { display: none; }
  }
  @media (max-width: 560px) {
    .desktop__frame {
      aspect-ratio: auto;
      min-height: 560px;
    }
    .desktop__stage {
      padding: 20px 14px 32px;
    }
    .desktop__window {
      height: 340px;
    }
    .desktop__chrome {
      padding-left: 10px;
    }
    .desktop__dots { gap: 6px; margin-right: 4px; }
    .desktop__dots i { width: 11px; height: 11px; }
    .desktop__tab:nth-child(n + 2) .desktop__tabchip { color: var(--ink-mute); }
    .desktop__tab:nth-child(3) { display: none; }
    .desktop__plus { display: none; }
    .desktop__panes { padding-inline: 16px; }
  }

  @media (prefers-reduced-motion: reduce) {
    .desktop__frame,
    .desktop__window,
    .desktop__toolbar,
    .desktop__pane,
    .desktop__caret {
      animation: none;
    }
  }
</style>

<script>
  (() => {
    document.querySelectorAll(".desktop").forEach((root) => {
      const tabs = [...root.querySelectorAll(".desktop__tab")];
      const panes = [...root.querySelectorAll(".desktop__pane")];
      const count = root.querySelector(".desktop__count");
      const clock = root.querySelector(".desktop__clock");

      const show = (index) => {
        tabs.forEach((tab, i) => {
          const on = i === index;
          tab.classList.toggle("is-active", on);
          tab.setAttribute("aria-selected", String(on));
          if (on && count) count.textContent = tab.dataset.count;
        });
        panes.forEach((pane, i) => {
          const on = i === index;
          pane.hidden = !on;
          pane.classList.toggle("is-shown", on);
        });
      };
      tabs.forEach((tab, i) => tab.addEventListener("click", () => show(i)));

      root.querySelectorAll(".desktop__tool").forEach((tool) => {
        tool.addEventListener("click", () => {
          const kind = tool.dataset.tool;
          if (kind === "note") { show(0); return; }
          const cls = { focus: "is-focus", theme: "is-dark", tabs: "is-notabs" }[kind];
          const on = root.classList.toggle(cls);
          tool.setAttribute("aria-pressed", String(on));
        });
      });

      // The menu-bar clock: set now, then once a minute while on screen.
      let timer = null;
      const tick = () => {
        if (!clock) return;
        const now = new Date();
        const day = now.toLocaleDateString("en-US", { weekday: "short", month: "short", day: "numeric" });
        const time = now.toLocaleTimeString("en-US", { hour: "numeric", minute: "2-digit" });
        clock.textContent = `${day} ${time}`;
        clock.dateTime = now.toISOString();
      };
      tick();
      new IntersectionObserver(([entry]) => {
        clearInterval(timer);
        if (entry.isIntersecting) { tick(); timer = setInterval(tick, 60000); }
      }).observe(root);
    });
  })();
</script>

Similar components

Hero with stage accordion

Hero with stage accordion

Stamp sheet

Stamp sheet

Doodled wordmark with x-ray

Doodled wordmark with x-ray

Stage and inspector

Stage and inspector

Prompt hero

Prompt hero

Sticker headline hero

Sticker headline hero

Hero with card feed

Hero with card feed

Phone stage hero

Phone stage hero