Astro 尾风配置
注: 这个包是实验性的,可能会被改变.
安装
- 安装
npm i @astrouxds/tailwind
- 如果你没有使用 Astro Web 组件,你需要 安装 Astro 设计键
npm i @astrouxds/tokens- 在您的工程根中 :
import '@astrouxds/tokens/dist/css/index.css'
- 安装尾风 在你的项目.
- 添加 Astro 尾风插件
//tailwind.config.js
...
plugins: [require('@astrouxds/tailwind')]
...
使用量
参考文献 演示网站 用于列出可用的颜色和公用事业.
详细情况见我们 设计托肯文档
建议插件
尾风不支持 阴影部件出盒子,所以我们强烈建议 同时安装这个 尾风自定义元素插件