This commit is contained in:
2025-05-07 08:50:01 +08:00
parent 5325281fb4
commit f085b3c79b
7 changed files with 269 additions and 143 deletions

View File

@@ -1,14 +1,16 @@
// tailwind.config.js
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./src/**/*.{vue,js,ts,jsx,tsx}", // 根据你的项目结构调整路径
],
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx,vue}"],
theme: {
extend: {
screens: {
'375': '375px', // 自定义屏幕大小
},
},
extend: {}
},
plugins: [],
presets: [
require("tailwindcss-rem2px-preset").createPreset({
// 32 意味着 1rem = 32rpx
fontSize: 32,
// 转化的单位,可以变成 px / rpx
unit: "rpx"
})
]
};