2.0.5 ā¢ Published 2 years ago
@igorkowalczyk/is-firefox v2.0.5
Is :Firefox
š¦ Add support for firefox:
variant in Tailwind.css
š„ Installation
Tailwind.css v3 or newer is required.
npm install @igorkowalczyk/is-firefox
yarn add @igorkowalczyk/is-firefox
pnpm add @igorkowalczyk/is-firefox
š¦ Usage
Add to plugins
in your tailwind.config.js:
module.exports = {
// ...
plugins: [
require("@igorkowalczyk/is-firefox"),
// ...other plugins.
],
};
Style your components using firefox:{class}
, e.g. firefox:bg-red-100
, firefox:bg-blue-100
, etc.
<div className="firefox:bg-red-100 bg-blue-100">
<p>On firefox background should be red, on other browsers it should be blue</p>
</div>
āļø Issues
If you have any issues with the page please create new issue here
š„ Pull Requests
When submitting a pull request:
- Clone the repo.
- Create a branch off of master and give it a meaningful name (e.g. my-awesome-new-feature).
- Open a pull request on GitHub and describe the feature or fix.
š License
This project is licensed under the MIT. See the LICENSE file for details