feat: restyle widget playground#716
Draft
effie-ms wants to merge 20 commits into
Draft
Conversation
|
Hey! This is your new endpoint: https://ef3ccbb6.widget-playground-1so.pages.dev |
|
Hey! This is your new endpoint: https://a011f626.widget-playground-1so.pages.dev |
|
Hey! This is your new endpoint: https://3982bdd4.widget-playground-1so.pages.dev |
|
Hey! This is your new endpoint: https://27687382.widget-playground-1so.pages.dev |
…lor-mix for hovers
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.
Which Linear task is linked to this PR?
EMB-348
Why was it implemented this way?
Complete redesign of the widget playground sidebar, replacing the old accordion-based layout with a new navigation-driven architecture using sliding panel transitions.
Sidebar structure: Replaced expandable card/accordion components with a nav list → detail view pattern. Each section (Mode, Variant, Height, Wallet management, Developer controls, Theme) has its own detail view with a back button and reset action. Panels slide in/out via a
SidebarViewTrackCSS transform approach.Edit Theme view: New dedicated view for theme customization with inline color pickers, font selection, and surface blocks (Widget/Card/Button) for corner radius, shadow, and border editing. Shadow and border sections use
Collapsetransitions. Mode toggle is icon-only with filled light/dark icons.Developer controls: Restructured with a nested sliding panel for widget event configuration. Form values auto-populate on toggle and clear on disable. Reset clears all toggles including widget events.
Removed
blackandwhitefrom playground color customization: The old playground exposedtheme.palette.common.blackandtheme.palette.common.whiteas editable colors. These were not meaningfully used —common.blackhad zero active references, andcommon.whitewas only used for switch toggle styling. Neither had any real effect on the widget appearance, so exposing them as customization options was misleading. All references tocommon.black(#000) andcommon.white(#fff) are now hardcoded.Standardized grey palette to
grey[300]/grey[800]only: The codebase previously usedgrey[200],grey[400],grey[600],grey[700], andgrey[900]in various places. These have been consolidated —grey[200]in WalletTag normalized togrey[300],grey[900]in playground togrey[800], and hover states that used intermediate grey steps (400/600/700) now usecolor-mixwithonBackgroundat varying opacities, matching the widget's existing hover pattern.Replaced
drop-shadowwithbox-shadow: All elevation card shadows used CSSfilter: drop-shadow(...)which lacks spread control and is more expensive to render. Switched tobox-shadowacrosscreateTheme.ts,watermelonLight.ts, and playground theme. Added shadow offset X/Y controls to the playground surface blocks alongside existing blur and spread sliders. Tightened slider ranges: blur 0–24, spread 0–8, offsets -8–8.Header spacing adjustment: Removed header bottom padding and added equivalent top padding to the content area below the header for cleaner visual separation.
Summary of changes
Playground (
widget-playground)NavListItem,CardSelect,SidebarHeader,SidebarFooter,DetailViewHeaderModeDetailView,VariantDetailView,HeightDetailView,WalletManagementDetailView,DeveloperControlsDetailView,ThemeEditDetailViewgrey.300/grey.800)common.white(#fff) andcommon.black(#000) — removed from theme palette customizationcolor-mix(onBackground)instead of discrete grey stepsdrop-shadowfilter withbox-shadowin playground themeWidget (
widget)filter: drop-shadow(...)withbox-shadowincreateTheme.tsandwatermelonLight.tsAppLayoutgrey.200→grey.300in WalletTagcommon.whiteto#fffin Switch componentcommon.black/common.whitetheme vars with hex values in watermelonLight themeVisual showcase (Screenshots or Videos)
TODO: Add screenshots of the new sidebar design
Checklist before requesting a review