Mobile web experience
The mobile web experience gives the icon library a small-screen shell that is easy to use with touch. It replaces persistent desktop navigation with a top bar, a bottom dock, and focused sheets while local browser state keeps search, favorites, recent activity, and icon-opening choices useful across visits. See Website shell and responsive experience for the shared frame, Desktop site shell for the large-screen model, and Web icon discovery for the catalog flows these controls support.
Mobile shell
The mobile shell surrounds route content with controls that fit a phone viewport. It is active below the md boundary at 768 pixels, while the desktop shell remains responsible for larger layouts.
flowchart TD
A[Phone viewport] --> B[Mobile top bar]
B --> C[Shared search state]
A --> D[Route content]
D --> E[Icon grid or page]
A --> F[Mobile bottom dock]
F --> G[Routes]
F --> H[More sheet]
E --> I[Icon sheet or action sheet]
B --> J[Theme choice]
A --> K[Install prompt]
Responsive boundary
The shell uses the md boundary at 768 pixels to choose between the desktop and mobile control models. The client checks the viewport safely after server render, so a resize can move the experience between models without changing the route. References: src/…/use-media-query.ts• L3-38, src/…/mobile-shell.tsx• L18-22
Mobile top bar
The top bar keeps the brand, icon search, and theme switch within reach at the top of the page. Search uses shared query state and moves a search started from another route to the home browse view so the results remain visible. References: src/…/mobile-top-bar.tsx• L12-38, src/…/mobile-top-bar.tsx• L40-99, src/…/search-store.ts• L3-10
Mobile bottom dock
The bottom dock provides the main phone paths without taking space from the page with a full navigation rail. It exposes Browse, Favorites, Recents, Submit, and More, marks the current route or sheet, and shows a count when favorites exist. References: src/…/mobile-bottom-dock.tsx• L11-68, src/…/mobile-bottom-dock.tsx• L84-181
Navigation sheets
Sheets keep secondary tasks close to the current browse context. They open above the grid or page, block background scrolling while active, and close from the backdrop, close control, Escape key, or a route change.
Search surface
The top-bar search gives a phone user a direct path into the shared icon search flow. The expanded search surface uses the same ranking, recent searches, suggested terms, and drag-based result limits as the desktop search, and it can also show matching documentation pages. Its result list grows from 6 to 12 to 30 items as the sheet moves from peek to half to full height. References: src/…/mobile-top-bar.tsx• L14-38, src/…/mobile-search-sheet.tsx• L20-91, src/…/mobile-search-sheet.tsx• L133-239, src/…/use-icon-search.ts• L45-55
Icon preview sheet
The icon preview sheet lets a user inspect and use an icon without losing the current grid position. It supports favorite state, categories, copy formats, icon metadata, SVG download, source links, and a handoff to the full detail page; PNG export remains a full-page action. References: src/…/mobile-icon-sheet.tsx• L28-79, src/…/mobile-icon-sheet.tsx• L81-136, src/…/mobile-icon-sheet.tsx• L142-355
Long-press action sheet
The action sheet provides a quick context menu for a touch user who holds an icon tile. A hold longer than 500 milliseconds opens copy, download, quick-view, and full-page choices without first leaving the result grid. References: src/…/mobile-shell.tsx• L65-130, src/…/mobile-action-sheet.tsx• L13-100, src/…/mobile-action-sheet.tsx• L102-162
More sheet
The More sheet groups internal destinations that do not need a permanent dock slot with community and project integrations. It links to extensions, blog content, recents, favorites, GitHub, Discord, npm, Raycast, Figma, and VS Code, which keeps the primary phone navigation compact while giving each external destination a familiar catalog icon. References: src/…/mobile-more-sheet.tsx• L17-97, src/…/mobile-more-sheet.tsx• L99-117, src/…/mobile-more-sheet.tsx• L119-186
Sheet interaction model
The shared bottom-sheet model gives content a consistent phone overlay. Search and icon views can use peek, half, and full heights, while More starts at half height and can move to full height or dismiss through a downward drag. References: src/…/bottom-sheet.tsx• L15-45, src/…/bottom-sheet.tsx• L59-125, src/…/bottom-sheet.tsx• L132-197, src/…/mobile-more-sheet.tsx• L99-117, src/…/mobile-shell-store.ts• L14-57
Touch and route continuity
The shell maps touch actions to the same product routes used by desktop browsing. It treats a tap, a hold, and a pull-down as different intents so users can preview or act on an icon without giving up their place in the catalog.
Icon opening modes
The default tap behavior opens an icon preview sheet. A user can enable “Skip preview next time” to make future taps go directly to the stable icon detail route, while modifier-key clicks and links inside dialogs keep their normal behavior. References: src/…/mobile-shell.tsx• L42-63, src/…/mobile-icon-sheet.tsx• L297-354, src/…/mobile-prefs-store.ts• L4-21
Search gestures
The shell focuses search when a user pulls down from the top of the page or opens the search shortcut route. This gives a phone user a fast path to discovery without adding another permanent control. References: src/…/mobile-shell.tsx• L29-36, src/…/mobile-shell.tsx• L132-164, src/…/mobile-top-bar.tsx• L12-29, src/…/manifest.ts• L67-74
Route change handling
The shell closes an open sheet when the pathname changes. This keeps a sheet tied to the page that opened it and prevents an old icon or action surface from covering a new route. References: src/…/mobile-shell.tsx• L23-40, src/…/mobile-shell-store.ts• L21-57
Local personalization
Browser-local stores adapt the mobile experience without requiring an account or a server session. They preserve small identifiers and preferences so the shell can restore useful entry points while the current catalog remains the source of icon data.
Search and recent activity
The shared search store keeps the top bar and search sheet aligned. The recent-activity store records meaningful searches, viewed icons, and copied formats, then powers recent-search chips, the mobile recent row, and the Recents route with bounded browser data. References: src/…/search-store.ts• L3-10, src/…/recents-store.ts• L4-24, src/…/recents-store.ts• L33-63, src/…/recents-store.ts• L75-139, src/…/mobile-search-sheet.tsx• L40-43, src/…/mobile-recents-row.tsx• L17-54, src/…/use-icon-search.ts• L116-138
Favorites
The favorites store keeps icon slugs in browser storage so a favorite remains available from cards, the icon sheet, the dock badge, and the Favorites view. The mobile surfaces resolve the slug against current icon data rather than storing a full catalog record locally. References: src/…/favorites-store.ts• L4-25, src/…/mobile-bottom-dock.tsx• L65-68, src/…/mobile-icon-sheet.tsx• L31-39, src/…/mobile-icon-sheet.tsx• L173-190
Recent icon row
The mobile recent row gives a returning user a horizontal path back to viewed icons above a filtered catalog. It stays hidden when there is no local history and drops stored slugs that no longer match the current manifest. References: src/…/mobile-recents-row.tsx• L17-24, src/…/mobile-recents-row.tsx• L25-56, src/…/mobile-recents-row.tsx• L58-96, src/…/home-content.tsx• L329-335
Installable mobile app
The site can run as a standalone web app when the browser supports installation. Its install path is delayed until a returning session and uses the browser install event where available, with a guided alternative for iOS Safari.
Install prompt
The prompt stays hidden for installed users and for users who dismissed it. After two sessions it offers a one-tap install on supported browsers, or explains the Share and Add to Home Screen steps on iOS Safari. References: src/…/pwa-install-prompt.tsx• L11-61, src/…/pwa-install-prompt.tsx• L63-165
Standalone layout
The web-app manifest defines a portrait standalone experience with shortcuts for search, submission, and recents. Standalone pages use the same dock and safe-area values but need less extra bottom padding because the browser URL bar is no longer part of the viewport. References: src/…/manifest.ts• L6-17, src/…/manifest.ts• L67-89, src/…/globals.css• L1230-1237, src/…/globals.css• L1285-1294
Responsive device preferences
The mobile visual system adapts to device limits and accessibility settings instead of assuming that every phone supports the same effects. Shared CSS and media-query helpers control motion, transparency, safe-area spacing, and installed-app behavior.
Safe-area spacing
The top bar, dock, sheets, and page body share safe-area values for notches and home indicators. The body reserves space for fixed controls so content remains reachable on edge-to-edge screens. References: src/…/globals.css• L1230-1237, src/…/globals.css• L1285-1301, src/…/mobile-top-bar.tsx• L40-46, src/…/mobile-bottom-dock.tsx• L84-91, src/…/bottom-sheet.tsx• L147-161
Motion and transparency preferences
Reduced-motion settings remove dock feedback and sheet animation, while reduced-transparency or Save-Data settings replace blurred glass with solid surfaces. These preferences keep the same navigation model while reducing visual or device cost. References: src/…/use-media-query.ts• L39-67, src/…/globals.css• L1261-1267, src/…/globals.css• L1279-1283
Change checklist
When these files or sections are changed, remember to consider these:
- When the mobile breakpoint changes, keep mobile visibility, body spacing, touch interception, and desktop shell visibility aligned.
- When a dock destination changes, update its route, active-state rule, More-sheet alternatives, and manifest shortcut when applicable.
- When More destinations change, keep internal routes, external targets, labels, catalog icon paths, and tracking links aligned.
- When icon tap behavior changes, preserve the relationship between the saved open-mode preference, quick preview, full detail route, and long-press actions.
- When sheet behavior changes, keep route-change closure, body scroll locking, snap behavior, backdrop dismissal, and safe-area padding consistent.
- When local icon identifiers change, verify that favorites, recents, mobile rows, and manifest lookups still resolve against the current catalog.
- When install behavior changes, keep the manifest display mode, shortcut URLs, standalone spacing, session delay, and iOS guidance aligned.
- When device preference support changes, check both the media-query helpers and the CSS fallbacks for motion, transparency, and safe-area behavior.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| Mobile and desktop breakpoints drift | Both shells can appear together or neither shell can provide navigation | Keep the media query and responsive visibility rules on the same 768-pixel boundary |
| Fixed controls lose safe-area or body compensation | The top bar or dock can cover page content on a notched device | Keep shared safe-area variables, dock height, and mobile body padding aligned |
| A stored icon slug is used without current catalog resolution | A stale favorite or recent item can render as an invalid icon | Resolve local identifiers against the current manifest and ignore missing entries |
| A sheet stays open after route navigation | A stale overlay can cover the new page or show the wrong icon | Close mobile shell state whenever the pathname changes |
| Search surfaces stop sharing query state or search rules | The top bar and sheet can show different text or result ranking | Keep the shared search store and useIconSearch contract for both surfaces |
| Install prompt ignores standalone or dismissal state | Installed users can see an unnecessary prompt or dismissed users see it again | Check display mode and browser storage before showing the prompt |
Key files
| File | Why to read it |
|---|---|
| src/…/mobile-shell.tsx | Coordinates the mobile frame, touch behavior, sheet lifecycle, and icon-link handling. |
| src/…/mobile-top-bar.tsx | Defines the phone search entry point, search shortcut focus, and theme control. |
| src/…/mobile-bottom-dock.tsx | Defines primary phone navigation, active routes, and the favorites badge. |
| src/…/bottom-sheet.tsx | Defines the shared overlay, drag, dismissal, and scroll behavior. |
| src/…/mobile-search-sheet.tsx | Shows the expanded icon and documentation search path and its connection to recent searches. |
| src/…/mobile-icon-sheet.tsx | Shows quick icon use through preview, favorite, copy, download, metadata, and detail actions. |
| src/…/mobile-action-sheet.tsx | Shows the long-press action path that preserves the current grid. |
| src/…/mobile-more-sheet.tsx | Defines secondary product destinations and tracked external integrations on phones. |
| src/…/pwa-install-prompt.tsx | Defines delayed install behavior and the iOS fallback path. |
| src/…/mobile-shell-store.ts | Defines ephemeral sheet state and search snap state. |
| src/…/mobile-prefs-store.ts | Defines the persisted icon-opening preference. |
| src/…/recents-store.ts | Defines device-local viewed, copied, and searched activity. |
| src/…/favorites-store.ts | Defines device-local favorites shared by mobile navigation and icon actions. |
| src/…/use-media-query.ts | Defines responsive, accessibility, transparency, and standalone device checks. |
| src/…/manifest.ts | Defines the standalone web-app identity and mobile entry shortcuts. |
| src/…/globals.css | Defines safe-area spacing, mobile body compensation, surface fallbacks, and motion guards. |