-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
40 lines (39 loc) · 948 Bytes
/
Copy pathtailwind.config.js
File metadata and controls
40 lines (39 loc) · 948 Bytes
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
import twPresets from '@jswork/presets-tailwind';
import { twTransform } from '@jswork/tgv-transformer';
import TailwindWsui from '@jswork/tailwind-wsui';
/** @type {import('tailwindcss').Config} */
export default {
presets: [twPresets],
content: {
files: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
transform: twTransform
},
theme: {
extend: {
fontFamily: {
cn: ['PingFang SC', 'Microsoft YaHei', 'sans-serif'],
en: ['sans-serif'],
num: ['sans-serif']
},
screens: {
mobile: '320px',
desktop: '1024px'
}
}
},
plugins: [
TailwindWsui,
// function ({ matchUtilities, theme }) {},
function (pluginConfig) {
const { addComponents } = pluginConfig;
return addComponents({
// last-child margin-bottom:0;
'.mb_': {
'> *:last-child': {
marginBottom: 0
}
}
});
}
]
};