feat: add dark mode

This commit is contained in:
kailong321200875
2022-05-10 21:05:07 +08:00
parent a76858c13f
commit 0758a6a9d8
10 changed files with 150 additions and 71 deletions

View File

@@ -22,7 +22,7 @@ const getCaches = computed((): string[] => {
<template>
<section
:class="[
'p-[var(--app-content-padding)] w-[100%] bg-[var(--app-contnet-bg-color)]',
'p-[var(--app-content-padding)] w-[100%] bg-[var(--app-contnet-bg-color)] dark:bg-[var(--el-bg-color)]',
{
'!min-h-[calc(100%-var(--app-footer-height))]':
fixedHeader && (layout === 'classic' || layout === 'topLeft') && footer,