tailwindcss-vanilla

0.1.1 • Public • Published

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,
    }),
    // ...
  ],
}

Package Sidebar

Install

npm i tailwindcss-vanilla

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

47.5 kB

Total Files

4

Last publish

Collaborators

  • ixkaito