[PR #5133] feature: add placeholderText theme color for input placeholders (resolves #5088) #11257

Closed
opened 2026-02-16 18:16:03 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/5133

State: closed
Merged: No


Resolves #5088.

This PR adds a new, optional placeholderText theme color that allows customizing the color of placeholder text in input fields and textareas. There is no change in beheaviour for users who do not choose to use this new theme property: If the placeholderText property is not used, the existing behaviour of using textMuted is maintained.

Changes:

  • Add placeholderText to ThemeColors type with fallback to textMuted
  • Apply placeholderColor prop to components in dialog-select
  • Apply styled placeholder text to components in dialog-prompt and prompt</li> <li>Update JSON schemas to include <code>placeholderText</code> property</li> <li>Maintain backward compatibility - existing themes work unchanged</li> </ul> <p dir="auto">To use:<br> Simply include a line resembling the following to your theme file:</p> <div data-attr-class="0qCfZOpASbwzQ20U:code-block-container code-overflow-scroll"><pre data-attr-class="0qCfZOpASbwzQ20U:code-block"><code data-attr-class="0qCfZOpASbwzQ20U:chroma language-json display"><span class="s2">"placeholderText"</span><span class="err">:</span> <span class="s2">"#c00"</span> </code></pre></div></body></html>
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/5133 **State:** closed **Merged:** No --- Resolves #5088. This PR adds a new, optional `placeholderText` theme color that allows customizing the color of placeholder text in input fields and textareas. There is no change in beheaviour for users who do not choose to use this new theme property: If the `placeholderText` property is not used, the existing behaviour of using `textMuted` is maintained. Changes: - Add `placeholderText` to ThemeColors type with fallback to `textMuted` - Apply `placeholderColor` prop to <input> components in dialog-select - Apply styled placeholder text to <textarea> components in dialog-prompt and prompt - Update JSON schemas to include `placeholderText` property - Maintain backward compatibility - existing themes work unchanged To use: Simply include a line resembling the following to your theme file: ```json "placeholderText": "#c00" ```
yindo added the pull-request label 2026-02-16 18:16:03 -05:00
yindo closed this issue 2026-02-16 18:16:03 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11257