docusaurus-tailwindcss
v0.1.0
Published
Docusaurus v2 plugin to provide support for tailwincss.
Downloads
2,483
Maintainers
Readme
Tailwindcss for Docusaurus v2
Docusaurus v2 plugin to provide support for tailwincss.
Features
- Configured with autoprefixer as recommanded in tailwindcss configuration.
- Native tailwindcss configuration with
tailwind.config.js
.
Installation
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;
Configuration
Refer to tailwindcss configuration.