Closed Powerplex closed 1 year ago
PolarisThemeSelector
PolarisThemeProvider
useTheme
setTheme(myTheme)
Test link: https://spark-theme-switched.next.ariane.leboncoin.ci/
=> Check the button to the bottom right of the screen.
Topic took by a global taskforce which will manage all the i18n and not only DesignSystem
PolarisThemeSelector
on Polaris, only visible in local and test envs, to easility switch between brands themes.PolarisThemeProvider
and itsuseTheme
hook, which allows developers to switch the global theme of the app by callingsetTheme(myTheme)
Test link: https://spark-theme-switched.next.ariane.leboncoin.ci/
=> Check the button to the bottom right of the screen.