feat(a2ui): refactor theme styles#2650
Conversation
🦋 Changeset detectedLatest commit: e1da1de The changes in this PR will be included in the next version bump. This PR includes changesets to release 0 packagesWhen changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (13)
💤 Files with no reviewable changes (2)
✅ Files skipped from review due to trivial changes (5)
🚧 Files skipped from review as they are similar to previous changes (6)
📝 WalkthroughWalkthroughSeparates Luna page theming from A2UI surface theming, expands CSS token overrides (applied at :root), threads theme through the playback iframe and INIT_LYNX_VIEW message, enables CSS inline variables via plugin config, updates UI styling, and adjusts tests/docs and a changeset for a patch release. ChangesTheme Architecture and Token System
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.changeset/many-pandas-breathe.md:
- Around line 1-5: The changeset for "`@lynx-js/a2ui-reactlynx`" uses a patch
release but the CSS refactor expands token overrides to :root (while still
keeping .a2ui-light and .a2ui-dark), which changes styling scope and can break
consumer cascade behavior; update the changeset to use a minor bump instead of
patch and update the release note to state that token scope was expanded to
:root so consumers relying on previous specificity or un-themed defaults are
aware.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: da36c70c-f52f-4d5b-bfba-b9fa02227cde
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (12)
.changeset/many-pandas-breathe.mdpackages/genui/a2ui-playground/AGENTS.mdpackages/genui/a2ui-playground/lynx-src/a2ui/App.tsxpackages/genui/a2ui-playground/lynx-src/a2ui/index.csspackages/genui/a2ui-playground/lynx.config.tspackages/genui/a2ui-playground/package.jsonpackages/genui/a2ui-playground/src/components/MobilePreview.tsxpackages/genui/a2ui-playground/src/pages/DemosPage.csspackages/genui/a2ui-playground/src/pages/PlaybackPage.tsxpackages/genui/a2ui-playground/src/styles.csspackages/genui/a2ui/src/react/A2UIRenderer.tsxpackages/genui/a2ui/styles/catalog/Text.css
💤 Files with no reviewable changes (2)
- packages/genui/a2ui-playground/src/components/MobilePreview.tsx
- packages/genui/a2ui-playground/src/styles.css
Merging this PR will not alter performance
Comparing Footnotes
|
React Example#8350 Bundle Size — 237.15KiB (0%).e1da1de(current) vs 353b1b7 main#8301(baseline) Bundle metrics
|
| Current #8350 |
Baseline #8301 |
|
|---|---|---|
0B |
0B |
|
0B |
0B |
|
0% |
0% |
|
0 |
0 |
|
4 |
4 |
|
197 |
197 |
|
80 |
80 |
|
44.89% |
44.89% |
|
2 |
2 |
|
0 |
0 |
Bundle size by type no changes
| Current #8350 |
Baseline #8301 |
|
|---|---|---|
145.76KiB |
145.76KiB |
|
91.39KiB |
91.39KiB |
Bundle analysis report Branch p/a2ui-theme Project dashboard
Generated by RelativeCI Documentation Report issue
React External#1464 Bundle Size — 695.33KiB (0%).e1da1de(current) vs 353b1b7 main#1415(baseline) Bundle metrics
|
| Current #1464 |
Baseline #1415 |
|
|---|---|---|
0B |
0B |
|
0B |
0B |
|
0% |
0% |
|
0 |
0 |
|
3 |
3 |
|
17 |
17 |
|
5 |
5 |
|
8.59% |
8.59% |
|
0 |
0 |
|
0 |
0 |
Bundle analysis report Branch p/a2ui-theme Project dashboard
Generated by RelativeCI Documentation Report issue
React Example with Element Template#618 Bundle Size — 199.95KiB (0%).e1da1de(current) vs 353b1b7 main#569(baseline) Bundle metrics
Bundle size by type
|
| Current #618 |
Baseline #569 |
|
|---|---|---|
145.76KiB |
145.76KiB |
|
54.19KiB |
54.19KiB |
Bundle analysis report Branch p/a2ui-theme Project dashboard
Generated by RelativeCI Documentation Report issue
React MTF Example#1482 Bundle Size — 208.1KiB (0%).e1da1de(current) vs 353b1b7 main#1434(baseline) Bundle metrics
|
| Current #1482 |
Baseline #1434 |
|
|---|---|---|
0B |
0B |
|
0B |
0B |
|
0% |
0% |
|
0 |
0 |
|
3 |
3 |
|
192 |
192 |
|
77 |
77 |
|
44.4% |
44.4% |
|
2 |
2 |
|
0 |
0 |
Bundle size by type no changes
| Current #1482 |
Baseline #1434 |
|
|---|---|---|
111.23KiB |
111.23KiB |
|
96.86KiB |
96.86KiB |
Bundle analysis report Branch p/a2ui-theme Project dashboard
Generated by RelativeCI Documentation Report issue
Web Explorer#9923 Bundle Size — 901.35KiB (0%).e1da1de(current) vs 353b1b7 main#9874(baseline) Bundle metrics
Bundle size by type
|
| Current #9923 |
Baseline #9874 |
|
|---|---|---|
497.08KiB |
497.08KiB |
|
402.06KiB |
402.06KiB |
|
2.22KiB |
2.22KiB |
Bundle analysis report Branch p/a2ui-theme Project dashboard
Generated by RelativeCI Documentation Report issue
Summary by CodeRabbit
New Features
Bug Fixes
Style
Documentation
Chores
Tests
Checklist