[FEATURE]: Support italic/bold/underline in custom themes #9099

Open
opened 2026-02-16 18:11:39 -05:00 by yindo · 0 comments
Owner

Originally created by @jdanbrown on GitHub (Feb 11, 2026).

Originally assigned to: @thdxr on GitHub.

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Add support for configuring italic/bold/underline in custom themes. People's preferences will vary on whether and how to use these, so letting themes customize them would be a good improvement. (e.g. personally I don't like italic or underline anywhere in code.)

Currently, custom themes can configure colors, but in getSyntaxRules all of the italic/bold/underline styles are hardcoded, which means a custom theme can't change any of them. For example, keyword picks its color from the theme, but hardcodes italic: true:

    {
      scope: ["keyword"],
      style: {
        foreground: theme.syntaxKeyword,
        italic: true,
      },
    },

Which looks like this:

Image
Originally created by @jdanbrown on GitHub (Feb 11, 2026). Originally assigned to: @thdxr on GitHub. ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request Add support for configuring `italic`/`bold`/`underline` in custom themes. People's preferences will vary on whether and how to use these, so letting themes customize them would be a good improvement. (e.g. personally I don't like italic or underline anywhere in code.) Currently, custom themes can configure colors, but in `getSyntaxRules` all of the `italic`/`bold`/`underline` styles are hardcoded, which means a custom theme can't change any of them. For example, `keyword` picks its color from the theme, but hardcodes `italic: true`: - [packages/opencode/src/cli/cmd/tui/context/theme.tsx#L739-L745](https://github.com/anomalyco/opencode/blob/v1.1.54/packages/opencode/src/cli/cmd/tui/context/theme.tsx#L739-L745) ```ts { scope: ["keyword"], style: { foreground: theme.syntaxKeyword, italic: true, }, }, ``` Which looks like this: <img width="516" height="133" alt="Image" src="https://github.com/user-attachments/assets/752cb401-2087-4ea5-ace7-2fce753d7c43" />
yindo added the opentuidiscussion labels 2026-02-16 18:11:39 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9099