Skip to content

feat: update primary colors in schema - #6552

Merged
helloanoop merged 1 commit into
mainfrom
feat/update-primary-colors
Dec 30, 2025
Merged

helloanoop merged 1 commit into
mainfrom
feat/update-primary-colors

Conversation

@helloanoop

@helloanoop helloanoop commented Dec 30, 2025 •

Copy link
Copy Markdown
Contributor

update primary colors in schema

Summary by CodeRabbit

  • New Features
    • Added primary color configuration to all available themes, including Catppuccin (Frappé, Macchiato, Mocha, Latte), dark/light monochrome and pastel variants, Nord, and VS Code themes. The new configuration includes solid, text, strong, and subtle color variants for enhanced theme customization.

✏️ Tip: You can customize this high-level summary in your review settings.

Copilot AI review requested due to automatic review settings December 30, 2025 01:50
@helloanoop
helloanoop merged commit 2b28d37 into main Dec 30, 2025
@coderabbitai

coderabbitai Bot commented Dec 30, 2025 •

Copy link
Copy Markdown
Contributor

Caution

Review failed

The pull request is closed.

Walkthrough

This PR adds a new primary color property to all theme configurations across the application (both dark and light themes) and updates the theme schema to include this as a required property. Each primary property contains solid, text, strong, and subtle color fields.

Changes

