Repository navigation
feat(viewer): restyle the viewer on one design system, with a light scheme - #352
Merged
Merged
Conversation
DrunkOnJava
enabled auto-merge (squash)
September 23, 2026 13:44
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_730acc85-8f3b-43e4-90a9-9f491918a4ed) |
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
The browser viewer is restyled on one design system, and gains a light scheme that follows the system setting.
Motivation
The viewer is the first thing most people see of rvt-rs. It was dark only, with an ad hoc palette and a monospace face on data, and the 3D view drew every category darker than its colour.
Changes
Testing
What this does not do
data-themeon the root element forces one.Audit-honesty checklist
Legal and contribution hygiene
Note
Low Risk
Mostly UI, styling, and colour constants; no auth, parsing, or export logic changes beyond palette values and viewer lighting.
Overview
Restyles the browser viewer on a shared Sonic Console token set (
viewer/src/tokens.css,viewer/src/styles.css), replacing the large inline stylesheet inindex.html. The UI follows system light/dark (semantic tokens +prefers-color-scheme/ optionaldata-theme), with a black header, white sheet, pill controls, sentence-case copy, and tabular numerals instead of monospace.The Three.js scene now reads canvas, grid, lights, axes, and selection colours from those CSS tokens via
applySceneTheme(), with brighter hemisphere/directional lighting so category colours read closer to their intended sRGB values.Export visuals stay in sync:
category_colouringltf.rsand plan SVG strokes/fills insheet.rsmove to the same gray/blue/red/green/amber ramps (e.g. doors amber, windows translucent blue); docs and changelog reflect the new hues. Demo gallery thumbnails become flat tinted tiles with a simple building icon (stage-demos.mjs).Playwright expectations update for sentence-case status strings (
Ready/Loaded).Reviewed by Cursor Bugbot for commit 70c753d. Configure here.