WC-01Title bar strategy per OS
Apply the decision table through per-platform config files so each OS gets its own frame. Never ship decorations: false to all three platforms by default. Code: TAURI.md.
Title bars, drag regions, traffic lights, Snap Layouts and native materials, decided per OS.
npx skills@latest add agmmnn/desktop-feel --skill window-chrometrafficLightPosition + matching padding WC-04backdrop-filter WC-08html and body, macOS private API WC-09acceptFirstMouse WC-13When you remove or customize the title bar, add a frosted sidebar, or the window frame behaves differently from native apps.
You don’t need special wording. Describe the problem the way you’d describe it to a teammate.
/window-chrome I removed the title bar and now I can't drag the window/window-chrome the traffic lights don't line up with my toolbar/window-chrome Snap Layouts don't show on my maximize buttonEach rule has a stable ID. Review and audit output link back here.
Apply the decision table through per-platform config files so each OS gets its own frame. Never ship decorations: false to all three platforms by default. Code: TAURI.md.
Without a native title bar, nothing moves the window until you mark a drag region. The region must cover the empty title-bar area, at the height the OS uses (about 28px on macOS with Overlay, more with a toolbar; 32px on Windows). The shell also needs permission to start a drag. Code: TAURI.md.
A button inside the drag region starts a window drag instead of a click, or works only sometimes. Interactive elements in the title bar (tabs, search, buttons) must not be part of the region. Mark only the background, or opt controls out. Code: TAURI.md.
With an overlay title bar, the traffic lights sit at the OS default position, which rarely matches a taller custom toolbar. Move them to the toolbar's vertical center and leave left padding so content doesn't run under them. The padding must match the buttons' actual width (about 70–80px including inset, verify on macOS).
In fullscreen the traffic lights hide, but the left padding stays and the toolbar looks broken. Track fullscreen and drop the padding.
On Windows 11, hovering the maximize button shows Snap Layouts. That flyout appears only when the window answers the OS hit test with "this is the maximize button" (HTMAXBUTTON). HTML buttons can't answer it, so a custom caption bar drawn in HTML loses Snap Layouts, and no frontend code brings it back.
A Tauri limitation: with titleBarStyle: "Overlay", dragging the title area of an inactive window does nothing until it is focused (tauri#4316). There is no CSS fix. Note it when choosing Overlay; don't try to fix it with click handlers.
A sidebar with backdrop-filter: blur(30px) over a solid window background blurs nothing useful, costs paint time (badly on Linux, WQ-02), and doesn't match the OS material. Use window effects: macOS vibrancy (sidebar, underWindowBackground, Liquid Glass on macOS 26+), Windows 11 Mica/Tabbed/Acrylic. Let the web view be transparent where the material should show.
transparent: true on the window is not enough. Both html and body (and the framework root) must have a transparent background, and macOS needs the private API flag. Missing any of these gives an opaque window.
Without a minimum, the window shrinks until the sidebar overlaps content and toolbars wrap. Set a minimum that fits the narrowest supported layout, and make the layout collapse (sidebar hidden, toolbar overflow) above that width, not break. Windows 11 Snap Layouts need windows that can shrink to a half or third of the screen; a huge minimum blocks snapping. Code: TAURI.md.
Native apps reopen where you left them. Persist size, position, maximized and fullscreen state, and clamp to visible monitors (a monitor may have been unplugged). Code: TAURI.md.
When the app has its own light/dark toggle, the native title bar and caption buttons keep following the OS. A dark app with a white title bar looks broken. Set the native window theme whenever the app theme changes; when the app follows the system, leave the native theme on system. Code: TAURI.md.
On macOS, the first click on an inactive window normally only activates it. For main windows that's right. For tool palettes and floating panels, users expect the first click to act. Decide per window. Code: TAURI.md.
Double-clicking a native title bar maximizes (Windows) or zooms/minimizes per the user's setting (macOS). A custom title bar that does nothing on double-click feels dead. With an Overlay title bar on macOS the OS still handles it; for fully custom bars, toggle maximize on double-click of the drag region. Code: TAURI.md.
A Windows window without decorations can lose the system shadow and Windows 11's rounded corners, leaving a flat rectangle that doesn't separate from what's behind it. With the system shadow on, Windows draws a 1px border around the window, and the border is light by default, which shows as a stray line in a dark theme. Keep the shadow and design for the border: check it in both themes, and make sure the app's background reaches every edge so the border sits against the app, not against a gap. Linux doesn't support the setting. Code: TAURI.md.
No skill or rule matches. Try a symptom, like “cursor” or “title bar”.