Skip to content
Back to skills

Platform Conventions

ASecurity

Reference for how macOS, Windows and Linux desktop apps differ — dialog button order, where Settings lives and what it is called, what closing the last window does, font stacks, modifier symbols and shortcut labels, which side window controls sit on. Use when building a dialog, settings, quit behavior or any UI that should follow the host OS, or when another desktop-feel skill needs the per-OS answer.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
designgoshellapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add agmmnn/desktop-feel --skill platform-conventions --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Platform Conventions?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Platform Conventions
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/agmmnn-platform-conventions/badge)](https://www.skillsdirectory.com/skills/agmmnn-platform-conventions)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: platform-conventions
description: Reference for how macOS, Windows and Linux desktop apps differ — dialog button order, where Settings lives and what it is called, what closing the last window does, font stacks, modifier symbols and shortcut labels, which side window controls sit on. Use when building a dialog, settings, quit behavior or any UI that should follow the host OS, or when another desktop-feel skill needs the per-OS answer.
---

# Platform Conventions

A reference skill. Other desktop-feel skills point here for the per-OS answer. When a project ships one look on every OS, these are the places where that one look is wrong on at least one of them.

Get the platform from the shell (`platform()` from `@tauri-apps/plugin-os` in Tauri; `process.platform` exposed through the preload script in Electron), not the user agent.

## PC-01 Dialog button order

| | macOS | Windows | Linux (GNOME) |
| --- | --- | --- | --- |
| Order | Cancel, **OK** (default rightmost) | **OK**, Cancel (default leftmost of the pair) | Cancel, **OK** (default rightmost) |
| Alignment | Right | Right | Right |
| Destructive | Destructive button not default; "Don't Save" on the far left | Explicit verb ("Delete") | Explicit verb, destructive style |

Labels are verbs that name the action ("Save", "Delete Project"), not "OK" / "Yes", on every platform.

This table is for dialogs you draw yourself (in-app HTML dialogs):

```tsx
const buttons = [cancel, confirm]
{isWindows ? [...buttons].reverse() : buttons}
```

**Native dialog APIs place the buttons themselves** (Tauri's dialog plugin, Electron's `dialog.showMessageBox`). There the array order is not the screen order: macOS alerts put the first button on the right, for example. Don't flag or "fix" a native dialog by reading its array. Check the roles instead: which button is the default (`defaultId`), which one Escape picks (`cancelId`), that a destructive action isn't the default, and that labels are verbs. Confirm the actual layout in the running app.

## PC-02 Settings

| | macOS | Windows | Linux |
| --- | --- | --- | --- |
| Name | Settings… (macOS 13+; "Preferences…" before) | Settings | Preferences / Settings |
| Where | App menu, ⌘, | A gear button or File/Tools menu | Hamburger/primary menu |
| Window | Separate window, toolbar tabs, applies instantly | Page or window, often instant apply | Separate dialog, instant apply |

## PC-03 Closing the last window

| | macOS | Windows / Linux |
| --- | --- | --- |
| Single-window utility | Quit is acceptable | Quit |
| Document / multi-window app | Keep running; Dock click reopens a window | Quit |
| Tray/menu-bar app | Keep running, no Dock icon if it lives in the menu bar | Keep running in the tray, say so the first time |

## PC-04 Font stack

```css
font-family: system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", "Noto Sans", "Ubuntu", "Cantarell", sans-serif;
```

## PC-05 Modifier symbols

| | macOS | Windows / Linux |
| --- | --- | --- |
| Command | ⌘ | Ctrl |
| Option / Alt | ⌥ | Alt |
| Shift | ⇧ | Shift |
| Control | ⌃ | Ctrl |
| Format | `⇧⌘K` (no separators) | `Ctrl+Shift+K` |

## PC-06 Window controls side

macOS: left (traffic lights). Windows: right (minimize, maximize, close). Linux: depends on the desktop environment and user setting — another reason to keep native decorations there (WC-01).

## Output

This skill answers questions; it doesn't edit code by itself. When asked to apply a convention, make the change and report it with its rule ID.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in design →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.