Skip to content

refactor: ♻️ FE Tweaks#25

Merged
timbrinded merged 1 commit intomasterfrom
refactor/small-fe-fixes
Feb 18, 2026
Merged

refactor: ♻️ FE Tweaks#25
timbrinded merged 1 commit intomasterfrom
refactor/small-fe-fixes

Conversation

@timbrinded
Copy link
Copy Markdown
Collaborator

This pull request updates the visual design and layout logic for multiple demo pages and shared UI components. The main focus is on improving consistency, responsiveness, and accessibility by refining color usage, spacing, and grid layouts. The changes also enhance empty states with clearer messaging and relevant icons, and update theme recipes to use semantic tokens instead of hardcoded colors.

UI and layout improvements across demo pages:

  • Improved grid layouts for cards and sections to be more responsive, adding md breakpoints and adjusting column counts for better display on different screen sizes (fe/app/routes/examples/compliant-token.tsx, fe/app/routes/examples/cross-chain-relayer.tsx, fe/app/routes/examples/risk-portfolio.tsx, fe/app/routes/examples/token-airdrop.tsx) [1] [2] [3] [4] [5]
  • Updated alignment and text styles for step cards and empty states to use left alignment and clearer font sizes/colors, improving readability and accessibility (fe/app/routes/examples/compliant-token.tsx, fe/app/routes/examples/cross-chain-relayer.tsx, fe/app/routes/examples/risk-portfolio.tsx, fe/app/routes/examples/token-airdrop.tsx) [1] [2] [3] [4] [5] [6] [7]

Empty state enhancements:

  • Added relevant icons and improved messaging for wallet connection empty states in demo pages, making flows clearer and visually engaging (fe/app/routes/examples/compliant-token.tsx, fe/app/routes/examples/cross-chain-relayer.tsx, fe/app/routes/examples/token-airdrop.tsx) [1] [2] [3]

Theme and color token updates:

  • Replaced hardcoded RGBA color values with semantic color tokens for backgrounds, borders, and text throughout the home page and theme recipes, ensuring consistency and easier theme management (fe/app/routes/home.tsx, fe/app/theme/recipes/card.ts, fe/app/theme/recipes/section.ts) [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]

Component and recipe simplification:

  • Simplified section and card recipes by removing redundant border settings and updating hover states to use semantic tokens (fe/app/theme/recipes/section.ts, fe/app/theme/recipes/card.ts) [1] [2] [3]
  • Changed Card.Footer to use a div instead of an h3 for better semantic structure (fe/app/components/ui/card.tsx)

Minor layout adjustments:

  • Unified alignment logic for demo page headers to always use flex-start for better consistency across breakpoints (fe/app/routes/examples/compliant-token.tsx, fe/app/routes/examples/cross-chain-relayer.tsx, fe/app/routes/examples/risk-portfolio.tsx, fe/app/routes/examples/token-airdrop.tsx) [1] [2] [3] [4]

Let me know if you'd like a walkthrough of any specific change or how these updates affect the user experience!

Copilot AI review requested due to automatic review settings February 18, 2026 09:27
@timbrinded timbrinded merged commit 98562a4 into master Feb 18, 2026
15 checks passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request refactors the visual design and layout of multiple demo pages and shared UI components, focusing on improving consistency, responsiveness, and maintainability. The changes systematically replace hardcoded RGBA color values with semantic color tokens from the theme system, update grid layouts to be more responsive across breakpoints, enhance empty states with clearer messaging and icons, and improve the semantic HTML structure of components.

Changes:

  • Replaced hardcoded RGBA color values with semantic color tokens (e.g., white.a11, white.a9) throughout home.tsx and theme recipes for better theme consistency and maintainability
  • Updated grid layouts across demo pages to include md breakpoint for improved responsiveness between mobile and desktop views
  • Enhanced empty states with relevant icons and clearer messaging to improve user experience when wallets are not connected
  • Removed borders from section recipe base style and updated hover effects to use semantic tokens, along with changing Card.Footer from h3 to div for better semantic HTML

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
fe/app/theme/recipes/section.ts Removed border properties from base style and updated hover state to use semantic tokens for background and border colors
fe/app/theme/recipes/card.ts Updated hover state to use semantic color tokens instead of hardcoded RGBA values
fe/app/routes/home.tsx Systematically replaced hardcoded RGBA colors with semantic tokens, removed pulse-glow animation, and updated button hover effects
fe/app/routes/examples/token-airdrop.tsx Added md breakpoint to grid layout, enhanced empty state with Gift icon and improved messaging, updated StepCard text alignment and font sizes
fe/app/routes/examples/risk-portfolio.tsx Added responsive grid breakpoints, simplified chart containers to use section recipe, improved text color contrast
fe/app/routes/examples/cross-chain-relayer.tsx Added md breakpoint to grid, enhanced empty state with ArrowLeftRight icon, updated StepCard styling for better readability
fe/app/routes/examples/compliant-token.tsx Updated grid responsiveness, enhanced empty state with ShieldCheck icon and detailed instructions, improved StepCard typography
fe/app/components/ui/card.tsx Changed Card.Footer from h3 to div element for correct semantic HTML structure

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

bg: "rgba(255,255,255,0.08)",
borderColor: "rgba(255,255,255,0.15)",
bg: "gray.surface.bg.hover",
borderColor: "gray.surface.border.hover",
Copy link

Copilot AI Feb 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The borderColor property is being set in the hover state, but the border property was removed from the base style. This means the hover state is trying to set a border color on an element that has no border, which will have no visible effect.

Either restore the border and borderColor properties to the base style, or remove the borderColor from the hover state since it won't have any effect without a border.

Suggested change
borderColor: "gray.surface.border.hover",

Copilot uses AI. Check for mistakes.
Comment thread fe/app/routes/home.tsx
color: "white",
fontWeight: "bold",
border: "2px solid rgba(255, 255, 255, 0.2)",
border: "2px solid token(colors.white.a4)",
Copy link

Copilot AI Feb 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The use of the token() function within the border shorthand property is inconsistent with the codebase pattern. Throughout the codebase, borders are consistently defined using separate properties: border: "1px solid" followed by borderColor: "white.a4". This pattern is clearer and more consistent with the rest of the codebase.

Consider refactoring to:

border: "2px solid",
borderColor: "white.a4",
Suggested change
border: "2px solid token(colors.white.a4)",
border: "2px solid",
borderColor: "white.a4",

Copilot uses AI. Check for mistakes.
Comment thread fe/app/routes/home.tsx
className={css({
bg: "rgba(15,23,42,0.3)",
border: "1px solid rgba(255,255,255,0.08)",
border: "1px solid token(colors.white.a2)",
Copy link

Copilot AI Feb 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The use of the token() function within the border shorthand property is inconsistent with the codebase pattern. Throughout the codebase, borders are consistently defined using separate properties: border: "1px solid" followed by borderColor: "white.a2". This pattern is clearer and more consistent with the rest of the codebase.

Consider refactoring to:

border: "1px solid",
borderColor: "white.a2",
Suggested change
border: "1px solid token(colors.white.a2)",
border: "1px solid",
borderColor: "white.a2",

Copilot uses AI. Check for mistakes.
borderColor: "border",
})}
>
<div className={section()}>
Copy link

Copilot AI Feb 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line has incorrect indentation. It should be indented with one more tab to align with the sibling <div> elements on lines 544 and 547.

Suggested change
<div className={section()}>
<div className={section()}>

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants