-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.ts
66 lines (64 loc) · 1.86 KB
/
main.ts
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
import { createApp } from "vue"
import App from "./App.vue"
const app = createApp(App)
// PrimeVue
import PrimeVue from "primevue/config";
import Aura from "@primevue/themes/aura";
import "primeicons/primeicons.css"
import {definePreset} from "@primevue/themes";
const aura = definePreset(Aura, {
semantic: {
primary: {
50: "{zinc.50}",
100: "{zinc.100}",
200: "{zinc.200}",
300: "{zinc.300}",
400: "{zinc.400}",
500: "{zinc.500}",
600: "{zinc.600}",
700: "{zinc.700}",
800: "{zinc.800}",
900: "{zinc.900}",
950: "{zinc.950}"
},
colorScheme: {
light: {
primary: {
color: "{zinc.950}",
inverseColor: "#ffffff",
hoverColor: "{zinc.900}",
activeColor: "{zinc.800}"
},
highlight: {
background: "{zinc.950}",
focusBackground: "{zinc.700}",
color: "#ffffff",
focusColor: "#ffffff"
}
},
dark: {
primary: {
color: "{zinc.50}",
inverseColor: "{zinc.950}",
hoverColor: "{zinc.100}",
activeColor: "{zinc.200}"
},
highlight: {
background: "rgba(250, 250, 250, .16)",
focusBackground: "rgba(250, 250, 250, .24)",
color: "rgba(255,255,255,.87)",
focusColor: "rgba(255,255,255,.87)"
}
}
}
}
});
app.use(PrimeVue, {
theme: {
preset: aura,
options: {
darkModeSelector: ".dark-model"
}
}
});
app.mount("#app")