-
Notifications
You must be signed in to change notification settings - Fork 203
Open
Description
Bugbot flagged this in mito-ai/src/Extensions/MitoThemes/index.ts:
The
MitoPalettesclass contains two methods (setColorsLightandsetColorsDark) that are structurally identical, each with ~110 lines of repetitivedocument.documentElement.style.setProperty()calls. This duplicates the list of CSS variable names across both methods, making maintenance error-prone. A data-driven approach using a theme configuration object with variable names as keys and light/dark values would reduce duplication, make it easier to add new variables, and ensure both themes stay in sync.
Reactions are currently unavailable