Change body's background depending on theme
MODIFY
resources/assets/sass/app.scss
resources/assets/sass/app.scss
@import 'components/helpers';
body {
+ &.theme-light {
background: $colors-background;
}
+ &.theme-dark {
+ background: #202225;
+ }
+}
+
canvas {
width: 100%;
}

MODIFY
resources/views/layout.blade.php
resources/views/layout.blade.php
}
</style>
</head>
- <body>
+ <body class="theme-{{ Auth::check() ? Auth::user()->theme : '' }}">
<div id="app">
@if (Auth::check())
<div class="navigation">

Change body's background depending on theme