Pull a web-sized interface down to desktop density — oversized shadcn/Tailwind controls (h-9, h-10 buttons), 14–16px body text, web fonts instead of the system font, hover-only list rows with no selection state, jittering numbers, mobile rules (16px inputs, 44px touch targets) leaking into a desktop app, and page layouts built from floating cards. Use when a desktop app "looks like a website" or "looks like a SaaS dashboard", when adapting shadcn components for a Tauri or Electron app, or whe...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Desktop Density?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/agmmnn-desktop-density)
---
name: desktop-density
description: Pull a web-sized interface down to desktop density — oversized shadcn/Tailwind controls (h-9, h-10 buttons), 14–16px body text, web fonts instead of the system font, hover-only list rows with no selection state, jittering numbers, mobile rules (16px inputs, 44px touch targets) leaking into a desktop app, and page layouts built from floating cards. Use when a desktop app "looks like a website" or "looks like a SaaS dashboard", when adapting shadcn components for a Tauri or Electron app, or when the UI feels big and loose next to native apps. For the platform tells (cursor, selection, scroll) use desktop-native.
---
# Desktop Density
## Initial Response
When this skill is first invoked without a specific question, respond only with:
> Ready to bring your UI to desktop density. Point me at a screen or the component library.
A fix-it skill for size and rhythm. Web component libraries are tuned for websites viewed with a mouse and a finger: 36–40px controls, 14–16px text, generous padding, cards on a gray page. Desktop apps sit next to Finder, Explorer and Xcode, where controls are 22–32px, text is 13px, and the window is divided by separators, not floating cards.
## Hard Rules
1. **Density is relative to the OS.** macOS is the densest (13px text, ~22–28px controls), Windows 11 slightly larger (14px Segoe UI Variable, ~32px controls), Linux follows the desktop environment. Pick one scale per app and adjust per platform only where it matters.
2. **Change tokens, not instances.** Adjust the component library's sizes (variants, CSS variables) so every screen follows. Don't sprinkle `h-7` overrides.
3. **Never below accessibility floors.** 11px is the smallest readable UI text; hit areas stay at least 20px tall even when the visible control is smaller. Respect the OS text-size setting if the shell exposes it.
4. **Mobile rules don't apply here.** The 16px input rule exists to stop iOS zooming; there is no zoom on desktop. 44px touch targets are for fingers. Remove them from desktop-only UI.
## The Symptom Table
| Problem | Solution | Rule |
| --- | --- | --- |
| Buttons and inputs are 36–40px tall | 28px default, 24px compact | DD-01 |
| Inter / Geist everywhere | System font stack | DD-02 |
| 14–16px body text | 13px base (macOS), 14px (Windows) | DD-03 |
| List rows only highlight on hover | Selected state, keyboard focus, subtle hover | DD-04 |
| Counters and tables jitter | `tabular-nums` | DD-05 |
| 16px inputs, 44px targets, `touch-action` | Remove mobile rules from desktop UI | DD-06 |
| Page made of rounded shadowed cards | Panels and hairline separators | DD-07 |
## The Fixes
### DD-01 Controls are desktop height
```css
:root {
--control-h: 28px; /* default button / input / select */
--control-h-sm: 24px; /* toolbars, table actions */
--control-px: 10px;
--radius: 6px;
}
```
For shadcn, change the `size` variants in `components/ui/button.tsx` (`default: "h-7 px-2.5"`, `sm: "h-6 px-2"`, `icon: "size-7"`), and the input/select heights the same way. Icons inside controls go to 14–16px.
### DD-02 System font unless the brand requires otherwise
```css
:root {
font-family: system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", "Noto Sans", "Ubuntu", "Cantarell", sans-serif;
}
```
A web font is fine as a deliberate brand decision for headings; body UI in the system font reads as part of the OS. Monospace: `ui-monospace, "SF Mono", "Cascadia Mono", "Consolas", monospace`.
### DD-03 Body text at desktop size
| Role | macOS | Windows |
| --- | --- | --- |
| Body / controls | 13px | 14px |
| Secondary / captions | 11–12px | 12px |
| Section headers | 13px semibold | 14px semibold |
| Window/page title | 15–17px semibold | 20px semibold |
In Tailwind, redefine `text-sm` and `text-xs` rather than replacing every class. Tighten line height to ~1.35 for UI text; keep ~1.5 for prose.
### DD-04 Lists show selection, not just hover
Native lists are about selection: a clear selected row (accent background, white text when the window is focused, gray when not — DN-18), keyboard focus, and at most a faint hover. Web rows with a strong hover and no selected state feel like links.
```css
.row { height: 24px; padding: 0 8px; border-radius: 4px; }
.row[aria-selected="true"] { background: var(--accent); color: var(--accent-fg); }
:root[data-window-focused="false"] .row[aria-selected="true"] { background: var(--gray-5); color: inherit; }
@media (hover: hover) { .row:hover:not([aria-selected="true"]) { background: var(--gray-2); } }
```
### DD-05 Changing numbers don't jitter
```css
.numeric, td, .counter, .timer { font-variant-numeric: tabular-nums; }
```
### DD-06 Mobile rules don't leak into desktop
Remove from desktop-only UI: `font-size: 16px` on inputs, `min-height: 44px` touch targets, `touch-action: manipulation`, `-webkit-tap-highlight-color`. Keep them only if the same frontend also ships to mobile, and then gate them with `@media (pointer: coarse)`.
### DD-07 Panels and separators over floating cards
Desktop windows are split into regions — sidebar, content, inspector — divided by 1px separators and background tone, not rounded cards with shadows on a gray canvas. Cards belong to content that really is a card (a file tile, a contact).
```css
.sidebar { background: var(--sidebar-bg); border-right: 1px solid var(--separator); }
.separator { height: 1px; background: var(--separator); }
```
## Never Ship
| Never | Instead |
| --- | --- |
| shadcn default sizes unchanged in a desktop app | Desktop size variants |
| 16px body text in chrome | 13–14px |
| Hover-only list rows | Selected + focus + faint hover |
| 16px input rule on desktop | Desktop text size |
| Dashboard of floating cards as the app layout | Regions with separators |
## Output
Change the tokens and component variants, list the files, then name the screens that still need a visual pass. Density is visual; ask the user to compare a before/after screenshot.