Closed unional closed 1 year ago
The following causes error: DOMException: Failed to execute 'add' on 'DOMTokenList': The token provided ('host-dark app-dark') contains HTML space characters, which are not valid in tokens.
DOMException: Failed to execute 'add' on 'DOMTokenList': The token provided ('host-dark app-dark') contains HTML space characters, which are not valid in tokens.
darkMode: { current: 'host-dark app-dark', // initial mode darkClass: 'host-dark app-dark', stylePreview: true }
We need this because we are working on MFE and each MFE using a different tailwind prefix (app1, app2, etc).
app1
app2
If you want to make a PR to fix I'd be happy to merge
It's actually support now that we can do darkClass: ['host-dark', app-dark']
darkClass: ['host-dark', app-dark']
The following causes error:
DOMException: Failed to execute 'add' on 'DOMTokenList': The token provided ('host-dark app-dark') contains HTML space characters, which are not valid in tokens.
We need this because we are working on MFE and each MFE using a different tailwind prefix (
app1
,app2
, etc).