A plugin marketplace for GitHub Copilot and other AI agents that provides Power Platform development plugins, including reusable skills, agents, and commands for building and deploying solutions.
Mobile Design Philosophy
Required reading for screen-builder and native-app-planner. Defines why screens look a certain way. Companion docs: screen-templates.md (archetypes), tamagui-component-recipes.md (snippets), accessibility-checklist.md (a11y).
Quality Bar
Every screen should feel designed, not generated. Benchmark: a well-made iOS app — same attention to whitespace, alignment, hierarchy. Screenshot your screen next to iOS Settings — if it looks busier or more cramped, fix it.
1. Visual Hierarchy
Every screen has exactly one primary action and one primary piece of information.
| Role | Tamagui | Size |
|---|---|---|
| Screen title | H3/H4 |
20–23px |
| Section header | Text fontSize="$5" fontWeight="600" |
16px |
| Body / row title | Text fontSize="$5" |
16px |
| Secondary | Paragraph color="$color10" |
14px |
| Caption / meta | Text fontSize="$3" color="$color9" |
13px |
- Weight:
700titles,600section headers,400body. Never bold body text. - Color: Primary
$color12, secondary$color10, tertiary$color9. Accent ($blue10) for interactive only. - Spacing: More space = more importance. If two texts are equally spaced, user assumes equal importance.
Typography Pairing
When the aesthetic direction calls for it (Editorial, Soft/Organic), pair a serif heading font with a sans-serif body/UI font. For Industrial, Refined Minimal, and Bold/Expressive, use a single sans-serif family and differentiate through weight alone.
| Aesthetic direction | Heading font | Body/UI font | Headline tracking | Body lineHeight |
|---|---|---|---|---|
| Editorial | Serif (Lora, Playfair) | Inter (default) | -0.5 to -1.0 at $7+ |
1.6x |
| Soft / Organic | Rounded sans (Nunito) | Inter | -0.3 at $7+ |
1.5x |
| Industrial | Inter mono-weight stack | Inter + $mono for data |
0 (weight only) | 1.4x |
| Refined Minimal (default) | Inter | Inter | -0.3 at $8+ only |
1.5x |
| Bold / Expressive | DM Sans bold | DM Sans lighter weight | -0.5 to -0.8 | 1.5x |
Negative tracking on headlines: Apply letterSpacing of -0.5 to -1.0 on fontSize="$7" and above. Never apply negative tracking below $6. This pulls letters closer and makes headings feel authoritative, not loose.
Line height for body: Long-form body text (detail screen descriptions, onboarding copy) uses 1.5–1.6x line height for reading comfort. Dense list rows use tighter default (1.3x).
Column width for prose: On content-heavy screens (detail, onboarding), wrap prose in <YStack maxW={520}> (roughly 62ch at 16px). On phones this is naturally satisfied; apply Config v5 $sm variants only to preserve readable width on larger surfaces without changing the native workflow.
Full pairing configs and font loading instructions → see typography-and-tone.md.
2. Spatial Rhythm (4px Grid)
Tokens: $1=4, $2=8, $3=12, $4=16, $5=20, $6=24. No hardcoded px.
| Area | Value |
|---|---|
| Screen horizontal padding | px="$4" to px="$5" |
| Between sections | gap="$5" to gap="$6" |
| Between list items | gap="$3" |
| Card internal padding | p="$4" to p="$5" |
| Label to input | gap="$2" |
All text shares the same left margin. Never mix center-aligned and left-aligned in the same flow.
3. Information Density
- List rows: 2–3 lines max. Title (bold) + description + optional meta.
- Cards: 1 title, 1 subtitle, 0–1 action. >3 pieces → split with separator.
- Forms: 3–5 visible fields before scroll. Group with section headers.
- Glance Test: Can user understand this screen in 2 seconds from title + one visual element alone?
Home Screen Dashboard
For most useful mobile apps, Home is a dashboard, not a welcome page and not a duplicate of the first list. It should answer three questions in one glance: what matters now, what changed recently, and what should I do next?
Home should usually contain: a compact context header, one current/next item card, a progress/status/priority strip when relevant, 2–4 summary tiles, 3–5 recent/upcoming/recommended rows, and one bottom primary CTA. Keep the list/detail tabs for browsing everything; Home summarizes and routes.
The structure is generic, but the content must be domain-specific: inspection apps show assignment/progress/defects; learning apps show next lesson/streak/progress; finance apps show balance/due items/recent activity; healthcare apps show next appointment/tasks; CRM apps show pipeline/follow-ups. Do not copy a field-ops dashboard shape into domains where another current-state summary is more natural.
4. Touch & Interaction
- Primary actions → bottom of screen (easy thumb reach). Destructive → harder to reach + confirm.
- Touch targets: minimum 44×44pt. Use
hitSlopon small elements. - One-handed use is the default phone posture: frequent actions live in the lower half or in native bottom chrome; top-right actions are secondary or mirrored by an accessible row/menu action.
pressStyle={{ scale: 0.97 }}for cards/rows,opacity: 0.85for buttons. Not both at full intensity.- Swipe actions: always provide a visible button alternative.
Input Ergonomics
- Reduce typing with defaults, recent values, native pickers, steppers, segmented controls, camera/scan, location, and lookup rows before asking for free text.
- Tamagui
Input/TextAreause web-standard keyboard hints:inputMode,type,autoComplete,enterKeyHint, andonKeyDown. Raw React Native inputs retain their native keyboard props. - Dates use native date/time pickers. Numbers use numeric keyboards and tolerant parsing. Long text uses
TextArea, not a tiny single-line input. - Forms preserve user work: validation/network failures never clear fields; dirty cancel/back requires confirmation; long or multi-step forms need a draft/save-resume path.
5. Color — 60/30/10 Rule
| Share | Role | Tokens |
|---|---|---|
| 60% | Neutral base | $background, $surface0, $color12, $color2 |
| 30% | Complementary surfaces | $color4, $color5, $borderColor |
| 10% | Accent — interactive only | $blue10/$accentBase, $red10, $green10 |
3 non-neutral colors visible at once = too busy. Strip one.
No raw grays. Never use #f5f5f5, #e0e0e0, #1a1a1a or similar pure gray hex values. Always use Tamagui tokens ($background, $color2, $color12) which carry subtle hue tinting. Raw grays make the app feel like a wireframe.
Surfaces: fill, not borders. Cards separate from the background via fill difference (bg="$color2" on $background), not borderWidth={1} on everything. Reserve borders for: list item separators (borderBottomWidth={0.5}), input fields, and intentional dividers between concepts. If every surface has a border, the screen looks like a wireframe.
Status colors: desaturate for most apps. Raw $red10/$green10 on white pills scream. For non-field apps, use tinted backgrounds with text-weight color: bg="$green3" color="$green10", bg="$red3" color="$red10". Only field/ops apps keep fully saturated pills for outdoor visibility. See color-palette-architecture.md for desaturation values.
Dark mode: elevation via lighter surfaces (not shadow). Reduce text contrast one step. Accent colors brighter. Never pure #000000 background or pure #ffffff text — use hue-tinted near-black and warm cream. See color-palette-architecture.md dark mode rules.
Status colors: Error $red10, Success $green10, Warning $yellow10, Info $blue10. Never color alone — pair with text/icon.
Contrast floor for mobile chrome: inactive tabs, helper text, metadata that users need to act on, picker chevrons, modal body copy, and icon affordances use $color10 or stronger. $color8 and below are decorative/faint only, not readable UI text.
Yellow/orange status badges: do not put white text on yellow/orange fills unless a measured contrast check proves AA. Prefer bg="$yellow3" color="$yellow11" or bg="$orange3" color="$orange11".
6. Loading, Empty & Error States
Loading: Skeleton shapes matching real content layout — never centered spinner. Skeleton row = gray blocks matching row height.
Empty: Icon + title ("No inspections yet") + subtitle (what to do) + CTA button. Centered in available space.
Error: Inline, not modal. $red10 text + "Try again" button. Auth errors → redirect to login.
Offline/interruption: Global connectivity banner for no connection. Form submit failures keep the user's input in place and offer retry. Long-running workflows should be resumable after app backgrounding or navigation away.
7. Industry-Adaptive Design
| Industry | Density | Color | Typography | Touch | Key pattern |
|---|---|---|---|---|---|
| Enterprise/LOB | Medium-high | Minimal accent, blue CTA | Inter, no decorative | Standard 44pt | Dense rows, metadata-rich |
| Consumer | Lower | Brand accent prominent | Custom font OK | Standard | Larger radius, imagery |
| Field/Ops | High | High contrast, status colors | Larger body $5–$6 |
52pt+ | Camera/scan forward, offline indicator |
| Finance | Medium | Blue dominant, conservative | High-contrast, no decorative | Standard | Whitespace, trust signals |
| Healthcare | Lower | Warm, approachable | Rounded sans-serif | Standard | Friendly illustrations, compassionate copy |
| Education | Medium | Bright, playful | Slightly rounded | Standard | Gamification, streaks |
| Productivity | High | Near-monochrome | System font, mono for data | Standard | Strong grid, batch ops |
Field/Ops Workflow Screens
Inspection, dispatch, safety, maintenance, aviation, warehouse, and route apps need workflow-specific screens, not just CRUD screens with different labels.
| Workflow | Mobile UX shape |
|---|---|
| Active assignment | Assignment hero, progress/step bar, KPI strip, recent activity, bottom primary CTA |
| Walkaround / ordered checklist | Sticky step header, Step N / total, previous/next controls, evidence capture, defect chips, completion gate |
| Scan / location gate | Camera/scan target or manual fallback, GPS confidence state, retry path, supervisor override with audit note |
| Severity triage | Segmented severity filters, status chips, dense asset rows, active-filter count, high contrast status text |
| Dispatch / hand-off | Ready/submitted queue, lock/sign-off state, biometric/PIN gate if required, immutable completion summary |
| Audit history | Toggle between per-step grouping and chronological log, timestamp + actor + action rows, verification/hash status when relevant |
Use saturated status/accent colors only when they improve field readability. Yellow/orange still need dark readable text unless contrast has been measured.
8. Micro-Details (Quality Signals)
- Consistent radius: One for cards (
$4), one for buttons ($3), circular for avatars. - Text truncation: Titles
numberOfLines={1}, descriptionsnumberOfLines={2}. - Separator vs gap:
<Separator />between different concepts,gapwithin same section. - Button hierarchy: One primary using a confirmed theme such as
theme="blue", or explicit Tamagui 2 frame/text composition (<Button bg="$blue10"><Button.Text color="$color1">Save</Button.Text></Button>); rest secondary. Do not put text-style props directly onButton, and do not usetheme="active"unless that theme exists in the project config. Destructive styling uses verified danger tokens or a confirmed theme only in confirm dialogs. - Icon + text: Icon-only OK in headers. In body, always pair with label.
- Consistent row structure: Same height, padding, info architecture in a list.
- Header weight: Background difference or bottom border — never floating.
- Intentional space: Use
mt="auto"to push actions to bottom naturally. - Monospace for data: IDs, timestamps, coordinates, currency →
fontFamily="$mono".
9. Emotional Design (Peak-End Rule)
One "remarkable moment" per flow after significant effort:
| Trigger | Response |
|---|---|
| Core task done | Checkmark animation + personalized summary |
| Milestone reached | Badge/context card ("5th inspection this week") |
| Long form completed | Summary card of what was submitted |
| First-time action | "You're all set" + next-step CTA |
Endings: brief confirmation after save, undo after delete, silent draft save on navigate-away.
10. Aesthetic Direction
| Direction | When | Characteristics |
|---|---|---|
| Industrial | Field ops, maintenance | Monospace data, uppercase tracked labels, edge-to-edge rows, single accent |
| Editorial | Content, learning | Serif headings, generous line height, minimal cards, section numbers |
| Refined Minimal | Productivity, enterprise (default) | Inter, precise weight hierarchy, low-radius bordered cards |
| Soft / Organic | Healthcare, wellness, consumer | Rounded sans-serif, warm shadow, tinted surfaces |
| Bold / Expressive | E-commerce, social | Saturated brand color, strong shadows, full-color accent cards |
11. Layout Beyond Cards — Content-First Design
Cards vs. bare content
Don't use cards for: Dense lists (>7 items) → edge-to-edge rows. Key-value data → info rows. Sequential content → timeline flow. Reading/prose (detail body, help text) → bare on $background.
Use cards for: Genuinely grouped content. Different semantic levels. Interactive items (drag/reorder). Stats/summary data that needs visual separation.
Cards add visual noise to reading flows. If a screen's primary purpose is reading or writing, render text directly on $background with no card wrapper. Cards are for grouped interactive content or visually distinct data units.
Section break spacing
Between major content sections, use gap="$8" to gap="$10" (32–40px). This is dramatically more generous than the $5–$6 guidance in Section 2 and is the single biggest visual quality lever. Within a section, keep tight spacing ($2–$3).
| Content type | Container | Between sections | Internal gap |
|---|---|---|---|
| Prose/reading (detail body, help) | Bare on $background |
gap="$8" to gap="$10" |
gap="$3" |
| Data list (rows of records) | Edge-to-edge rows | Separator between items |
gap="$2" within row |
| Dashboard (stat cards, charts) | Cards on $background |
gap="$5" between card groups |
gap="$2" within card |
| Form fields | Bare on $background |
gap="$6" between field groups |
gap="$2" label-to-input |
| Mixed (text + data + actions) | Alternating bare/card | gap="$8" between content types |
varies |
Layout follows content type, not component type
Do not default to "wrap everything in a Card." Ask: is this content meant to be read, scanned, or interacted with?
- Reading → bare content on paper, generous spacing, max-width constraint
- Scanning → dense rows with separators, tight spacing
- Interacting → cards with press styles, standard spacing
Structured asymmetry
Monospace date on left, title center, badge right. Vary spacing: tight within groups (gap="$2"), generous between sections (gap="$8"+).
Centered text is wrong outside of empty states and onboarding. Left-align all content flows.
12. Shadows & Polish
Two-layer shadows feel natural. Use shadows.sm/md/lg from tamagui-component-recipes.md.
Dark mode: No shadows — use surface elevation ($color3 on $color2) + hairline borders.
Hairline rules: borderBottomWidth={0.5} between list items. 0.5px on retina = refined; 1px = clunky.
Status indicators beyond pills: Colored dot prefix (● Open), left border accent (3px), uppercase tracked text. Reserve filled pills for high-priority states.
13. Anti-Patterns Checklist
Before returning, check none of these are present:
- Centered text at top of screen (left-align except empty/onboarding)
- Equal-padding card stack with nothing else
- Buttons saying "Submit"/"OK" instead of action-specific labels
- Skeleton shapes that don't match populated layout
- Same border radius on everything
- Engineer-facing strings shown to users
- Emoji as icons (use Lucide)
- Generic "No items" empty state without icon/explanation/CTA
- Long forms with no progress indicator
- Long/multi-step forms with no draft or resume path
- Inputs using the default text keyboard for numbers, phone, email, URL, dates, or search
- Primary action only in the top-right corner on a phone screen
-
allowFontScaling={false}on readable text -
3 non-neutral colors visible at once
- Borders on every card/surface — cards should use background fill difference (
$color2on$background), notborderWidth={1}on everything. Reserve borders for list item separators only (borderBottomWidth={0.5}) - Fully saturated status pills — desaturate status colors for non-field apps (see
color-palette-architecture.md). Use$color3/$color10tinted pills, not raw$red10/$green10fills on white text - Pure gray palette with no hue — if the plan specifies a custom palette or industry, apply the named palette (see
color-palette-architecture.md). Even default apps should use Tamagui's built-in hue-tinted tokens, not raw gray hex values - Dark mode uses pure black (#000) or raw white (#fff) — dark surfaces should be near-black with a hue tint, text should be warm cream not pure white (see
color-palette-architecture.mddark mode rules)
If 3+ are present, fix before returning.