-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathtailwind.config.js
110 lines (97 loc) · 3.91 KB
/
tailwind.config.js
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
import colors from 'tailwindcss/colors'
import forms from '@tailwindcss/forms'
import typography from '@tailwindcss/typography'
import scrollbarHide from 'tailwind-scrollbar-hide'
function color(variable, fallback) {
return 'color-mix(in srgb, var(' + variable + ', ' + fallback + ') calc(100% * <alpha-value>), transparent)'
}
export default {
content: [
'./resources/views/**/*.blade.php',
'./resources/css/**/*.css',
'./resources/js/**/*.vue',
'./vendor/rapidez/**/*.blade.php',
'./vendor/rapidez/**/*.css',
'./vendor/rapidez/**/*.vue',
'./config/rapidez/frontend.php',
'./vendor/rapidez/core/config/rapidez/frontend.php',
'./config/rapidez/menu.php',
'./vendor/rapidez/menu/config/rapidez/menu.php',
'./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/tailwind.blade.php',
],
theme: {
extend: {
colors: {
primary: {
DEFAULT: color('--primary', '#2FBC85'),
text: color('--primary-text', colors.white),
},
secondary: {
DEFAULT: color('--secondary', '#202F60'),
text: color('--secondary-text', colors.white),
},
conversion: {
DEFAULT: color('--conversion', colors.green[500]),
text: color('--conversion-text', colors.white),
},
foreground: {
emphasis: color('--foreground-emphasis', colors.slate[900]),
DEFAULT: color('--foreground', colors.slate[800]),
muted: color('--foreground-muted', colors.slate[600]),
},
border: {
emphasis: color('--border-emphasis', colors.slate[400]),
DEFAULT: color('--border', colors.slate[300]),
muted: color('--border-muted', colors.slate[100]),
},
shadow: {
emphasis: color('--shadow-emphasis', colors.slate[900]),
DEFAULT: color('--shadow', colors.slate[700]),
muted: color('--shadow-muted', colors.slate[500]),
},
background: {
emphasis: color('--background-emphasis', colors.slate[200]),
DEFAULT: color('--background', colors.slate[100]),
muted: color('--background-muted', colors.slate[50]),
},
},
zIndex: {
'header': '100',
'header-autocomplete-overlay': '10',
'header-autocomplete': '20',
'header-dropdown': '30',
'header-minicart': '30',
'header-autocomplete-button': '30',
'notifications': '110',
'slideover': '120',
'slideover-overlay': '10',
'slideover-sidebar': '20',
'popup': '130',
'popup-actions': '10',
},
textColor: (theme) => theme('colors.foreground'),
borderColor: (theme) => ({
default: theme('colors.border'),
...theme('colors.border'),
}),
backgroundColor: (theme) => theme('colors.background'),
ringColor: (theme) => ({
default: theme('colors.border'),
...theme('colors.border'),
}),
outlineColor: (theme) => ({
default: theme('colors.border'),
...theme('colors.border'),
}),
boxShadowColor: (theme) => ({
default: theme('colors.shadow'),
...theme('colors.shadow'),
}),
},
container: {
center: true,
padding: '1.25rem',
},
},
plugins: [forms, typography, scrollbarHide],
}