mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-23 02:48:26 +00:00
Fix tailwind setup
- Adopted postcss and tailwind config to new version - renamed colors bluegray->slate etc to not have custom definitions (hope to reduce migration next time) - tailwind now doesn't build the complete css anymore, so the `dev-ui-build` script must compile both
This commit is contained in:
@ -31,10 +31,10 @@ elmApp.ports.internalSetUiTheme.subscribe(function(themeName) {
|
||||
var bodyClasses = body[0].classList;
|
||||
// seems that body attributes cannot be set from inside Elm.
|
||||
if (themeName && themeName.toLowerCase() === 'dark') {
|
||||
bodyClasses.add("bg-bluegray-800");
|
||||
bodyClasses.add("bg-slate-800");
|
||||
bodyClasses.add("dark");
|
||||
} else {
|
||||
bodyClasses.remove("bg-bluegray-800");
|
||||
bodyClasses.remove("bg-slate-800");
|
||||
bodyClasses.remove("dark");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user