0.0.6 • Published 1 year ago

@raipiot-infra/tailwind v0.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@raipiot-infra/tailwind

npm

raipiot infra 通用 Tailwind CSS 配置。

安装

需要按照常规步骤安装 Tailwind CSS,然后再集成本包。

pnpm add D tailwindcss postcss autoprefixer @raipiot-infra/tailwind
npx tailwindcss init -p

配置

添加全局样式

src/styles/tailwind.scss 中添加以下内容:

@tailwind base;
@tailwind components;
@tailwind utilities;

引入预设配置

tailwind.config.js 中添加以下内容:

module.exports = {
  presets: [require('@raipiot-infra/tailwind/preset')],
  content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}']
}
0.0.5

1 year ago

0.0.6

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.4

1 year ago

0.0.1

1 year ago