Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

mobile-design

БесплатноБез исполняемых скриптовНе проверен

Make a web screen feel native inside a phone app — a paywall, an onboarding or quiz, an offer, an update screen, any screen rendered in a WKWebView / Android…

superwallот superwall★ 32 звезды на GitHub

Об этом скилле

Mobile design

A web screen inside a phone app is judged against the native screens around it, not against other web pages. Two things decide whether it passes: reproducing the design exactly, and following the platform conventions users feel but never name. These are working practices, not laws — the design reference always wins over any rule here — but every one of them exists because a shipped screen got it wrong.

Read this whole file once per screen. Skim the audit at the end before every hand-off.

The reference is the contract

  • Build 1:1. Spacing, sizing, weights, colors, and effects come from the reference, not from habit. Measure the reference at logical points (a screenshot at device width) instead of eyeballing; compare your build against it side by side before calling it done.
  • Add nothing the design doesn't show. No extra links, badges, footnotes, or affordances, however well-intentioned. If something seems missing (a restore affordance, a legal link), raise it in conversation — never add it to the UI unprompted.
  • Effects are design decisions, not defaults. Shadows, gradients, borders, blurs, and radii belong to the design system of the paywall being built. If the reference is flat, build flat; if it is soft and elevated, match that. Reach for an effect only when the reference shows it.
  • A reference drawn at one size is a specification for every size. A Figma frame is 393×852 or so; the paywall ships to 320-wide phones, 667-tall phones, tablets and, sometimes, landscape. Where the reference is silent, the responsive rules say what to do; where it speaks, follow it and scale the rest around it.
  • No reference is not a blank check. When the prompt is only words ("a paywall for my meditation app"), the values in this file are the design: system type with size-aware tracking, one filled CTA, press feedback on every control, the curves and durations under Motion. Make each call once and state it; never fill the gap with decoration (a gradient, a glow, a bouncing badge) the user did not ask for.

The skeleton every screen shares

Native screens have a fixed anatomy, and a screen that follows it reads as native before a single color is applied: the status bar's inset at the top (the host's, not yours), small chrome (close or back) just under it, content that scrolls and slides under a fade, one pinned primary action above the home indicator, and small muted links beneath it. The page scrolls; the CTA does not — a CTA that scrolls away with the copy is the single most common reason a web screen underperforms a native one. Pinned means position: sticky; bottom: 0 as the page's last child, with a gradient from transparent to the page background so content fades out behind it.

Safe areas belong to the host. In a Superwall surface the framework pads the whole screen by the device's safe area and you write ordinary padding (never env(), never position: fixed). In a plain web view, viewport-fit=cover and env(safe-area-inset-*) on the chrome do the same job. Either way, chrome sits at inset plus spacing, never at the inset: the floor is a minimum and the real phone's bar is often taller.

Platform conventions

Know which platform the screen is on (a Superwall surface reads data-sw-platform on <html>; a plain web view is told once by the app or reads the user agent at startup). Design for each; don't design for iOS and let Android inherit it.

iOS

  • Close is a small circular button (≈ 30–32px visual, 44px tap) at the top-right, or top-left when the design says so; a sheet (presentation: modal) has the system grabber and usually no close.
  • Back lives in the layout as a chevron at top-left and pops the stack; there is no hardware back.
  • Buttons are rounded (12–16px) or fully pill-shaped, full width, 50–56px tall; text is 17px semibold. The primary CTA is the only filled button on screen.
  • The system font (-apple-system, BlinkMacSystemFont, "SF Pro Text") with tight negative tracking on display sizes is what reads as native.
  • Segmented controls, toggles and radio rows look like their UIKit counterparts; if the design shows a custom one, match the design.
  • Restore, Terms and Privacy sit under the CTA as small, muted text links (13px), never as buttons.

Android

  • Close is an × or ← at the top-left in the Material tradition, or wherever the design puts it; the hardware/gesture back dismisses the paywall through the SDK, so never rely on your own back control being the only way out.
  • The status bar on a fullscreen paywall is drawn over the paywall (the framework's top inset handles it); the navigation bar is not — the SDK keeps the webview above it, so the bottom inset is 0 there and a pinned CTA needs its own bottom padding (12–16px) rather than relying on the inset to give it air.
  • Buttons are fully rounded (Material 3 pill) or 12px, 48–56px tall;
Полный SKILL.md на GitHub

Установить mobile-design в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/responsive.md

FAQ

Что делает скилл mobile-design?

Make a web screen feel native inside a phone app — a paywall, an onboarding or quiz, an offer, an update screen, any screen rendered in a WKWebView / Android WebView or shipped as a Superwall surface. The rules a native screen follows and a web page doesn't: press feedback on every control, hover gated to real pointers, 16px inputs and the keyboard, motion with real easing and durations, size-aware type, worst-case content, dark mode from the host, iOS vs Android conventions, and the audit before it ships. Use when building or reviewing any screen of that kind for iOS or Android, with or without a design reference, or when a screen "feels like a website" on a phone. For the Superwall framework's own mechanics (insets, routing, products, push) read superwall-framework; for React Native / Expo screens use the platform's own components instead.

Как установить скилл mobile-design?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл mobile-design запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить mobile-design с