-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
95 lines (94 loc) · 2.51 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
/** @type {import('tailwindcss').Config} */
const plugin = require('tailwindcss/plugin');
export default {
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
theme: {
container: {
center: true,
padding: {
DEFAULT: '1rem',
sm: '1rem',
lg: '1rem',
xl: '2.5rem',
'2xl': '3rem',
},
},
extend: {
animation: {
'slide-in': 'slideIn 2s ease-out forwards',
'sweep-to-bottom': 'sweepToBottom 1.2s ease-in forwards infinite',
'sweep-to-right': 'sweepToRight 1.2s ease-out forwards',
'slide-up': 'slideUp 1s ease-in-out forwards',
},
keyframes: {
slideIn: {
'0%': { transform: 'translateX(20%)', opacity: 0 },
'100%': { transform: 'translateX(0)', opacity: 1 },
},
sweepToBottom: {
'0%': { top: '20%', opacity: 0 },
'100%': { top: '70%', opacity: 1 },
},
sweepToRight: {
'0%': { width: '0%' },
'100%': { width: '100%' },
},
slideUp: {
'0%': { opacity: 0, transform: 'translateY(20%)' },
'100%': { opacity: 1, transform: 'translateY(0)' },
},
},
colors: {
facebookColor: '#395196',
youtubeColor: '#d40c18',
primaryColor: '#EB0A1E',
mainTitleColor: '#1A1A1A',
subTitleColor: '#101010',
subInformationColor: '#3A3A3A',
electrification_1: '#F5F5F5',
bodyBgColor: '#4379EE',
},
fontSize: {
mainTitle: [
'2.375rem',
{
lineHeight: '2.85rem',
fontWeight: '700',
},
],
},
borderWidth: {
tabAction: '4px',
tabNavigate: '1px',
},
borderColor: {
tabAction: '#EB0A1E',
tabNavigate: '#3A3A3A',
},
margin: {
sectionMargin_1: '120px',
sectionMargin_2: '60px',
},
},
fontFamily: {
sans: [
'system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',
{
fontFeatureSettings: '"cv11", "ss01"',
fontVariationSettings: '"opsz" 32',
},
],
},
},
plugins: [
plugin(function ({ addUtilities }) {
const newUtilities = {
'.clip-polygon-custom': {
'clip-path':
'polygon(85% 0, 100% 50%, 85% 100%, 8% 100%, 23% 50%, 8% 0)',
},
};
addUtilities(newUtilities, ['responsive', 'hover']);
}),
],
};