diff --git a/README.md b/README.md index ae70fe1..55b5e4b 100644 --- a/README.md +++ b/README.md @@ -132,7 +132,7 @@ ├─ package.json ├─ pnpm-lock.yaml ├─ README.md -├─ tailwind.config.js +├─ unocss.config.ts ├─ tsconfig.json └─ vite.config.ts diff --git a/tailwind.config.js b/tailwind.config.js deleted file mode 100644 index 05a1020..0000000 --- a/tailwind.config.js +++ /dev/null @@ -1,32 +0,0 @@ -import { getIconCollections, iconsPlugin } from '@egoist/tailwindcss-icons'; -import { isMp } from './build/platform'; - -const spacing = { - 0: '0px', -}; - -let i = 0; - -while (i <= 750) { - spacing[`${i}px`] = `${i}px`; - spacing[`${i}rpx`] = `${i}rpx`; - i++; -} - -/** @type {import('tailwindcss').Config} */ -export default { - content: ['./public/index.html', './src/**/*.{html,js,ts,jsx,tsx,vue}'], - theme: { - extend: { - spacing, - }, - }, - corePlugins: { - // 小程序去使用 h5 的 preflight 和响应式 container 没有意义 - preflight: !isMp, - container: !isMp, - }, - plugins: [iconsPlugin({ - collections: getIconCollections(['mdi', 'svg-spinners']), - })], -};