-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.vue
85 lines (74 loc) · 1.36 KB
/
app.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<script setup lang="ts">
import { useDark } from '@vueuse/core'
import { ConfigProvider } from 'radix-vue'
import { Analytics } from '@vercel/analytics/nuxt'
const useIdFunction = () => useId()
useHead({
titleTemplate: '%s - Tool Box',
script: [
`(function () {
const prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches
const setting = localStorage.getItem('color-schema') || 'auto'
if (setting === 'dark' || (prefersDark && setting !== 'light'))
document.documentElement.classList.toggle('dark', true)
})()`,
],
})
useDark()
preloadComponents(['header', 'nav-list-item'])
</script>
<template>
<ConfigProvider :use-id="useIdFunction">
<Analytics />
<Toaster />
<NuxtLoadingIndicator />
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</ConfigProvider>
</template>
<style>
@import url('./assets/css/tailwind.css');
body {
font-family: 'Roboto', sans-serif;
}
/* CSS Reset */
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Roboto', sans-serif;
line-height: 1.5;
}
/* Additional reset rules */
html {
font-size: 16px;
}
img,
picture,
video,
canvas,
svg {
display: block;
max-width: 100%;
}
input,
button,
textarea,
select {
font: inherit;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
overflow-wrap: break-word;
}
</style>