feat: add dark mode
This commit is contained in:
34
app.vue
34
app.vue
@@ -1,7 +1,31 @@
|
||||
<template>
|
||||
<div>
|
||||
<NuxtLayout>
|
||||
<NuxtPage />
|
||||
</NuxtLayout>
|
||||
</div>
|
||||
<NuxtLayout>
|
||||
<NuxtPage />
|
||||
</NuxtLayout>
|
||||
</template>
|
||||
|
||||
<style>
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
/* for that cool wave dark mode effect */
|
||||
z-index: 1;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
html,
|
||||
body,
|
||||
div#__nuxt {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
:root {
|
||||
--text-color: #243746;
|
||||
--bg: #f1e7d0;
|
||||
}
|
||||
|
||||
.dark {
|
||||
--text-color: #ebf4f1;
|
||||
--bg: #091a28;
|
||||
}
|
||||
</style>
|
||||
|
Reference in New Issue
Block a user