{"id":23104022,"url":"https://github.com/namchee/tailwindcss-pointer-queries","last_synced_at":"2026-03-03T21:02:56.701Z","repository":{"id":267813122,"uuid":"901297408","full_name":"Namchee/tailwindcss-pointer-queries","owner":"Namchee","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-24T15:03:53.000Z","size":28084,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-16T00:35:54.533Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Namchee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-12-10T12:00:27.000Z","updated_at":"2025-10-24T09:21:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"9fca7c07-dce1-43d7-9521-1024270ee4db","html_url":"https://github.com/Namchee/tailwindcss-pointer-queries","commit_stats":null,"previous_names":["namchee/tailwindcss-pointer-queries"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Namchee/tailwindcss-pointer-queries","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Namchee%2Ftailwindcss-pointer-queries","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Namchee%2Ftailwindcss-pointer-queries/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Namchee%2Ftailwindcss-pointer-queries/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Namchee%2Ftailwindcss-pointer-queries/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Namchee","download_url":"https://codeload.github.com/Namchee/tailwindcss-pointer-queries/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Namchee%2Ftailwindcss-pointer-queries/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30060680,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T18:21:05.932Z","status":"ssl_error","status_checked_at":"2026-03-03T18:20:59.341Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-12-17T00:30:37.504Z","updated_at":"2026-03-03T21:02:56.696Z","avatar_url":"https://github.com/Namchee.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tailwindcss-pointer-queries\n\nA TailwindCSS plugin that provides utilities for [pointer media queries](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/pointer).\n\n## Installation\n\nInstall the plugin via your favorite package manager\n\n```bash\n# Using npm\nnpm install -D @namchee/tailwindcss-pointer-queries\n\n# Using yarn\nyarn add -D @namchee/tailwindcss-pointer-queries\n\n# Using pnpm\npnpm add -D @namchee/tailwindcss-pointer-queries\n```\n\nThen include this plugin in the [plugin](https://tailwindcss.com/docs/plugins#overview) section of `tailwind.config.js`\n\n```js\n/** @type {import('tailwindcss').Config} */\nmodule.exports = {\n  // ...your other configurations\n  plugins: [\n    require('@namchee/tailwind-pointer-queries'),\n    // ...other plugins\n  ],\n  // ...\n}\n```\n\n## Usage\n\nLet's say that you want to hide certain elements in touchscreen devices. You can use `pointer-coarse` variant to detect whether the device is a touch-based device or not.\n\n```html\n\u003cbutton class=\"pointer-coarse:hidden\"\u003e\n  Look ma! I can't be touched!\n\u003c/button\u003e\n```\n\nHowever, you realized that this isn't what you want. What you really want is detecting\nwhether the device has *at least one* touch inputs. In this case, you can use the `pointer-any-coarse` instead\n\n```html\n\u003cbutton class=\"pointer-any-coarse:hidden\"\u003e\n  Look ma! I can't be touched by those touch devices!\n\u003c/button\u003e\n```\n\n## Classes\n\nBelow are the list of variant that this plugin generates:\n\n| Class Variant | Usage | Media Query |\n| ------------- | ----- | ----------- |\n| `pointer-none` | Fulfilled when the device doesn't have any pointer device, such as keyboard-only interfaces | `@media (pointer: none)` |\n| `pointer-coarse` | Fulfilled when the device primary input mechanism is a pointer with limited accuracy, such as touchscreens for mobile devices | `@media (pointer: coarse)` |\n| `pointer-fine` | Fulfilled when the device primary input mechanism is a pointer with high accuracy, such as mouse and pen | `@media (pointer: coarse)` |\n| `pointer-any-coarse` | Fulfilled when the device have at least one pointer input mechanism with limited accuracy, such as touchscreens for mobile devices | `@media (any-pointer: coarse)` |\n| `pointer-any-fine` | Fulfilled when the device have at least one pointer input mechanism with high accuracy, such as mouse and pen | `@media (any-pointer: coarse)` |\n\n## License\n\nThis project is licensed under the [MIT license](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnamchee%2Ftailwindcss-pointer-queries","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnamchee%2Ftailwindcss-pointer-queries","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnamchee%2Ftailwindcss-pointer-queries/lists"}