feat(layouts): 添加侧边栏/头部的反转模式来增加对比度

This commit is contained in:
元家怿
2022-04-27 16:39:20 +08:00
committed by Soybean
parent a782461453
commit 861c8b9852
15 changed files with 56 additions and 13 deletions

View File

@ -1,10 +1,18 @@
<template>
<div
class="bg-white text-[#333639] dark:bg-[#18181c] dark:text-white dark:text-opacity-82 transition-all duration-300 ease-in-out"
class="dark:(bg-[#18181c] text-white text-opacity-82) transition-all duration-300 ease-in-out"
:class="inverted ? 'bg-[#001428] text-white' : 'bg-white text-[#333639]'"
>
<slot></slot>
</div>
</template>
<script setup lang="ts"></script>
<script setup lang="ts">
interface Props {
inverted?: boolean;
}
withDefaults(defineProps<Props>(), {
inverted: false
});
</script>
<style scoped></style>