Force dark or light color scheme
On the ADR 0006 we discuted a way to force color scheme (dark
or light
) to ensure widget color scheme outside of django-admin
. The two cases bellow is tested using UI regression tests. This is the same way that we implemented on default widget and this is documented here.
Light theme
To enforce light widget, use .iuw-light
class:
Dark theme
To enforce dark widget, use .iuw-dark
class: