tailwindcss-shadow-fill

1.0.1 • Public • Published

🎨 tailwindcss-shadow-fill

npm version GitHub license

TailwindCSS utility to override background fill color using box-shadow, is especially useful to style autocompleted form fields with tailwindcss-autofill because background-color won't work.

Requirements

  • Node.js 12+

  • TailwindCSS 2+

Install

yarn add tailwindcss-shadow-fill

Or if you use npm:

npm i --save tailwindcss-shadow-fill

Usage

Add to plugins in your tailwind.config.js:

module.exports = {
  // ...
  plugins: [
    require("tailwindcss-shadow-fill"),
    // ...other plugins.
  ],
};

Style your components using shadow-fill-{color}, e.g. shadow-fill-gray-100, shadow-fill-gray-200, shadow-fill-red-500, etc.

<input className="shadow-fill-white dark:shadow-fill-black" />

Contributing

Requirements

  • Node 12+

  • Yarn 1.22+

Setup

  1. Install requirements

  2. Clone the repository

  3. Run yarn to install dependencies

Develop

  • Commit adhering to Angular commit convention, use yarn commit or Code conventional commits to commit interactively

  • Submit a PR and make sure required status checks pass

  • When a PR is merged or code is pushed to master, Github automatically builds and publishes a new release if there're relevant changes

Author

Package Sidebar

Install

npm i tailwindcss-shadow-fill

Weekly Downloads

8,765

Version

1.0.1

License

MIT

Unpacked Size

4.8 kB

Total Files

4

Last publish

Collaborators

  • phuctm97