-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvuetify.options.js
More file actions
23 lines (21 loc) · 865 Bytes
/
vuetify.options.js
File metadata and controls
23 lines (21 loc) · 865 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { be, ca, cs, da, de, en, es, eu, fi, fr, gl, ja, hr, it, lv, nb, nl, pl, pt, tr, sl, sk, sv, srLatn, srCyrl, ro, ru, zhHans } from 'vuetify/es5/locale'
const minifyTheme = require('minify-css-string').default
export default ({ res, nuxtState }) => {
const settings = process.server ? (res.locals.settings || {}) : nuxtState.state.settings || {}
const is_dark = nuxtState?.state?.localSettings['theme.is_dark'] ?? settings['theme.is_dark']
return {
lang: { locales: { be, ca, cs, de, da, en, es, eu, fi, ja, fr, gl, hr, it, lv, nb, nl, pl, pt, sl, sk, srLatn, srCyrl, sv, tr, ro, ru, zhHans } },
theme: {
options: {
customProperties: false,
variations: false,
minifyTheme
},
dark: is_dark,
themes: {
dark: settings.dark_colors,
light: settings.light_colors
}
},
}
}