-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
75 lines (74 loc) · 1.33 KB
/
tailwind.config.js
File metadata and controls
75 lines (74 loc) · 1.33 KB
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
/** @type {import('tailwindcss').Config} */
export default {
important: '#tw',
prefix: 'at-',
corePlugins: {
preflight: false,
},
future: {
disableColorOpacityUtilitiesByDefault: true,
respectDefaultRingColorOpacity: true,
},
colorSpace: 'srgb',
content: ['./lib/**/*.{ts,tsx,js,jsx}'],
theme: {
extend: {
animation: {
pulse: 'tw-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite',
},
colors: {
primary: '#1677ff',
},
screens: {
sm: '576px', // iphone SE
md: '810px', // ipad Portrait
lg: '1080px', // ipad Landscape
xl: '1280px', // mac air
xxl: '1440px',
},
keyframes: {
'tw-pulse': {
'50%': { opacity: '0.5' },
},
},
},
},
plugins: [
function ({ addUtilities }) {
const newUtilities = {
'.right-to-left': {
direction: 'rtl',
},
// 與 WordPress 衝突的 class
'.tw-hidden': {
display: 'none',
},
'.tw-columns-1': {
columnCount: 1,
},
'.tw-columns-2': {
columnCount: 2,
},
'.tw-fixed': {
position: 'fixed',
},
'.tw-block': {
display: 'block',
},
'.tw-inline': {
display: 'inline',
},
}
addUtilities(newUtilities, ['responsive', 'hover'])
},
],
safelist: ['opacity-50'],
blocklist: [
'hidden',
'columns-1',
'columns-2',
'fixed',
'block',
'inline',
],
}