Skip to content

Switch to rebrand themes#5418

Open
pd-redis wants to merge 3 commits intomainfrom
fe/feature/rebranding-themes
Open

Switch to rebrand themes#5418
pd-redis wants to merge 3 commits intomainfrom
fe/feature/rebranding-themes

Conversation

@pd-redis
Copy link
Contributor

@pd-redis pd-redis commented Jan 28, 2026

What

Migrate theme imports from themesDefault to themesRebrand across both theme contexts:

  • Update themeContext.tsx to use themesRebrand for the main app
  • Update pluginsThemeContext.tsx to use themesRebrand for plugins
  • Standardize local variable naming to themes for consistent destructuring pattern
Before After
image image

Testing

  • Visual changes may be present depending on differences between themesDefault and themesRebrand
  • Manual verification:
    1. Start the app with yarn dev:desktop
    2. Verify light/dark theme switching works correctly
    3. Check that UI colors and styling match the rebranded theme
    4. Open a plugin (if available) and verify the rebranded theme is applied correctly
    5. Confirm no console errors related to theming

Note

Switches theming to the rebranded set and centralizes theme imports.

  • Introduces uiSrc/styles/theme to re-export CommonStyles and themesRebrand as themeLight/themeDark, and to host one-time CSS imports
  • Updates themeContext.tsx and pluginsThemeContext.tsx to consume CommonStyles, themeLight, and themeDark from the new module; removes direct CSS imports
  • Deletes obsolete components/base/theme/index.ts

Written by Cursor Bugbot for commit b8f2192. This will update automatically on new commits. Configure here.

…ency

Standardize `themes` usage in `pluginsThemeContext` and `themeContext`, replacing `themesDefault` and `themesRebrand`. Streamline code readability and align import patterns.
…sage

- Introduced a new `theme.ts` file to consolidate theme-related imports and exports.
- Updated `themeContext` and `pluginsThemeContext` to utilize the centralized theme utilities, enhancing code clarity and reducing duplication.
@github-actions
Copy link
Contributor

Code Coverage - Frontend unit tests

St.
Category Percentage Covered / Total
🟢 Statements 82.86% 21170/25550
🟡 Branches 68.14% 8946/13128
🟡 Functions 78.09% 5794/7420
🟢 Lines 83.25% 20731/24902

Test suite run success

5545 tests passing in 707 suites.

Report generated by 🧪jest coverage report action from b8f2192

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant