mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-22 01:11:40 +00:00
[PhotonClient] Vite and Typescript complete refactor (#884)
This commit is contained in:
45
photon-client/src/plugins/vuetify.ts
Normal file
45
photon-client/src/plugins/vuetify.ts
Normal file
@@ -0,0 +1,45 @@
|
||||
import Vue from "vue";
|
||||
import Vuetify from "vuetify";
|
||||
import "vuetify/dist/vuetify.min.css";
|
||||
import "@mdi/font/css/materialdesignicons.css";
|
||||
import type { VuetifyThemeVariant } from "vuetify/types/services/theme";
|
||||
|
||||
Vue.use(Vuetify);
|
||||
|
||||
const darkTheme: VuetifyThemeVariant = Object.freeze({
|
||||
primary: "#006492",
|
||||
secondary: "#39A4D5",
|
||||
accent: "#FFD843",
|
||||
background: "#232C37",
|
||||
error: "#FF5252",
|
||||
info: "#2196F3",
|
||||
success: "#4CAF50",
|
||||
warning: "#FFC107"
|
||||
});
|
||||
|
||||
const lightTheme: VuetifyThemeVariant = Object.freeze({
|
||||
primary: "#006492",
|
||||
secondary: "#39A4D5",
|
||||
accent: "#FFD843",
|
||||
background: "#232C37",
|
||||
error: "#FF5252",
|
||||
info: "#2196F3",
|
||||
success: "#4CAF50",
|
||||
warning: "#FFC107"
|
||||
|
||||
});
|
||||
|
||||
export default new Vuetify({
|
||||
theme: {
|
||||
themes: {
|
||||
light: lightTheme,
|
||||
dark: darkTheme
|
||||
}
|
||||
},
|
||||
breakpoint: {
|
||||
thresholds: {
|
||||
md: 1460,
|
||||
lg: 2000
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user