Files
websopy-taro/tailwind.config.js
赵忠林 e4524154e0 fix(tailwind): 更新配置以兼容微信小程序
- 启用 autoprefixer 并新增 postcss-nested 插件支持嵌套语法
- 扩展主题颜色,添加 primary 色系
- 更新 content 路径包含 public/index.html
- 禁用 preflight 以移除默认样式重置
- 移除多数 corePlugins 禁用项,保留 preflight 禁用,简化兼容性配置
2026-06-30 15:45:12 +08:00

28 lines
608 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{js,jsx,ts,tsx}', './public/index.html'],
theme: {
extend: {
colors: {
primary: {
50: '#f0f9ff',
100: '#e0f2fe',
200: '#bae6fd',
300: '#7dd3fc',
400: '#38bdf8',
500: '#0ea5e9',
600: '#0284c7',
700: '#0369a1',
800: '#075985',
900: '#0c4a6e',
}
}
},
},
plugins: [],
corePlugins: {
// Taro 小程序端不需要 preflight浏览器重置样式
preflight: false
}
}