Interactive/pkg/views/src/main.ts

51 lines
1.0 KiB
TypeScript
Raw Normal View History

2024-03-02 12:01:59 +00:00
import "virtual:uno.css";
2024-03-02 04:29:16 +00:00
2024-03-02 12:01:59 +00:00
import "./assets/utils.css";
2024-03-02 04:29:16 +00:00
2024-03-02 12:01:59 +00:00
import { createApp } from "vue";
import { createPinia } from "pinia";
2024-03-02 04:29:16 +00:00
2024-03-02 12:01:59 +00:00
import "vuetify/styles";
import { createVuetify } from "vuetify";
import { md3 } from "vuetify/blueprints";
import * as components from "vuetify/components";
import * as directives from "vuetify/directives";
2024-03-02 04:29:16 +00:00
2024-03-02 12:01:59 +00:00
import "@mdi/font/css/materialdesignicons.min.css";
import "@fontsource/roboto/latin.css";
import "@unocss/reset/tailwind.css";
2024-03-02 04:29:16 +00:00
2024-03-02 12:01:59 +00:00
import index from "./index.vue";
import router from "./router";
const app = createApp(index);
2024-03-02 04:29:16 +00:00
app.use(
createVuetify({
components,
directives,
2024-03-02 12:01:59 +00:00
blueprint: md3,
2024-03-02 04:29:16 +00:00
theme: {
2024-03-02 12:01:59 +00:00
defaultTheme: "original",
2024-03-02 04:29:16 +00:00
themes: {
2024-03-02 12:01:59 +00:00
original: {
colors: {
primary: "#4a5099",
secondary: "#2196f3",
accent: "#009688",
error: "#f44336",
warning: "#ff9800",
info: "#03a9f4",
success: "#4caf50"
}
2024-03-02 04:29:16 +00:00
}
}
}
})
2024-03-02 12:01:59 +00:00
);
2024-03-02 04:29:16 +00:00
2024-03-02 12:01:59 +00:00
app.use(createPinia());
app.use(router);
2024-03-02 04:29:16 +00:00
2024-03-02 12:01:59 +00:00
app.mount("#app");