gancio-upstream/vuetify.options.js

24 lines
795 B
JavaScript
Raw Normal View History

const minifyTheme = require('minify-css-string').default
2025-01-13 11:09:01 +01:00
import { be, ca, cs, de, en, es, eu, fi, fr, gl, it, nb, nl, pl, pt, tr, sk, sv, ro, ru, zhHans } from 'vuetify/es5/locale'
export default ({ res, nuxtState }) => {
2023-09-25 22:45:34 +02:00
const settings = process.server ? (res.locals.settings || {}) : nuxtState.state.settings || {}
const is_dark = nuxtState?.state?.localSettings['theme.is_dark'] ?? settings['theme.is_dark']
return {
2025-01-13 11:09:01 +01:00
lang: { locales: { be, ca, cs, de, en, es, eu, fi, fr, gl, it, nb, nl, pl, pt, sk, sv, tr, ro, ru, zhHans } },
theme: {
options: {
customProperties: false,
variations: false,
minifyTheme,
},
dark: is_dark,
themes: {
2023-03-24 16:03:08 +01:00
dark: settings.dark_colors,
light: settings.light_colors
}
},
}
}