{"id":13722058,"url":"https://github.com/gavinmcfarland/postcss-help-media-queries","last_synced_at":"2025-04-11T14:08:54.278Z","repository":{"id":42740972,"uuid":"281954783","full_name":"gavinmcfarland/postcss-help-media-queries","owner":"gavinmcfarland","description":"This tool help you to easily recognize your active media query and display additional screen info","archived":false,"fork":false,"pushed_at":"2023-01-06T12:16:12.000Z","size":353,"stargazers_count":26,"open_issues_count":7,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-30T07:02:31.706Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gavinmcfarland.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-23T13:10:21.000Z","updated_at":"2023-11-29T11:26:29.000Z","dependencies_parsed_at":"2023-02-06T01:31:08.829Z","dependency_job_id":null,"html_url":"https://github.com/gavinmcfarland/postcss-help-media-queries","commit_stats":null,"previous_names":["limitlessloop/postcss-help-media-queries"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavinmcfarland%2Fpostcss-help-media-queries","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavinmcfarland%2Fpostcss-help-media-queries/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavinmcfarland%2Fpostcss-help-media-queries/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavinmcfarland%2Fpostcss-help-media-queries/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gavinmcfarland","download_url":"https://codeload.github.com/gavinmcfarland/postcss-help-media-queries/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248413449,"owners_count":21099310,"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":[],"created_at":"2024-08-03T01:01:24.145Z","updated_at":"2025-04-11T14:08:54.254Z","avatar_url":"https://github.com/gavinmcfarland.png","language":"CSS","funding_links":[],"categories":["CSS"],"sub_categories":[],"readme":"# PostCSS Help Media Queries [\u003cimg src=\"https://postcss.github.io/postcss/logo.svg\" alt=\"PostCSS\" width=\"90\" height=\"90\" align=\"right\"\u003e][postcss]\n\n[![NPM Version][npm-img]][npm-url]\n[![Build Status][cli-img]][cli-url]\n[![Support Chat][git-img]][git-url]\n\n[PostCSS Help Media Queries] lets you see information about the active breakpoint (media query), screen density and orientation displayed in a tooltip. All generated by CSS.\n\n![postcss-help-media-queries](https://user-images.githubusercontent.com/10454741/91659106-ffdb9f80-eacd-11ea-8628-83676d837305.png)\n\nAdd the following at-rule at the top of your CSS to include the help-media-queries tooltip.\n\n```pcss\n@help-media-queries;\n```\n\n## Usage\n\nAdd [PostCSS Help Media Queries] to your project:\n\n```bash\nnpm install postcss-help-media-queries --save-dev\n```\n\nUse **PostCSS Help Media Queries** to process your CSS:\n\n```js\nconst postcssHelpMediaQueries = require('postcss-help-media-queries');\n\npostcssHelpMediaQueries.process(YOUR_CSS /*, processOptions, pluginOptions */);\n```\n\nOr use it as a [PostCSS] plugin:\n\n```js\nconst postcss = require('postcss');\nconst postcssHelpMediaQueries = require('postcss-help-media-queries');\n\npostcss([\n  postcssHelpMediaQueries(/* pluginOptions */)\n]).process(YOUR_CSS /*, processOptions */);\n```\n\n**PostCSS Help Media Queries** runs in all Node environments, with special instructions for:\n\n| [Node](INSTALL.md#node) | [PostCSS CLI](INSTALL.md#postcss-cli) | [Webpack](INSTALL.md#webpack) | [Create React App](INSTALL.md#create-react-app) | [Gulp](INSTALL.md#gulp) | [Grunt](INSTALL.md#grunt) |\n| --- | --- | --- | --- | --- | --- |\n\n## Options\n\n\u003cdetails open\u003e\n\u003csummary\u003e\u003cb\u003ebreakpoints\u003c/b\u003e \u003ccode\u003eobject\u003c/code\u003e\u003c/summary\u003e\n\u003csmall\u003eDefine the custom \u003cb\u003emin-width\u003c/b\u003e breakpoints to watch and show inside the tooltip.\n\n```js\npostcssHelpMediaQueries({\n  breakpoints: {\n    extraSmall: '30em',\n    small: '48em',\n    medium: '60em',\n    large: '80em',\n    extraLarge: '100em',\n    // Other breakpoints..\n  }\n})\n```\n\u003c/small\u003e\n\u003c/details\u003e\n\n[cli-img]: https://img.shields.io/travis/limitlessloop/postcss-help-media-queries/master.svg?style=for-the-badge\n[cli-url]: https://travis-ci.org/limitlessloop/postcss-help-media-queries\n[git-img]: https://img.shields.io/badge/support-chat-blue.svg?style=for-the-badge\n[git-url]: https://gitter.im/postcss/postcss\n[npm-img]: https://img.shields.io/npm/v/postcss-help-media-queries.svg?style=for-the-badge\u0026colorA=CD4A4A\u0026colorB=B03737\n[npm-url]: https://www.npmjs.com/package/postcss-help-media-queries\n\n[PostCSS]: https://github.com/postcss/postcss\n[PostCSS Help Media Queries]: https://github.com/limitlessloop/postcss-help-media-queries\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgavinmcfarland%2Fpostcss-help-media-queries","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgavinmcfarland%2Fpostcss-help-media-queries","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgavinmcfarland%2Fpostcss-help-media-queries/lists"}