Skip to content

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

License

Notifications You must be signed in to change notification settings

ixkaito/tailwindcss-vanilla

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published