Redesign swap interface with calm stacked card aesthetic#6
Open
henghonglee wants to merge 1 commit into
Open
Conversation
Replace the chain tab bar and per-chain address components with a unified asset selector sheet and consolidated receive address field. Add design tokens (cream/walnut palette, DM Sans typography, card/field/pill radii), extract Button/Card/AmountInput/AssetPill/AssetSheet primitives into src/ui/, move Solana wallet providers up to App.tsx so they're available regardless of selected chain, restyle Order.tsx status view to match new tokens, and delete Chain.tsx/Connect.tsx/PolygonAddress.tsx/SolAddress.tsx. https://claude.ai/code/session_01QuxfFxKtWjRBhqwgFF6Bvr
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.
Summary
#F5F1EA, walnut CTA#2A1F1A), DM Sans typography, new border-radius tokens (card: 24px,field: 16px,pill: 9999px)Chain.tsxtop tab bar with anAssetPill+ bottom sheet (AssetSheet) listing all assets × chains (XSGD·Polygon, USDC·Solana, USDT·Tron) in a flat listPolygonAddress.tsx,SolAddress.tsx, and inline Tron input into a singleReceiveAddressFieldcomponent that auto-fills via the appropriate wallet hook based on selected chainButton,Card,AmountInput,AssetPill,AssetSheetinsrc/ui/for reusesurfacecard with accent-colored dot instead ofbg-slate-600; QR wrapped inbg-inset rounded-card; copy button uses walnutButtonprimitiveFiles created
src/ui/Button.tsx— primary (walnut) + secondary (outline) variantssrc/ui/Card.tsx— rounded-card surface with border hairlinesrc/ui/AmountInput.tsx— hero amount input with AssetPill slotsrc/ui/AssetPill.tsx— asset logo + chain dot + label + chevronsrc/ui/AssetSheet.tsx— bottom sheet with flat asset listsrc/ReceiveAddressField.tsx— unified address input with auto-fillFiles deleted
src/Chain.tsx— replaced by asset-driven chain state in Swap.tsxsrc/Connect.tsx— Solana providers moved to App.tsxsrc/PolygonAddress.tsx— folded into ReceiveAddressFieldsrc/SolAddress.tsx— folded into ReceiveAddressFieldTest plan
#F5F1EAbackground and white card; DM Sans active in devtoolshttps://claude.ai/code/session_01QuxfFxKtWjRBhqwgFF6Bvr