feat(mobile): add shared UI primitives - #532
Merged
Merged
Conversation
The mobile shell rendered everything in the system font. Load the four brand typefaces at startup with useFonts and hold render behind the splash screen so the UI never flashes a system font. - theme/typography.ts: font assets + role→family map + role text styles, mirroring the web wallet (Lora 600 italic headings, Anton accent caps at 0.08em, Inter body, Inconsolata addresses/hashes). - app/_layout.tsx: preventAutoHideAsync + useFonts(fontAssets); render held until fonts resolve, then hideAsync. - app/fonts.tsx: a /fonts specimen screen rendering all four roles. Closes Miracle656#432
Build the reusable components every screen composes from, as native ports of the web wallet's core CSS classes so feature screens don't re-implement layout chrome. - theme/colors.ts: native palette mirroring globals.css :root vars. - components/ui/Screen.tsx (.wallet-shell shell + safe area), Card.tsx (.card/.card-md), Button.tsx (.btn-gold/.btn-ghost gold variants), AddressChip.tsx (.address-chip, Inconsolata + tap-to-copy via expo-clipboard), Highlight.tsx (.hl gold underlay). - app/_layout.tsx: wrap in SafeAreaProvider (required by Screen). - app/ui.tsx: /ui gallery rendering every primitive for side-by-side check. Closes Miracle656#433
|
@Ipramking is attempting to deploy a commit to the miracle656's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@Ipramking Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This was referenced Jul 28, 2026
This was referenced Jul 28, 2026
…ives # Conflicts: # frontend/mobile/app/_layout.tsx # frontend/mobile/package-lock.json # frontend/mobile/package.json
Owner
|
Thanks @Ipramking — shared UI primitives (Button, Card, Screen, AddressChip, Highlight) with a barrel export and a ui.tsx gallery route, built on the typography module from #432. Gives later screens something consistent to compose from instead of re-inventing inline styles. Closes #433. Merging once CI is green. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The reusable components every screen composes from — native ports of the web wallet's core CSS classes (
frontend/wallet/app/globals.css), so feature screens don't re-implement layout chrome.Primitives (
frontend/mobile/components/ui/)Screen.wallet-shellCard.card/.card-mdvariant="md"= raised surfaceButton.btn-gold/.btn-ghostAddressChip.address-chipHighlight.hltheme/colors.ts— native palette mirroring the:rootCSS variables (exact hex/rgba).app/_layout.tsx— wrapped inSafeAreaProvider(required byScreen).app/ui.tsx— a/uigallery rendering every primitive for side-by-side comparison with the web wallet.expo-clipboard(~57.0.1, SDK-aligned) for the chip copy.Stacked on #531
This builds on the typography module from #432 (PR #531) —
Button/AddressChipimporttheme/typography.ts. Until #531 merges, this PR's diff includes that fonts commit; review thefeat(mobile): add shared UI primitivescommit for this issue's work. Once #531 merges I'll rebase and the fonts commit drops out.Acceptance
✅
/uirenders all five primitives against the ported values.Verification (local — no mobile CI job in this repo)
npm run typecheck(tsc --noEmit) ✅eslinton all new files ✅ cleanCloses #433