We would like to remove support for the themeStyles feature in CodexModule, since it's duplicative of the manifest selection code in CodexModule. Right now, adding a new theme requires adding it in two places: in CodexModule's manifest selection code (which powers modules that use code splitting), and in the themeStyles property of the module definitions of things that still use it (the full-library @wikimedia/codex module, and VueTest). Removing themeStyles would centralize the theme selection in one place (CodexModule::getManifestFile()).
In order to remove themeStyles, we first need to migrate all uses of it.
- Remove themeStyles use in codex-search-styles (T350058)
- Migrate themeStyles use in codex-styles (T355840)
- T355841: Remove use of themeStyles in VueTest
- Remove support for themeStyles in CodexModule