Skip to content

Rileran/docusaurus-tailwindcss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Simple docusaurus 2 plugin to enable tailwindcss

Resources

License

Stars

Watchers

Forks

Packages

No packages published