Skip to content

Feature: Sync injected UI theme (light/dark) with popup setting #13

@dineshsutihar

Description

@dineshsutihar

Is your feature request related to a problem?
The extension popup has a light/dark mode toggle, but the injected UI with the translated code always uses a default theme. This creates a visual inconsistency for users who prefer a dark theme.

Describe the solution you'd like
The injected UI's Shadow DOM should check the theme preference stored in chrome.storage.sync. Based on the saved theme ('light' or 'dark'), a class should be applied to the UI container to match the user's chosen theme.

Additional context
This will involve reading the theme from storage in content.js and adding CSS variables or classes within the componentStyles string in the ui.js module to handle the different color schemes.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthelp wantedExtra attention is neededuiImproves and fix ui

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions