feat: Add support for dark mode in dashboard (#7460)

- Add config for TailwindCSS
- Enable HMR
- Add a config in LocalStorage for Dark Mode

Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
Sivin Varghese
2023-07-06 00:43:32 +05:30
committed by GitHub
parent 71837bedf9
commit 3054a4cb59
64 changed files with 390 additions and 854 deletions

View File

@@ -121,8 +121,7 @@ export default {
.top-box {
display: flex;
justify-content: space-between;
background: var(--b-50);
@apply bg-black-50 dark:bg-slate-800;
}
.button-group {
@@ -145,11 +144,11 @@ export default {
.button--reply {
border-radius: 0;
border-right: 1px solid var(--color-border);
@apply border-r border-slate-50 dark:border-slate-700;
&:hover,
&:focus {
border-right: 1px solid var(--color-border);
@apply border-r border-slate-50 dark:border-slate-700;
}
}
@@ -157,7 +156,7 @@ export default {
border-radius: 0;
&.is-active {
border-right: 1px solid var(--color-border);
@apply border-r border-slate-50 dark:border-slate-700;
background: var(--y-50);
}