https://github.com/kawarimidoll/vuepress-plugin-tailwind
A VuePress plugin to use `tailwindcss` easily.
https://github.com/kawarimidoll/vuepress-plugin-tailwind
tailwind-css tailwindcss vuepress-plugin
Last synced: 5 months ago
JSON representation
A VuePress plugin to use `tailwindcss` easily.
- Host: GitHub
- URL: https://github.com/kawarimidoll/vuepress-plugin-tailwind
- Owner: kawarimidoll
- License: mit
- Archived: true
- Created: 2020-03-21T05:19:45.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-11-15T10:47:01.000Z (over 3 years ago)
- Last Synced: 2025-01-16T10:05:58.666Z (5 months ago)
- Topics: tailwind-css, tailwindcss, vuepress-plugin
- Language: Shell
- Homepage: https://vuepress-plugin-tailwind.netlify.app/
- Size: 5.67 MB
- Stars: 14
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @kawarimidoll/vuepress-plugin-tailwind
**Announcement**: I decided to archive this repo because lost motivation to maintain this anymore...
---
[](https://github.com/kawarimidoll/vuepress-plugin-tailwind/blob/master/package.json)
[](https://www.npmjs.com/package/@kawarimidoll/vuepress-plugin-tailwind)
[](https://github.com/kawarimidoll/vuepress-plugin-tailwind/pulls?q=dependabot)
[](https://github.com/kawarimidoll/vuepress-plugin-tailwind/blob/master/index.js)
[](https://vuepress-plugin-tailwind.netlify.app/)

[](https://github.com/kawarimidoll/vuepress-plugin-tailwind/blob/master/LICENSE)A VuePress plugin to use [`tailwindcss`](https://github.com/tailwindcss/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](https://tailwindcss.com/docs/controlling-file-size/#removing-unused-css).
## Usage
1. Install this plugin :
```sh
yarn add @kawarimidoll/vuepress-plugin-tailwind
```2. Add `@tailwind` import statements to the beginning of `.vuepress/styles/index.styl` :
```styl
@tailwind base;
@tailwind components;
@tailwind utilities;// Add your style definitions below...
```3. Load this plugin in `.vuepress/config.js` :
```js
module.exports = {
plugins: [
"@kawarimidoll/tailwind",
],
};
```:warning:
_These configuration files are not created automatically. You have to create them if not exist._## Options
See [docs](https://vuepress-plugin-tailwind.netlify.app).
## 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](https://github.com/kawarimidoll/vuepress-plugin-tailwind/blob/master/LICENSE)