Docusaurus v2 plugin to provide support for tailwincss.
- Configured with autoprefixer as recommanded in tailwindcss configuration.
- Native tailwindcss configuration with
tailwind.config.js
.
Install the plugin with npm :
npm install --save docusaurus-tailwindcss
or yarn :
yarn add docusaurus-tailwindcss
Add the plugin to docusaurus.config.js
:
module.exports = {
// ...
plugins: [
// ...
'docusaurus-tailwindcss',
],
};
Include tailwind in custom.css
:
@tailwind base;
@tailwind components;
@tailwind utilities;
Refer to tailwindcss configuration.