feat(preview): redesign playground toolbar chrome + tidy sidebar headers#6
Merged
Conversation
Unify the playground's outer-shell controls into one "control" visual language (the device mirror itself is untouched): - playground.css: add the eikon-tb-* toolbar vocabulary — pill buttons, segmented Size control, grouped route navigator tray, and a spin-on-click Reload, all with silk hover-lift, brand-accent active states, focus rings, and reduced-motion fallbacks. - Toolbar.tsx: replace the ad-hoc inline styles (which had no hover / active / focus feedback) with the new classes; Files gains a folder icon + pressed state, Reload spins on click. - PanelContent.tsx: drop the sliders icon next to the "Controls" label, add a subtle header gradient + pulsing live dot. - PlaygroundPage.tsx: hide the Target section's title-row icon so it matches the params/prompt headings (text-only). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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
Redesign the playground's outer-shell chrome into one cohesive "control" visual language, matching the slate/ink brand system. The device mirror itself (the macOS/browser window + component gallery) is untouched — only the surrounding controls change.
Changes
playground.css— neweikon-tb-*toolbar vocabulary: pill buttons, segmentedSizecontrol, grouped route-navigator tray, spin-on-clickReload. All carry silk hover-lift, brand-accent active states, keyboard focus rings, andprefers-reduced-motionfallbacks.Toolbar.tsx— replace ad-hoc inline styles (which had no hover/active/focus feedback) with the new classes.Filesgains a folder icon + pressed state;Reloadspins on click.PanelContent.tsx— drop the sliders icon next to theControlslabel; add a subtle header gradient + pulsing live dot.PlaygroundPage.tsx— hide theTargetsection's title-row icon so it matches the params/prompt headings (text-only).Verification
tsc -b --noEmitcleaneslint src --max-warnings 0clean:3100): Controls/Target headings render icon-free; toolbar controls render with the new classes.🤖 Generated with Claude Code