feat: add font scale widget for reader-adjustable text sizing#31
Open
thisisavs wants to merge 1 commit intonicobailon:mainfrom
Open
feat: add font scale widget for reader-adjustable text sizing#31thisisavs wants to merge 1 commit intonicobailon:mainfrom
thisisavs wants to merge 1 commit intonicobailon:mainfrom
Conversation
Adds a fixed-position font scale widget (bottom-right corner) with 4 size presets (Compact 0.9x, Default 1x, Large 1.12x, XL 1.25x) that every visual-explainer page should include. The widget scales the root font-size, so all text must use rem units to scale proportionally. User preference persists via localStorage across page refreshes. This improves accessibility and accommodates different screen sizes and reading preferences without requiring the user to use browser zoom. Co-Authored-By: Claude Opus 4.6 <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.
Summary
localStorageacross page refreshesremunit requirement so all text scales proportionallyMotivation
Visual explainer pages are information-dense and viewed on a wide range of screens -- from laptops to large monitors to projected displays. Browser zoom works but scales everything including layout. This widget scales only text, preserving the page layout while letting readers pick a comfortable reading size.
It also improves accessibility for users who prefer larger text without requiring them to change system or browser settings.
What changed
plugins/visual-explainer/SKILL.md-- added a new## Font Scale Widgetsection (82 lines) between the Style/Deliver sections and Diagram Types, containing:remunits for compatibilityNo changes to templates, references, or other files.
Preview
The widget renders as a small
A A A Abutton cluster in the bottom-right corner, styled with the page's own theme variables (--surface,--border-bright,--accent-dim). Each "A" is progressively larger to visually communicate the scale.Generated with Claude Code