kawarimidoll / vuepress-plugin-tailwind

A VuePress plugin to use `tailwindcss` easily.

Home Page:https://vuepress-plugin-tailwind.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@kawarimidoll/vuepress-plugin-tailwind

Announcement: I decided to archive this repo because lost motivation to maintain this anymore...


GitHub package.json version npm downloads Dependencies GitHub code size in bytes Netlify Codacy grade LICENSE

A VuePress plugin to use tailwindcss easily.

With this plugin, you can use any classes defined by Tailwind CSS, and the unused classes are automatically purged (production only).

This plugin is based on the official guide of Tailwind CSS.

Usage

  1. Install this plugin :
yarn add @kawarimidoll/vuepress-plugin-tailwind
  1. Add @tailwind import statements to the beginning of .vuepress/styles/index.styl :
@tailwind base;
@tailwind components;
@tailwind utilities;

// Add your style definitions below...
  1. Load this plugin in .vuepress/config.js :
module.exports = {
  plugins: [
    "@kawarimidoll/tailwind",
  ],
};

⚠️ These configuration files are not created automatically. You have to create them if not exist.

Options

See docs.

Versioning policy

Since v1.0.0, the versioning of this plugin will follow that of Tailwind.

For example, when there is a major version upgrade of Tailwind, this plugin also gets a major upgrade.

License

MIT

About

A VuePress plugin to use `tailwindcss` easily.

https://vuepress-plugin-tailwind.netlify.app/

License:MIT License


Languages

Language:Shell 51.7%Language:JavaScript 48.3%