responsive-ui
Skill2 starsChanged 27 days agoMITView on GitHub
Use when designing, implementing, or reviewing responsive layouts, mobile and touch detection, text truncation, title wrapping, icon-only controls, hover behavior on touch devices, mobile tooltips and keyboards, and focus during width changes.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- jame581/GodotPromptertheir own version, first seen Oct 21, 2026
- trycompai/comptheir own version, first seen Oct 8, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- trycompai/comp★ 2.1ksame name
- jame581/GodotPrompter★ 870same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository17 other files it gives its agents.
- agent-experienceSkill
- agent-notesSkill
- code-reviewSkill
- docs-standardSkill
- error-handlingSkill
- find-simplificationsSkill
- lifecycle-reviewSkill
- perf-evidenceSkill
- pre-push-checksSkill
- prose-standardSkill
- record-browser-gifSkill
- stacked-prsSkill
- test-reliabilitySkill
- trim-cot-leakageSkill
- ui-ux-reviewSkill
- upgrade-guideSkill
- vibe-harness-bootstrapSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 9 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Use a viewport width of 390 CSS px as the primary acceptance minimum unless the project rules set another.
- Distinctive: line 20
Do not hide conflicts through global clipping, shrinking all font sizes, or shrinking click targets.
- Distinctive: line 27
Prefer single-line truncation for tabs, visible selectors, buttons, tags, and similar components.
- Distinctive: line 32
Prefer displaying page titles in full.
- Distinctive: line 33
Prefer natural wrapping for card titles.
- Distinctive: line 42
Do not reduce a control to an icon when it navigates to a separate page whose purpose the icon cannot convey.
- Distinctive: line 53
Do not show tooltips that only repeat an action name or keyboard shortcut on mobile.
- Distinctive: line 58
Do not raise the on-screen keyboard automatically unless that is explicitly intended.
- Very specific: line 62
Prefer CSS media features for presentation: (pointer: coarse) describes the primary pointer's accuracy, (hover: none) describes its …
- Distinctive: line 67
Check each changed surface at the minimum viewport and at a common desktop width, with touch emulation for hover and tooltip rules, and …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Responsive UI
These are default rules; the project's design rules override them where they differ. This is guidance, not a checklist.
For visual reviews, select the impact scope, then apply these behavioral requirements and the applicable-standards map. Compare affected wrapping and layout relationships in the context of the whole page or modal while preserving drafts, focus, and access to actions. Inspect all regions for an explicit full-interface review. Examples do not define coverage, and fitting the viewport alone is not sufficient.
1. Minimum viewport
Use a viewport width of 390 CSS px as the primary acceptance minimum unless the project rules set another. At that width there must be no unintended overlap, clipping, page-wide horizontal scrolling, or inaccessible primary actions. Below it, layout requirements may relax.
2. Decision order
- First adjust space allocation or wrap elements onto another line; then consider text truncation, icon-only controls, or moving actions into an overflow ("More") menu.
- Primary actions and primary states are never omitted.
- Do not hide conflicts through global clipping, shrinking all font sizes, or shrinking click targets.
- Reduce font sizes only when product design specifically requires it.
3. Text truncation
- Truncated content must be fully available elsewhere: on a detail page, in a menu, or in a tooltip.
- Truncation must never hide errors or other key information.
- Prefer single-line truncation for tabs, visible selectors, buttons, tags, and similar components.
- Important information not available anywhere else is displayed in full.
4. Titles
- Prefer displaying page titles in full; move the action area onto another line when necessary.
- Prefer natural wrapping for card titles. If lines are limited, the full title must remain viewable.
5. Icon-only controls
Reducing a control to an icon requires both:
- the icon clearly conveys its meaning, or the operation is familiar and frequently used;
- a tooltip appears on hover.
Do not reduce a control to an icon when it navigates to a separate page whose purpose the icon cannot convey. A frequently used selector whose menu shows the current choice can be reduced safely.
6. Hover on touch devices
- Enable hover effects under
@media (hover: hover), independently of viewport width. This queries the primary pointing device, not the current event; script hover handlers must ignore touch events on mixed-input devices. - Tapping on a phone must not leave behind backgrounds, highlights, or action-button visibility intended only for hover. Without hover, actions remain visible or reachable through an explicit control, and keyboard users can reach and reveal the same actions.
- Preserve normal selected, expanded, enabled, and pressed states and focus indicators, and keep these styles independent of hover capability. Do not clear focus to remove a hover effect;
:focus-visiblecan also apply to text fields focused by touch. - Preserve focus during width changes when the control remains visible and interactive. Avoid remounting controls only to change layout. If the focused control is hidden or removed, move focus to a suitable remaining control without opening the mobile keyboard unnecessarily.
7. Mobile tooltips
- Do not show tooltips that only repeat an action name or keyboard shortcut on mobile; tapping performs the action directly.
- Tooltips that provide supplementary explanation must support tap-to-show on mobile.
8. Mobile keyboard
Do not raise the on-screen keyboard automatically unless that is explicitly intended.
9. Input capabilities and mobile text fields
- Prefer CSS media features for presentation:
(pointer: coarse)describes the primary pointer's accuracy,(hover: none)describes its inability to hover, and width queries select layout breaks. These queries do not detect a physical keyboard. Never branch layout on a parsed user agent. - Text fields take a 16px floor under
(pointer: coarse)to avoid iOS Safari's focus zoom. Fine pointers keep the project's existing compact field sizes; follow its established field rules.
Verification
Check each changed surface at the minimum viewport and at a common desktop width, with touch emulation for hover and tooltip rules, and include the evidence (screenshots or a recording) in the change.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

