This repository has been archived by the owner on Mar 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
100 lines (98 loc) · 2.23 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
const plugin = require('tailwindcss/plugin');
const colors = {
'ps-primary': '#202020',
'ps-secondary': '#303030',
'ps-green': '#26D789',
'ps-mint': '#3BBA9C',
'ps-white': '#FFFFFF',
'ps-red': '#DC143C',
transparent: 'transparent',
};
module.exports = {
future: {
removeDeprecatedGapUtilities: true,
purgeLayersByDefault: true,
},
theme: {
colors,
boxShadow: {
default: '8px 8px 16px rgba(0, 0, 0, 0.25)',
},
fontFamily: {
sans: ['"Exo 2"'],
},
extend: {
screens: {
md: '768px',
lg: '1024px',
},
spacing: {
24: '24px',
48: '48px',
54: '54px',
66: '66px',
72: '72px',
28: '7rem',
},
},
borderRadius: {
full: '50%',
lg: '0.5rem',
},
minHeight: {
screen: '100vh',
52: '52px',
},
minWidth: {
52: '52px',
48: '12rem',
},
inset: {
0: '0',
'1/2': '50%',
20: '5rem',
32: '8rem',
},
zIndex: {
100: 100,
999: 999,
},
},
variants: {},
plugins: [
plugin(({ addBase, addUtilities, config }) => {
addUtilities({
'.bg-ps-linear-gradient': { background: `linear-gradient(90deg, ${config('theme.colors.ps-green')} 11.98%, ${config('theme.colors.ps-mint')} 100%)` },
'.ps-center-absolute': {
position: 'absolute',
top: `${config('theme.inset.1/2')}`,
left: `${config('theme.inset.1/2')}`,
transform: `translate(-${config('theme.inset.1/2')}, -${config('theme.inset.1/2')})`,
},
});
addBase({
body: {
backgroundColor: config('theme.colors.ps-primary'),
overflowX: 'hidden',
},
'button:focus': {
outline: 'none',
'-webkit-tap-highlight-color': 'transparent',
},
select: {
outline: 'none',
},
'*:focus': {
outline: 'none',
},
'.handle': {
cursor: 'move',
},
});
}),
],
purge: {
enabled: process.env.NODE_ENV === 'production',
content: ['components/**/*.vue', 'components/**/*.sass', 'layouts/**/*.vue', 'pages/**/*.vue', 'plugins/**/*.ts', 'nuxt.config.ts'],
},
};