使用Taro开发模板进行开发的纸通宝交易版本
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

45 lines
1.1 KiB

const range = (size) =>
Object.fromEntries(
[...Array(size).keys()]
.slice(1)
.map((i) => [`${i}_${size}`, `${(i / size) * 100}%`])
);
module.exports = {
prefixer: false,
separator: "_",
compile: false,
globalUtility: false,
darkMode: "media",
corePlugins: {
preflight: false,
divideColor: false,
divideOpacity: false,
divideStyle: false,
divideWidth: false,
space: false,
placeholderColor: false,
placeholderOpacity: false,
},
exclude: [/([0-9]{1,}[.][0-9]*)$/],
theme: {
width: (theme) => ({
auto: "auto",
full: "100%",
screen: "100vw",
...Object.assign(...[2, 3, 4, 5, 6, 12].map(range)),
...theme("spacing"),
}),
height: (theme) => ({
auto: "auto",
full: "100%",
screen: "100vh",
...Object.assign(...[2, 3, 4, 5, 6, 12].map(range)),
...theme("spacing"),
}),
maxHeight: {
full: "100%",
screen: "100vh",
},
},
};