0.1.1 • Published 6 months ago

tailwindcss-vanilla v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

tailwindcss-vanilla

A Tailwind CSS plugin that allows CSS properties to be used in utility classes without modification.

Example

<div class="border-radius-lg background-color-black padding-8 color-white">
  <h1 class="font-size-2xl">...</h1>
  <p class="line-height-loose">...</p>
</div>

Installation

Install the plugin from npm:

npm install -D tailwindcss-vanilla

Then add the plugin to your tailwind.config.js file:

/** @type {import('tailwindcss').Config} */
module.exports = {
  theme: {
    // ...
  },
  plugins: [
    require('tailwindcss-vanilla'),
    // ...
  ],
}

Options

By default, core plugins with the same feature are disabled. If you want to enable them, set the disableCorePlugins option to false.

/** @type {import('tailwindcss').Config} */
module.exports = {
  theme: {
    // ...
  },
  plugins: [
    require('tailwindcss-vanilla')({
      disableCorePlugins: false,
    }),
    // ...
  ],
}