-
Notifications
You must be signed in to change notification settings - Fork 7
/
vuetify.config.ts
127 lines (115 loc) · 2.93 KB
/
vuetify.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
// import { md3 } from 'vuetify/blueprints'
import { defineVuetifyConfiguration } from 'vuetify-nuxt-module/custom-configuration'
import { lightTheme, darkTheme } from './app/utils/theme'
// https://nuxt.vuetifyjs.com/guide/
export default defineVuetifyConfiguration({
// blueprint: md3,
theme: {
defaultTheme: 'light',
themes: {
light: lightTheme,
dark: darkTheme,
},
},
ssr: {
clientWidth: 100,
// clientHeight: 100,
},
directives: true, // can take an array as well
// Global components
components: [
// 'VDialog',
// 'VExpansionPanel',
// 'VExpansionPanelText',
// 'VExpansionPanelTitle',
],
labComponents: true,
// labComponents: [
// 'VDataTable',
// 'VDatePickerControls',
// 'VDatePickerHeader',
// ],
aliases: {
VBtnSquare: 'VBtn', // VBtn is automatically added as a global component
VIconBtn: 'VBtn',
},
defaults: {
global: {
ripple: false,
},
VBtn: {
color: 'primary',
variant: 'flat',
style:
'letter-spacing:.0178571429em; text-transform:none !important; border-radius:9999px !important',
class: '',
},
VBtnSquare: {
color: 'primary',
variant: 'flat',
minHeight: '40px',
style:
'padding-left:12px; padding-right:12px; font-size: 0.875rem !important;line-height: 1.25rem !important;font-weight: 500 !important;line-height: 1.25rem;letter-spacing: .0178571429em !important; text-transform:none !important; border-radius:0.5rem !important;',
class: '',
},
VIconBtn: {
color: 'primary',
variant: 'flat',
minHeight: '40px',
style:
'padding-left:12px; padding-right:12px; font-size: 0.875rem !important;line-height: 1.25rem !important;font-weight: 500 !important;line-height: 1.25rem;letter-spacing: .0178571429em !important; text-transform:none !important; border-radius:0.5rem !important;width: inherit;height: inherit;',
class: '',
},
VTextField: {
color: 'primary',
variant: 'outlined',
density: 'compact',
},
},
display: {
mobileBreakpoint: 'xs',
// thresholds: {
// xs: 0,
// sm: 600,
// md: 960,
// lg: 1280,
// xl: 1920,
// xxl: 2560,
// },
// Using Tailwind ones here
thresholds: {
xs: 0,
sm: 640,
md: 768,
lg: 1024,
xl: 1280,
xxl: 1536,
},
},
date: {
// adapter: 'vuetify', // 'vuetify' | 'date-fns' | 'moment' | 'luxon' | 'dayjs' | 'js-joda' | 'date-fns-jalali' | 'jalaali' | 'hijri' | 'custom'
},
icons: {
defaultSet: 'unocss-mdi',
},
/* locale: {
messages: {
en: {
hello: 'Hi',
question: {
one: 'One',
two: 'Two',
},
},
es: {
hello: 'Hola',
question: {
one: 'Uno',
two: 'Dos',
three: 'Tres',
},
},
},
},
localeMessages: ['en', 'es', 'ar'], */
})