{"id":27386280,"url":"https://github.com/igorkowalczyk/is-browser","last_synced_at":"2025-04-13T17:18:10.659Z","repository":{"id":37258202,"uuid":"503119777","full_name":"IgorKowalczyk/is-browser","owner":"IgorKowalczyk","description":"🏔️ Add support for browser specific variants in Tailwind.css","archived":false,"fork":false,"pushed_at":"2025-04-12T11:01:27.000Z","size":1383,"stargazers_count":26,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-13T17:18:03.579Z","etag":null,"topics":["chrome","firefox","nodejs","safari","tailwindcss","tailwindcss-plugin"],"latest_commit_sha":null,"homepage":"https://npm.im/@igorkowalczyk/is-browser","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IgorKowalczyk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/codeowners","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["igorkowalczyk"]}},"created_at":"2022-06-13T21:25:58.000Z","updated_at":"2025-04-07T19:19:16.000Z","dependencies_parsed_at":"2024-01-31T00:26:34.923Z","dependency_job_id":"580ef83f-0598-4f1b-9d81-355abb88c5d9","html_url":"https://github.com/IgorKowalczyk/is-browser","commit_stats":null,"previous_names":["igorkowalczyk/is-firefox"],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IgorKowalczyk%2Fis-browser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IgorKowalczyk%2Fis-browser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IgorKowalczyk%2Fis-browser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IgorKowalczyk%2Fis-browser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IgorKowalczyk","download_url":"https://codeload.github.com/IgorKowalczyk/is-browser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248750123,"owners_count":21155687,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chrome","firefox","nodejs","safari","tailwindcss","tailwindcss-plugin"],"created_at":"2025-04-13T17:18:09.911Z","updated_at":"2025-04-13T17:18:10.654Z","avatar_url":"https://github.com/IgorKowalczyk.png","language":"TypeScript","funding_links":["https://github.com/sponsors/igorkowalczyk"],"categories":[],"sub_categories":[],"readme":"![Is browser](https://github.com/IgorKowalczyk/is-browser/assets/49127376/6a992917-80fd-4268-9f26-29e3740f2588)\n\n\u003cdiv align=\"center\"\u003e\n \u003ca aria-label=\"Github License\" href=\"https://github.com/igorkowalczyk/is-browser/blob/main/license.md\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/license/igorkowalczyk/is-browser?color=%2334D058\u0026logo=github\u0026style=flat-square\u0026label=License\"/\u003e\n \u003c/a\u003e\n \u003ca aria-label=\"NPM Version\" href=\"https://npmjs.com/package/@igorkowalczyk/is-browser\"\u003e\n  \u003cimg src=\"https://img.shields.io/npm/v/%40igorkowalczyk%2Fis-browser/latest.svg?logo=npm\u0026logoColor=fff\u0026style=flat-square\u0026color=%2334D058\"/\u003e\n \u003c/a\u003e\n \u003ca aria-label=\"NPM Downloads\" href=\"https://npmjs.com/package/@igorkowalczyk/is-browser\"\u003e\n  \u003cimg src=\"https://img.shields.io/npm/dw/@igorkowalczyk/is-browser?logo=npm\u0026logoColor=fff\u0026style=flat-square\u0026color=%2334D058\u0026label=Downloads\"/\u003e\n \u003c/a\u003e\n\u003c/div\u003e\n\n---\n\n## 📥 Installation\n\nInstall the package using your package manager of choice. Tailwind CSS v3 and v4 are supported.\n\n```\nnpm install @igorkowalczyk/is-browser\nyarn add @igorkowalczyk/is-browser\npnpm add @igorkowalczyk/is-browser\n```\n\n## 📦 Usage\n\n### Tailwind CSS v4\n\nImport the plugin in your CSS file.\n\n```css\n@import \"tailwindcss\";\n@plugin \"@igorkowalczyk/is-browser\";\n```\n\nThat's it! You can now use the plugin in your components.\n\n### Tailwind CSS v3\n\nAdd to `plugins` in your `tailwind.config.js`.\n\n```js\nmodule.exports = {\n // ...\n plugins: [\n  require(\"@igorkowalczyk/is-browser\"),\n  // ...other plugins.\n ],\n};\n```\n\n## 🎨 Examples\n\nStyle your components using `{browser_name}:{class}`, e.g. `firefox:bg-red-100`, `chrome:bg-blue-100`, etc.\n\n```jsx\n\u003cdiv className=\"firefox:bg-red-400 chrome:bg-blue-400 bg-yellow-400\"\u003e\n \u003cp\u003eOn firefox background should be red, on chrome should be blue and on other browsers it should be yellow\u003c/p\u003e\n\u003c/div\u003e\n```\n\n## 🔐 Supported browsers\n\n| Browser | Variant    | CSS Property                         | Example                 |\n| ------- | ---------- | ------------------------------------ | ----------------------- |\n| Firefox | `firefox:` | `-moz-appearance: none`              | `firefox:bg-yellow-400` |\n| Chrome  | `chrome:`  | `background: -webkit-named-image(i)` | `chrome:bg-red-400`     |\n| Safari  | `safari:`  | `-webkit-app-region: inherit`        | `safari:bg-blue-400`    |\n\n## ⁉️ Issues\n\nIf you come across any errors or have suggestions for improvements, please create a [new issue here](https://github.com/igorkowalczyk/is-browser/issues) and describe it clearly.\n\n## 📥 Pull Requests\n\nWhen submitting a pull request, please follow these steps:\n\n- Clone [this repository](https://github.com/igorkowalczyk/is-browser) `https://github.com/igorkowalczyk/is-browser.git`\n- Create a branch from `main` and give it a meaningful name (e.g. `my-awesome-new-feature`).\n- Open a [pull request](https://github.com/igorkowalczyk/is-browser/pulls) on [GitHub](https://github.com/) and clearly describe the feature or fix you are proposing.\n\n## 📋 License\n\nThis project is licensed under the MIT. See the [LICENSE](https://github.com/igorkowalczyk/is-browser/blob/main/license.md) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figorkowalczyk%2Fis-browser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Figorkowalczyk%2Fis-browser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figorkowalczyk%2Fis-browser/lists"}