Skip to content

feat: Added adjustable font size and line height support for desktop and web. - #27684

Closed
ShogunPanda wants to merge 1 commit into
anomalyco:devfrom
ShogunPanda:font-size
Closed

ShogunPanda wants to merge 1 commit into
anomalyco:devfrom
ShogunPanda:font-size

Conversation

@ShogunPanda

Copy link
Copy Markdown

Issue for this PR

Closes #26269.
Closes #16145.
Closes #10423.

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

This PR introduces two new settings in the Desktop and Web application: font size and line height.
Both are numbers. They are applied consistently throughout the application and persisted in opencode.json.

How did you verify your code works?

Tested locally.

Screenshots / recordings

opencode.mov

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

@ShogunPanda
ShogunPanda requested a review from adamdotdevin as a code owner May 15, 2026 07:38
@simonklee
simonklee requested review from Brendonovich and Hona and removed request for adamdotdevin May 15, 2026 07:48
@ShogunPanda

Copy link
Copy Markdown
Author

Hello, any chance to land this?

@ShogunPanda

Copy link
Copy Markdown
Author

@Brendonovich @Hona I just rebased this. Any change to land it or get a feedback?

@ShogunPanda

Copy link
Copy Markdown
Author

Rebase. I won't lose hope :)

@ShogunPanda
ShogunPanda force-pushed the font-size branch 2 times, most recently from 2478c81 to 32cbfa9 Compare July 30, 2026 12:31
@ShogunPanda
ShogunPanda force-pushed the font-size branch 3 times, most recently from b8c0dc1 to 0dd2252 Compare August 17, 2026 08:28
@ShogunPanda
ShogunPanda force-pushed the font-size branch 3 times, most recently from 802f66e to e38e23b Compare September 9, 2026 12:22
BachNewton added a commit to BachNewton/opencode that referenced this pull request Sep 23, 2026
- Add Font size number input (10-24, default 14) to Settings > General > Appearance
- Wire appearance.fontSize to --font-size-user CSS var on documentElement
- Scale all text-12/14/16/20-* utilities and text-sm/base/lg/xl via derived vars
- Re-pin markdown code blocks (.shiki) and headings to scaled vars
- Wire ghostty terminal fontSize to same setting (runtime setOption + init)
- Add i18n keys settings.general.row.fontSize.title/description to en + 61 locales
- Fixes anomalyco#44184, anomalyco#49375; supersedes stale anomalyco#27684
BachNewton added a commit to BachNewton/opencode that referenced this pull request Sep 23, 2026
- Add Font size number input (10-24, default 14) to Settings > General > Appearance
- Wire appearance.fontSize to --font-size-user CSS var on documentElement
- Scale all text-12/14/16/20-* utilities and text-sm/base/lg/xl via derived vars
- Re-pin markdown code blocks (.shiki) and headings to scaled vars
- Wire ghostty terminal fontSize to same setting (runtime setOption + init)
- Add i18n keys settings.general.row.fontSize.title/description to en + 61 locales
- Fixes anomalyco#44184, anomalyco#49375; supersedes stale anomalyco#27684
BachNewton added a commit to BachNewton/opencode that referenced this pull request Sep 23, 2026
- Add Font size number input (10-24, default 14) to Settings > General > Appearance
- Wire appearance.fontSize to --font-size-user CSS var on documentElement
- Scale all text-12/14/16/20-* utilities and text-sm/base/lg/xl via derived vars
- Re-pin markdown code blocks (.shiki) and headings to scaled vars
- Wire ghostty terminal fontSize to same setting (runtime setOption + init)
- Add i18n keys settings.general.row.fontSize.title/description to en + 61 locales
- Fixes anomalyco#44184, anomalyco#49375; supersedes stale anomalyco#27684
@ShogunPanda
ShogunPanda force-pushed the font-size branch 2 times, most recently from 693dcb6 to 816fc97 Compare October 3, 2026 08:12
@thdxr

thdxr commented Oct 10, 2026

Copy link
Copy Markdown
Member

This branch has been upgraded to V2. We're no longer taking PRs for V1. If you think this is still relevant, please port it over and open it for V2.

— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

@ShogunPanda

Copy link
Copy Markdown
Author

@thdxr No worries. Done, see #54499.

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

Labels

None yet

Projects

None yet

2 participants