UI Page
Overview
Part of StyleSeed, this skill scaffolds a complete page or screen using the Toss seed's mobile-first composition rules. It keeps page structure consistent by building on the existing shell, top bar, bottom navigation, and card rhythm instead of producing disconnected sections.
When to Use
- Use when you need a new page in a Toss-seed app
- Use when you want a consistent page shell, spacing, and navigation structure
- Use when you are adding a new product flow and need a solid starting layout
- Use when you want to stay mobile-first even if the project later expands to larger breakpoints
How It Works
Step 1: Inspect the Existing Shell
Read the current page scaffolding patterns first, especially:
- page shell
- top bar
- bottom navigation
- representative pages using the same route family
Step 2: Define the Page Purpose
Clarify:
- the page name
- the primary user question the screen answers
- the top one or two actions the user should take
Every screen should have one dominant purpose.
Step 3: Use the Information Pyramid
Lay out the page from highest importance to lowest:
- Hero or top summary
- KPI or key actions
- detail cards or supporting modules
- lists, history, or secondary content
Avoid repeating the same section type mechanically from top to bottom.
Step 4: Apply the Toss Layout Rules
Default layout choices:
- mobile viewport width around
max-w-[430px]
- page background on
bg-background
- horizontal padding around
px-6
- section rhythm with
space-y-6
- generous bottom padding if a bottom nav is present
- cards using semantic surface tokens, rounded corners, and light shadows
Step 5: Compose Instead of Rebuilding
Use existing ui/ and patterns/ components wherever possible. New pages should primarily orchestrate existing building blocks, not recreate them.
Step 6: Account for Real Device Constraints
- handle safe-area insets
- avoid horizontal overflow
- keep interactive clusters thumb-friendly
- ensure long content scrolls cleanly without clipping the bottom navigation
Output
Return:
- The page scaffold
- The chosen section structure
- Reused components and any newly required components
- Empty, loading, and error states that the page will need next
Best Practices
- Keep the first version structurally correct before adding decoration
- Use one strong hero instead of multiple competing highlights
- Preserve navigation consistency across sibling screens
- Prefer reusable section components when the page will likely repeat
Additional Resources
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Core Process
- Scaffold the page structure using the standard StyleSeed shell component.
- Layout the content mobile-first, ensuring proper stacking and touch ergonomics.
- Apply consistent vertical section rhythm using design tokens.
- Adapt the layout for desktop viewports using responsive grid patterns.
Common Rationalizations
| Rationalization |
Reality |
| I'll build the desktop layout first and adapt it for mobile later. |
Violates the core mobile-first mandate, leading to clunky mobile experiences. |
| I don't need to use the standard shell component here. |
Bypassing the shell creates inconsistent navigation and layout behavior. |
| I'll add custom margins between these sections. |
Breaks the established section rhythm defined in StyleSeed. |
Red Flags
- Page layout fails on narrow mobile screens.
- Inconsistent vertical rhythm between major page sections.
- Not utilizing standard page shell or layout wrappers.
Verification
1---2name: ui-page3description: Use when scaffolding a new mobile-first page using StyleSeed Toss layout patterns, section rhythm, and existing shell components.4---56# UI Page78## Overview910Part of [StyleSeed](https://github.com/bitjaru/styleseed), this skill scaffolds a complete page or screen using the Toss seed's mobile-first composition rules. It keeps page structure consistent by building on the existing shell, top bar, bottom navigation, and card rhythm instead of producing disconnected sections.1112## When to Use13- Use when you need a new page in a Toss-seed app14- Use when you want a consistent page shell, spacing, and navigation structure15- Use when you are adding a new product flow and need a solid starting layout16- Use when you want to stay mobile-first even if the project later expands to larger breakpoints1718## How It Works1920### Step 1: Inspect the Existing Shell2122Read the current page scaffolding patterns first, especially:23- page shell24- top bar25- bottom navigation26- representative pages using the same route family2728### Step 2: Define the Page Purpose2930Clarify:31- the page name32- the primary user question the screen answers33- the top one or two actions the user should take3435Every screen should have one dominant purpose.3637### Step 3: Use the Information Pyramid3839Lay out the page from highest importance to lowest:401. Hero or top summary412. KPI or key actions423. detail cards or supporting modules434. lists, history, or secondary content4445Avoid repeating the same section type mechanically from top to bottom.4647### Step 4: Apply the Toss Layout Rules4849Default layout choices:50- mobile viewport width around `max-w-[430px]`51- page background on `bg-background`52- horizontal padding around `px-6`53- section rhythm with `space-y-6`54- generous bottom padding if a bottom nav is present55- cards using semantic surface tokens, rounded corners, and light shadows5657### Step 5: Compose Instead of Rebuilding5859Use existing `ui/` and `patterns/` components wherever possible. New pages should primarily orchestrate existing building blocks, not recreate them.6061### Step 6: Account for Real Device Constraints6263- handle safe-area insets64- avoid horizontal overflow65- keep interactive clusters thumb-friendly66- ensure long content scrolls cleanly without clipping the bottom navigation6768## Output6970Return:711. The page scaffold722. The chosen section structure733. Reused components and any newly required components744. Empty, loading, and error states that the page will need next7576## Best Practices7778- Keep the first version structurally correct before adding decoration79- Use one strong hero instead of multiple competing highlights80- Preserve navigation consistency across sibling screens81- Prefer reusable section components when the page will likely repeat8283## Additional Resources8485- [StyleSeed repository](https://github.com/bitjaru/styleseed)86- [Source skill](https://github.com/bitjaru/styleseed/blob/main/seeds/toss/.claude/skills/ui-page/SKILL.md)8788## Limitations89- Use this skill only when the task clearly matches the scope described above.90- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.91- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.929394## Core Process951. Scaffold the page structure using the standard StyleSeed shell component.962. Layout the content mobile-first, ensuring proper stacking and touch ergonomics.973. Apply consistent vertical section rhythm using design tokens.984. Adapt the layout for desktop viewports using responsive grid patterns.99100## Common Rationalizations101| Rationalization | Reality |102|---|---|103| I'll build the desktop layout first and adapt it for mobile later. | Violates the core mobile-first mandate, leading to clunky mobile experiences. |104| I don't need to use the standard shell component here. | Bypassing the shell creates inconsistent navigation and layout behavior. |105| I'll add custom margins between these sections. | Breaks the established section rhythm defined in StyleSeed. |106107## Red Flags108- Page layout fails on narrow mobile screens.109- Inconsistent vertical rhythm between major page sections.110- Not utilizing standard page shell or layout wrappers.111112## Verification113- [ ] Page is built mobile-first and scales up to desktop.114- [ ] Section spacing adheres to StyleSeed section rhythm tokens.115- [ ] Standard shell components are used for layout wrapping.