Skip to content

Commit d51c93a

Browse files
committed
vuetifyのpluginを追加
1 parent aad94ae commit d51c93a

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

src/plugins/vuetify.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import Vue from 'vue'
2+
import Vuetify from 'vuetify'
3+
import colors from 'vuetify/es5/util/colors'
4+
5+
Vue.use(Vuetify)
6+
7+
// @ts-ignore
8+
export default (ctx) => {
9+
const vuetify = new Vuetify({
10+
theme: {
11+
dark: false,
12+
themes: {
13+
dark: {
14+
primary: colors.blue.darken2,
15+
accent: colors.grey.darken3,
16+
secondary: colors.amber.darken3,
17+
info: colors.teal.lighten1,
18+
warning: colors.amber.base,
19+
error: colors.deepOrange.accent4,
20+
success: colors.green.accent3,
21+
},
22+
},
23+
},
24+
})
25+
26+
ctx.app.vuetify = vuetify
27+
ctx.$vuetify = vuetify.framework
28+
}

0 commit comments

Comments
 (0)