-
Notifications
You must be signed in to change notification settings - Fork 357
/
Copy pathvuestic-config.ts
87 lines (81 loc) · 2.29 KB
/
vuestic-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
import { defineVuesticConfig } from 'vuestic-ui'
import { icons } from './icons-config/icons-config'
import GithubSvgIcon from './GithubSvgIcon.vue'
import { markRaw } from 'vue'
const scrollWrapperSelector = '.docs-layout__main-content'
const VaButtonLandingHeader = {
color: 'textInverted',
plain: true,
'hover-behavior': 'mask',
'hover-mask-color': 'textPrimary',
'hover-opacity': '1',
}
export const VuesticConfig = defineVuesticConfig({
icons,
components: {
VaParallax: {
target: scrollWrapperSelector,
},
VaDropdown: {
target: scrollWrapperSelector,
teleport: 'body',
},
VaBacktop: {
target: scrollWrapperSelector,
},
presets: {
VaButton: {
addToCart: { round: true, color: 'success', icon: 'shopping_cart', 'slot:default': 'Add to card' },
promotion: { gradient: true, color: 'primary' },
deleteFromCart: { size: 'small', plain: true },
landingHeader: VaButtonLandingHeader,
github: {
'slot:prepend': markRaw(GithubSvgIcon),
'slot:default': 'View on GitHub',
color: '#000000',
style: 'fill: currentColor',
class: 'va-button--github',
}
},
VaButtonDropdown: {
landingHeader: VaButtonLandingHeader,
},
},
},
colors: {
presets: {
light: {
secondary: '#666E75',
backgroundPrimary: '#FFFFFF',
backgroundLanding: '#f4f9fc',
backgroundLandingBorder: 'rgba(155, 179, 206, 0.8)',
},
dark: {
// TODO: Check color contrast: current primary is bad
// primary: '#5389F3',
secondary: '#818992',
backgroundLanding: '#070d14',
backgroundLandingBorder: 'rgba(43, 49, 56, 0.8)',
},
landing: {
primary: '#1827A7',
secondary: '#767C88',
success: '#3D9209',
info: '#158DE3',
danger: '#E42222',
warning: '#FFD43A',
// Background Colors
backgroundPrimary: '#f6f6f6',
backgroundSecondary: '#FFFFFF',
backgroundElement: '#ECF0F1',
backgroundBorder: '#DEE5F2',
// Text Colors
textPrimary: '#262824',
textInverted: '#FFFFFF',
// Misc
shadow: 'rgba(0, 0, 0, 0.12)',
focus: '#49A8FF',
},
},
},
})