Repository navigation
Feat: Custom Theme Support - #5692
Open
Carlosyoot wants to merge 8 commits into
Open
Carlosyoot wants to merge 8 commits into
Carlosyoot wants to merge 8 commits into
Conversation
…fresh - Added automatic refresh after adding or deleting a theme - Improved delete button behavior and validation - Simplified display logic for custom themes
- Integrated validateThemeShape() before applying custom themes - Added refreshThemeList() to update UI after add/delete - Improved theme switching between system, light, dark, and custom
- Reverted to original light theme palette - Added new codemirror.syntax block with hardcoded default colors - Documented new fields for maintainability
- Introduced codemirror.syntax block with property/string/number/boolean colors - Matched Monokai defaults for consistent dark theme appearance
- Added recursive validation to ensure custom themes follow base structure - Returns descriptive error messages for missing or invalid keys - Prevents app crashes when applying incomplete themes
…acket - Applied property/string/number/boolean colors dynamically - Added fallback for legacy hardcoded colors - Improved matching bracket highlight style
…acket - Applied property/string/number/boolean colors dynamically - Added fallback for legacy hardcoded colors - Improved matching bracket highlight style in both CodeEditor and QueryEditor
Carlosyoot
requested review from
bijin-bruno,
helloanoop,
lohit-bruno and
naman-bruno
as code owners
October 2, 2025 19:40
4 of 6 tasks
This branch has not been deployed
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.
Feat: Custom Theme Support with Validation & Syntax Colors
Description
This Pull Request introduces Custom Theme Support to Bruno, adding theme validation, syntax color improvements, and enhanced CodeMirror integration.
The goal is to give users greater flexibility in personalizing their UI while ensuring all custom themes follow a safe and predictable structure.
Main Changes
Theme Preferences UI
Theme Provider
validateThemeShape()to validate custom theme objects before applying them.Light & Dark Themes
codemirror.syntaxcolors to both Light and Dark themes:property,string,number,booleanCodeMirror Styling
Validation Utility
utils/validateThemes/validateThemeShape.jsScreenshots / Demos
Before / After importing a custom theme:
Result after applying the custom theme:
Example Custom Theme JSON
You can preview the theme structure below or download it directly:
📄 Download themeCustom.json
{ "name": "RememberPostman", "brand": "#546de5", "text": "rgb(52, 52, 52)", "textLink": "#1663bb", "bg": "#fff", "codemirror": { "bg": "#fff", "border": "#efefef", "syntax": { "property": "#d83e18ff", "string": "#2c67d4ff", "number": "#0d7527ff", "boolean": "#0849aaff" } } }