Skip to content

feat: add app font size setting#10028

Open
jwchmodx wants to merge 1 commit intoKittyCAD:mainfrom
jwchmodx:feat/font-size-setting
Open

feat: add app font size setting#10028
jwchmodx wants to merge 1 commit intoKittyCAD:mainfrom
jwchmodx:feat/font-size-setting

Conversation

@jwchmodx
Copy link
Copy Markdown

Fixes #8077. Added app.appFontSize setting that allows users to adjust the application font size via the command palette. Supports scales from 0.5x to 2.0x.

Add an 'appFontSize' setting under app settings that allows users to
scale the app's base font size via a multiplier (0.5x to 2.0x).
This is distinct from browser zoom — it only affects text size,
helping users with vision needs without scaling the entire UI.

The setting is applied by updating document.documentElement.style.fontSize
as a percentage of the default (e.g. 1.25 → 125%).

Closes KittyCAD#8077
@jwchmodx jwchmodx requested a review from a team as a code owner February 12, 2026 07:07
@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 12, 2026

Someone is attempting to deploy a commit to the Zoo Team on Vercel.

A member of the Team first needs to authorize it.

description:
'A multiplier for the base font size of the app (e.g. 1.25 = 25% larger)',
validate: (v) =>
typeof v === 'number' && v >= 0.5 && v <= 3.0,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Validation allows values up to 3.0x but the PR description states support is for 0.5x to 2.0x, and the options list only goes up to 2.0x. This inconsistency could cause issues:

  1. Users could set values between 2.0-3.0 via direct config editing that won't appear in the command palette
  2. Values above 2.0x may not be tested and could cause UI layout issues

Fix by aligning validation with the stated range:

validate: (v) =>
  typeof v === 'number' && v >= 0.5 && v <= 2.0,
Suggested change
typeof v === 'number' && v >= 0.5 && v <= 3.0,
typeof v === 'number' && v >= 0.5 && v <= 2.0,

Spotted by Graphite Agent

Fix in Graphite


Is this helpful? React 👍 or 👎 to let us know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add user setting for app font-size

1 participant