vitepress 中集成 tailwind
install
yarn add -D tailwindcss autoprefixer postcss
code
js
module.exports = {
content: ["./docs/.vitepress/**/*.{js,ts,vue}", "./docs/**/*.md"],
};
css
@tailwind base;
@tailwind components;
@tailwind utilities;
js
import "./tailwind.postcss";
import DefaultTheme from "vitepress/theme";
export default { ...DefaultTheme };
then enjoy tailwind