Skip to content

🎨 TailwindCSS utility to override background fill color using shadow.

License

Notifications You must be signed in to change notification settings

creativedotdesign/tailwindcss-shadow-fill

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎨 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.

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.
  ],
  variants: {
    extend: {
      shadowFill: ["dark"], // Enable variants.
    },
  },
};

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" />

Requirements

  • Node.js 12+

  • TailwindCSS 2


Made by @phuctm97.

About

🎨 TailwindCSS utility to override background fill color using shadow.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%