API
The primary tw-themes API is promoted through a TwThemes
object (returned from initTwThemes()).
Here is a summary of the complete tw-themes API:
initTwThemes(schema, themes, [initialThemeName], [initialInvertShade]): TwThemesSchemaThemesTwColorsTwThemes:- change the active theme at run-time:
- miscellaneous API in support of the app's theme selection UI control:
- auto configure the tailwind context colors in
tailwind.config.js(part of the build process):