Cohort / File(s) Summary
Dark Catppuccin Themes
packages/bruno-app/src/themes/dark/catppuccin-frappe.js, catppuccin-macchiato.js, catppuccin-mocha.js
Added primary property with all four fields (solid, text, strong, subtle) set to colors.MAUVE
Dark Monochrome & Pastel Themes
packages/bruno-app/src/themes/dark/dark-monochrome.js, dark-pastel.js, nord.js
Added primary property with all four fields set to colors.BRAND
Dark VSCode Theme
packages/bruno-app/src/themes/dark/vscode.js
Added primary property with mixed values: solid/text from color constants, strong/subtle as hex literals (#0098ff, #005a9e)
Light Catppuccin Theme
packages/bruno-app/src/themes/light/catppuccin-latte.js
Added primary property with all four fields set to colors.MAUVE
Light Monochrome & Pastel Themes
packages/bruno-app/src/themes/light/light-monochrome.js, light-pastel.js
Added primary property with all four fields set to colors.BRAND
Light VSCode Theme
packages/bruno-app/src/themes/light/vscode.js
Added primary property with mixed values: solid/text from color constants, strong/subtle as hex literals
Theme Schema
packages/bruno-app/src/themes/schema/oss.js
Added primary object definition with required string fields (solid, text, strong, subtle); updated required array to include primary

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

  • usebruno/bruno#6551: Parallel PR applying the same primary color property additions across all theme files and schema updates.

Suggested labels

size/XXL

Suggested reviewers

  • bijin-bruno
  • lohit-bruno
  • naman-bruno

Poem

🎨 A splash of primary paint,
Across each theme, without constraint,
From Catppuccin's mauve so fine,
To Nord and VSCode in design,
The schema bows to colors bright,
Making themes more unified—what a sight! ✨

✨ Finishing touches
  • 📝 Generate docstrings

📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6afbaa0 and 7675c1a.

📒 Files selected for processing (12)
  • packages/bruno-app/src/themes/dark/catppuccin-frappe.js
  • packages/bruno-app/src/themes/dark/catppuccin-macchiato.js
  • packages/bruno-app/src/themes/dark/catppuccin-mocha.js
  • packages/bruno-app/src/themes/dark/dark-monochrome.js
  • packages/bruno-app/src/themes/dark/dark-pastel.js
  • packages/bruno-app/src/themes/dark/nord.js
  • packages/bruno-app/src/themes/dark/vscode.js
  • packages/bruno-app/src/themes/light/catppuccin-latte.js
  • packages/bruno-app/src/themes/light/light-monochrome.js
  • packages/bruno-app/src/themes/light/light-pastel.js
  • packages/bruno-app/src/themes/light/vscode.js
  • packages/bruno-app/src/themes/schema/oss.js

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copilot AI left a comment

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.

Pull request overview

This PR introduces a new primary color object structure to the theme schema and implements it across all theme files. The primary object provides granular color specifications for different UI element states (solid, text, strong, subtle) to improve theming consistency and flexibility.

  • Added primary object definition to the OSS schema with four required properties (solid, text, strong, subtle)
  • Updated the schema's required fields array to include 'primary'
  • Implemented the primary color structure in all 11 theme configuration files

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
packages/bruno-app/src/themes/schema/oss.js Defines the new primary color object structure in the schema and adds it to required fields
packages/bruno-app/src/themes/light/vscode.js Implements primary colors with distinct values for each property
packages/bruno-app/src/themes/light/light-pastel.js Implements primary colors using brand color for all properties
packages/bruno-app/src/themes/light/light-monochrome.js Implements primary colors using brand color for all properties
packages/bruno-app/src/themes/light/catppuccin-latte.js Implements primary colors using mauve for all properties
packages/bruno-app/src/themes/dark/vscode.js Implements primary colors with distinct values for each property
packages/bruno-app/src/themes/dark/nord.js Implements primary colors using brand color for all properties
packages/bruno-app/src/themes/dark/dark-pastel.js Implements primary colors using brand color for all properties
packages/bruno-app/src/themes/dark/dark-monochrome.js Implements primary colors using brand color for all properties
packages/bruno-app/src/themes/dark/catppuccin-mocha.js Implements primary colors using mauve for all properties
packages/bruno-app/src/themes/dark/catppuccin-macchiato.js Implements primary colors using mauve for all properties
packages/bruno-app/src/themes/dark/catppuccin-frappe.js Implements primary colors using mauve for all properties

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


primary: {
solid: colors.BRAND,
text: colors.BRAND,

Copilot AI Dec 30, 2025

Copy link

Choose a reason for hiding this comment

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

The primary.text property should likely use colors.TEXT_LINK instead of colors.BRAND to align with the schema description "Links, emphasized text" and match the textLink property defined above. The VSCode theme implementations use this pattern consistently.

Suggested change
text: colors.BRAND,
text: colors.TEXT_LINK,

Copilot uses AI. Check for mistakes.

primary: {
solid: colors.MAUVE,
text: colors.MAUVE,

Copilot AI Dec 30, 2025

Copy link

Choose a reason for hiding this comment

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

The primary.text property should likely use colors.BLUE instead of colors.MAUVE to align with the schema description "Links, emphasized text" and match the textLink property defined above. The VSCode theme implementations use this pattern consistently.

Suggested change
text: colors.MAUVE,
text: colors.BLUE,

Copilot uses AI. Check for mistakes.

primary: {
solid: colors.BRAND,
text: colors.BRAND,

Copilot AI Dec 30, 2025

Copy link

Choose a reason for hiding this comment

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

The primary.text property should likely use colors.TEXT_LINK instead of colors.BRAND to align with the schema description "Links, emphasized text" and match the textLink property defined above. The VSCode theme implementations use this pattern consistently.

Suggested change
text: colors.BRAND,
text: colors.TEXT_LINK,

Copilot uses AI. Check for mistakes.

primary: {
solid: colors.BRAND,
text: colors.BRAND,

Copilot AI Dec 30, 2025

Copy link

Choose a reason for hiding this comment

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

The primary.text property should likely use colors.TEXT_LINK instead of colors.BRAND to align with the schema description "Links, emphasized text" and match the textLink property defined above. The VSCode theme implementations use this pattern consistently.

Suggested change
text: colors.BRAND,
text: colors.TEXT_LINK,

Copilot uses AI. Check for mistakes.

primary: {
solid: colors.MAUVE,
text: colors.MAUVE,

Copilot AI Dec 30, 2025

Copy link

Choose a reason for hiding this comment

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

The primary.text property should likely use colors.BLUE instead of colors.MAUVE to align with the schema description "Links, emphasized text" and match the textLink property defined above. The VSCode theme implementations use this pattern consistently.

Suggested change
text: colors.MAUVE,
text: colors.BLUE,

Copilot uses AI. Check for mistakes.

primary: {
solid: colors.MAUVE,
text: colors.MAUVE,

Copilot AI Dec 30, 2025

Copy link

Choose a reason for hiding this comment

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

The primary.text property should likely use colors.BLUE instead of colors.MAUVE to align with the schema description "Links, emphasized text" and match the textLink property defined above. The VSCode theme implementations use this pattern consistently.

Suggested change
text: colors.MAUVE,
text: colors.BLUE,

Copilot uses AI. Check for mistakes.

primary: {
solid: colors.MAUVE,
text: colors.MAUVE,

Copilot AI Dec 30, 2025

Copy link

Choose a reason for hiding this comment

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

The primary.text property should likely use colors.BLUE instead of colors.MAUVE to align with the schema description "Links, emphasized text" and match the textLink property defined above. The VSCode theme implementations use this pattern consistently.

Suggested change
text: colors.MAUVE,
text: colors.BLUE,

Copilot uses AI. Check for mistakes.

primary: {
solid: colors.BRAND,
text: colors.BRAND,

Copilot AI Dec 30, 2025

Copy link

Choose a reason for hiding this comment

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

The primary.text property should likely use colors.TEXT_LINK instead of colors.BRAND to align with the schema description "Links, emphasized text" and match the textLink property defined above. The VSCode theme implementations use this pattern consistently.

Suggested change
text: colors.BRAND,
text: colors.TEXT_LINK,

Copilot uses AI. Check for mistakes.
@coderabbitai coderabbitai Bot mentioned this pull request Jan 9, 2026
4 of 6 tasks
maxenceleblanc pushed a commit to maxenceleblanc/curly_cats2 that referenced this pull request Jul 20, 2026
…lors

feat: update primary colors in schema
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants