Skip to content

🎨 TailwindCSS variant to style autocompleted form fields.

License

Notifications You must be signed in to change notification settings

creativedotdesign/tailwindcss-autofill

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎨 tailwindcss-autofill

npm version GitHub license

TailwindCSS variant to style autocompleted form fields.

Install

yarn add tailwindcss-autofill

Or if you use npm:

npm i --save tailwindcss-autofill

Usage

Add to plugins in your tailwind.config.js:

module.exports = {
  // ...
  plugins: [
    require("tailwindcss-autofill"),
    // Other plugins.
  ],
  variants: {
    extend: {
      borderColor: ["autofill", "dark"], // Enable `autofill` variant for plugins you want.
    },
  },
};

Style your components using autofill::

<input className="border border-gray-100 autofill:border-gray-900" />

Requirements

  • Node.js 12+

  • TailwindCSS 2


Made by @phuctm97.

About

🎨 TailwindCSS variant to style autocompleted form fields.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%