Update illustration colors and add dot grid background#3004
Open
shaunandrews wants to merge 5 commits intotrunkfrom
Open
Update illustration colors and add dot grid background#3004shaunandrews wants to merge 5 commits intotrunkfrom
shaunandrews wants to merge 5 commits intotrunkfrom
Conversation
…grid background Rebuild the Sync tab illustration SVG with proper light/dark mode color switching. Update the Preview tab browser chrome to use light colors in light mode. Add an interactive DotGrid canvas component behind both illustrations with a radial gradient mask for a clean fade effect. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Extract shared IllustrationGrid component (DotGrid + radial mask) used by both Sync and Preview tabs - Replace hardcoded SVG colors with CSS custom properties (--color-frame-surface, --color-frame-bg, etc.) so illustrations adapt automatically to theme changes - Scope SVG class names with short prefixes (sti-, sds-) to avoid collisions - Add basic tests for DotGrid and IllustrationGrid components Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
When reduced motion is preferred, render a static grid with no intro animation, hover repulsion, or click ripples. Mouse event listeners are not attached at all. The grid still responds to resize and color scheme changes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
katinthehatsite
approved these changes
Apr 8, 2026
Contributor
|
One sidenote: we should double-check how these new animations look on Windows. They look great to me on macOS but I am not sure the effect is the same on Windows. |
Contributor
Contributor
|
I tested it on Windows - animation works well, but the issue with scrollbars also happens there. |
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
Update illustrations on the Sync and Preview tabs with dark mode support, interactive dot grid backgrounds, and improved color contrast for accessibility.
Before
After
Related issues
Proposed Changes
New components
DotGrid(src/components/dot-grid.tsx) — Canvas-based animated cross-pattern grid with spring physics, hover repulsion, click ripples, and an intro reveal animation. Reads color from CSScolorproperty and responds toprefers-color-schemechanges. Respectsprefers-reduced-motion: reduce— renders a static grid with no animation or mouse interactions.IllustrationGrid(src/components/illustration-grid.tsx) — Wrapper that places aDotGridbehind any child content with a radial gradient mask (radial-gradient(circle, black 20%, transparent 65%)) and 120px bleed past the content edges.Sync tab illustration (
sync-tab-image.tsx)--color-frame-surfacefor browser content area,--color-frame-bgfor dots,--color-frame-textfor connector opacity,--color-frame-surface-altfor WP logos in dark modesti-prefix, filter IDs renamed tosti-shadow-top/sti-shadow-bottomIllustrationGridfor the dot grid backgroundPreview tab illustration (
screenshot-demo-site.tsx)--color-frame-surfacefor frame,--color-frame-surface-altfor toolbar,--color-frame-text-secondaryfor arrowssds-prefixIllustrationGridfor the dot grid backgroundAccessibility
--color-frame-text-secondarychanged from#949494to#a0a0a0inindex.cssfor improved WCAG contrast ratioDotGridrespectsprefers-reduced-motion: reduce— when enabled, renders a fully static grid with no intro animation, hover repulsion, or click ripples; mouse event listeners are not attached at allTests
dot-grid.test.tsx— Verifies canvas renders, className and opacity props apply correctly (canvasgetContextmocked for jsdom)illustration-grid.test.tsx— Verifies children render and DotGrid canvas is presentsync/tests/index.test.tsx) — AddedDotGridmock to prevent canvas errors in jsdomTesting Instructions
Sync tab — signed out
Sync tab — signed in
Preview tab — signed out
Preview tab — signed in
Color contrast
Reduced motion
Pre-merge Checklist
npm test -- apps/studio/src/components/tests/ apps/studio/src/modules/sync/tests/)🤖 Generated with Claude Code