-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.cjs
106 lines (101 loc) · 2.79 KB
/
tailwind.config.cjs
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
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'src/**/*.{astro,html,md,mdx,js,vue}',
'node_modules/**/*.{html,vue}' // required for astro project
],
plugins: [
require('@tailwindcss/typography'),
function ({ addUtilities/*, variants*/ }) {
const newUtilities = {};
newUtilities['.px-shell'] = {
paddingLeft: 'clamp(0.75rem, 0.7484rem + 2.6076vw, 2rem)',
paddingRight: 'clamp(0.75rem, 0.7484rem + 2.6076vw, 2rem)',
};
newUtilities['.px-container'] = {
maxWidth: '1536px',
margin: '0 auto',
paddingLeft: 'clamp(0.75rem, 0.7484rem + 2.6076vw, 2rem)',
paddingRight: 'clamp(0.75rem, 0.7484rem + 2.6076vw, 2rem)',
};
newUtilities['@media (min-width: 768px)'] = {
'.px-shell': {
paddingLeft: '2rem',
paddingRight: '2rem',
},
'.px-container': {
paddingLeft: '2rem',
paddingRight: '2rem',
}
};
newUtilities['@media (min-width: 1024px)'] = {
'.px-container': {
paddingLeft: 'clamp(2rem, -3.3683rem + 8.3879vw, 10rem)',
paddingRight: 'clamp(2rem, -3.3683rem + 8.3879vw, 10rem)',
}
};
addUtilities(newUtilities, ['responsive', 'hover']);
},
],
// sync with azion-platform-kit
important: true,
darkMode: 'class',
theme: {
listStyleType: {
none: 'none',
disc: 'disc',
decimal: 'decimal',
square: 'square',
roman: 'upper-roman'
},
extend: {
colors: {
header: '#171717',
'header-input': '#292929',
'header-button-enabled': '#ffffff32',
'header-button-hover': 'rgba(244, 244, 244, 0.04)',
'header-avatar': '#363636',
footer: '#1e1e1e'
},
fontFamily: {
'mono': '"Roboto Mono"',
},
borderColor: {
header: '#3e3e3e',
'header-hover': '#F3652B'
},
textColor: {
header: '#b5b5b5',
footer: '#CCCCCC'
},
transitionProperty: {
width: 'width'
},
width: {
slide: '300px'
},
animation: {
fadeIn: 'fadeIn 220ms ease-in-out',
fadeOut: 'fadeOut 220ms ease-in-out'
},
container: {
padding: {
DEFAULT: '.75rem',
sm: '2rem',
xl: '5rem',
'2xl': '10rem'
}
},
keyframes: {
fadeIn: {
'0%': { opacity: '0' },
'100%': { opacity: '1' }
},
fadeOut: {
'0%': { opacity: '1' },
'100%': { opacity: '0' }
}
}
}
}
}