[Refactor] - Standardize design system tokens and enhance widget UI/UX#111
Draft
InduwaraSMPN wants to merge 19 commits intodevfrom
Draft
[Refactor] - Standardize design system tokens and enhance widget UI/UX#111InduwaraSMPN wants to merge 19 commits intodevfrom
InduwaraSMPN wants to merge 19 commits intodevfrom
Conversation
added 18 commits
March 22, 2026 21:54
unifies elevation, radius, padding, and tone props across ui primitives by introducing shared design tokens and utility classes; updates component apis for flexibility and consistency, removes shadow constants from usage, and simplifies styling overrides for easier theme maintenance and visual consistency
…ign-system-enhancements
…ign-system-enhancements
…ign-system-enhancements
…ign-system-enhancements
…ign-system-enhancements
…ign-system-enhancements
…ign-system-enhancements
…ign-system-enhancements
…ign-system-enhancements
…ign-system-enhancements
…ign-system-enhancements
…ign-system-enhancements
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
This PR implements a comprehensive overhaul of the widget's design system to improve visual consistency, maintainability, and user experience. The changes transition the codebase from hardcoded styles to a centralized, token-based architecture.
Key Changes:
component-tokens.tsto centralize logic for elevation (shadows), border-radius, and text tones.Flex,Stack, andSurfaceprimitives to support shared layout props (padding presets, radius tokens, and elevation).TextandButtoncomponents with new variants (chip,tab,inline,toolbar) and semantic sizes.HomeViewand chat messages.SuggestedActionswith icons and improved hover/active states.index.htmlwith fallback widget IDs and API hosts to ensure functional defaults when query parameters are absent.vite.config.tsto disable code splitting, ensuring the widget is bundled as a single library file for easier integration.Related issue
Resolves #design-system-consistency
Test plan
mtx-idparams to verify fallback default settings..jsand.cssbundle is generated without internal chunks.Checklist
routes.ts,schema.ts,proto)