-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapp.vue
More file actions
38 lines (34 loc) · 889 Bytes
/
Copy pathapp.vue
File metadata and controls
38 lines (34 loc) · 889 Bytes
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
<script setup>
// Import design tokens globally
import '~/assets/styles/design-tokens.css'
const brandThemeCss = useBrandThemeCss()
</script>
<template>
<div class="app">
<!-- Inline brand-color override. Rendered into <head> via Teleport so it
sits next to the document head and its :root:root selector beats the
design-tokens.css defaults regardless of CSS load order. -->
<Teleport v-if="brandThemeCss" to="head">
<component :is="'style'" v-html="brandThemeCss" />
</Teleport>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</div>
</template>
<style>
/* Global styles - apply font family to all elements */
html,
body {
font-family: var(--font-family-sans);
color: var(--color-text-primary);
margin: 0;
padding: 0;
}
</style>
<style scoped>
.app {
min-height: 100vh;
background-color: var(--color-bg-secondary);
}
</style>