{"id":24859658,"url":"https://github.com/themgoncalves/super-query","last_synced_at":"2025-09-15T06:47:57.887Z","repository":{"id":39554384,"uuid":"136728239","full_name":"themgoncalves/super-query","owner":"themgoncalves","description":"🎠 A super media-query for styled-components. Intuitive and easy of use.","archived":false,"fork":false,"pushed_at":"2022-12-09T17:13:32.000Z","size":1929,"stargazers_count":30,"open_issues_count":22,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-30T18:33:49.040Z","etag":null,"topics":["css-in-js","device-orientation","media-query","react","responsive","styled-components"],"latest_commit_sha":null,"homepage":"https://themgoncalves.github.io/super-query/","language":"JavaScript","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/themgoncalves.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-09T14:02:00.000Z","updated_at":"2024-07-02T16:12:32.000Z","dependencies_parsed_at":"2023-01-25T22:46:57.738Z","dependency_job_id":null,"html_url":"https://github.com/themgoncalves/super-query","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/themgoncalves/super-query","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themgoncalves%2Fsuper-query","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themgoncalves%2Fsuper-query/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themgoncalves%2Fsuper-query/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themgoncalves%2Fsuper-query/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/themgoncalves","download_url":"https://codeload.github.com/themgoncalves/super-query/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themgoncalves%2Fsuper-query/sbom","scorecard":{"id":879250,"data":{"date":"2025-08-11","repo":{"name":"github.com/themgoncalves/super-query","commit":"8ebeb5ce4739c7fe6e6cbffd31654395847c5329"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"148 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-6chw-6frg-f759","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-whgm-jr23-g3j9","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-cwfw-4gq5-mrqx","Warn: Project is vulnerable to: GHSA-g95f-p29q-9xw4","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw","Warn: Project is vulnerable to: GHSA-w8qv-6jwh-64r5","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-p28h-cc7q-c4fg","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-3wcq-x3mq-6r9p","Warn: Project is vulnerable to: GHSA-vh7m-p724-62c2","Warn: Project is vulnerable to: GHSA-r9p9-mrjm-926w","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-3gx7-xhv7-5mx3","Warn: Project is vulnerable to: GHSA-6h5x-7c5m-7cr7","Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc","Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx","Warn: Project is vulnerable to: GHSA-74fj-2j2h-c42q","Warn: Project is vulnerable to: GHSA-pw2r-vq6v-hr8c","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-8r6j-v8pm-fqw3","Warn: Project is vulnerable to: MAL-2023-462","Warn: Project is vulnerable to: GHSA-vvj3-85vf-fgmw","Warn: Project is vulnerable to: GHSA-q42p-pg8m-cqh6","Warn: Project is vulnerable to: GHSA-w457-6q6x-cgp9","Warn: Project is vulnerable to: GHSA-62gr-4qp9-h98f","Warn: Project is vulnerable to: GHSA-f52g-6jhx-586p","Warn: Project is vulnerable to: GHSA-2cf5-4w76-r9qv","Warn: Project is vulnerable to: GHSA-3cqr-58rm-57f8","Warn: Project is vulnerable to: GHSA-g9r4-xpmj-mj65","Warn: Project is vulnerable to: GHSA-q2c6-c6pm-g3gh","Warn: Project is vulnerable to: GHSA-765h-qjxv-5f44","Warn: Project is vulnerable to: GHSA-f2jv-r9rf-7988","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-pfq8-rq6v-vf5m","Warn: Project is vulnerable to: GHSA-6x33-pw7p-hmpq","Warn: Project is vulnerable to: GHSA-c7qv-q95q-8v27","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-2pr6-76vf-7546","Warn: Project is vulnerable to: GHSA-8j8c-7jfh-h6hx","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-6c8f-qphg-qjgp","Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq","Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488","Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-779f-wgxg-qr8f","Warn: Project is vulnerable to: GHSA-xf5p-87ch-gxw2","Warn: Project is vulnerable to: GHSA-5v2h-r2cx-5xgj","Warn: Project is vulnerable to: GHSA-rrrm-qjm4-v8hf","Warn: Project is vulnerable to: GHSA-4xcv-9jjx-gfj3","Warn: Project is vulnerable to: GHSA-7wpw-2hjm-89gp","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-fhjf-83wg-r2j9","Warn: Project is vulnerable to: GHSA-8hfj-j24r-96c4","Warn: Project is vulnerable to: GHSA-wc69-rhjr-hc9g","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-92xj-mqp7-vmcj","Warn: Project is vulnerable to: GHSA-wxgw-qj99-44c2","Warn: Project is vulnerable to: GHSA-5rrq-pxf6-6jx5","Warn: Project is vulnerable to: GHSA-8fr3-hfg3-gpgp","Warn: Project is vulnerable to: GHSA-gf8q-jrpm-jvxq","Warn: Project is vulnerable to: GHSA-2r2c-g63r-vccr","Warn: Project is vulnerable to: GHSA-cfm4-qjh2-4765","Warn: Project is vulnerable to: GHSA-x4jg-mjrx-434g","Warn: Project is vulnerable to: GHSA-5fw9-fq32-wv5p","Warn: Project is vulnerable to: GHSA-rp65-9cf3-cjxr","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-566m-qj78-rww5","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-rjqq-98f6-6j3r","Warn: Project is vulnerable to: GHSA-mjxr-4v3x-q3m4","Warn: Project is vulnerable to: GHSA-cgfm-xwp7-2cvr","Warn: Project is vulnerable to: GHSA-rm97-x556-q36h","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-h9rv-jmmf-4pgx","Warn: Project is vulnerable to: GHSA-hxcc-f52p-wc94","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-4g88-fppr-53pp","Warn: Project is vulnerable to: GHSA-4jqc-8m5r-9rpr","Warn: Project is vulnerable to: GHSA-c9g6-9335-x697","Warn: Project is vulnerable to: GHSA-vx3p-948g-6vhq","Warn: Project is vulnerable to: GHSA-mxhp-79qh-mcx6","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw","Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-jgrx-mgxx-jf9v","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-662x-fhqg-9p8v","Warn: Project is vulnerable to: GHSA-394c-5j6w-4xmx","Warn: Project is vulnerable to: GHSA-78cj-fxph-m83p","Warn: Project is vulnerable to: GHSA-fhg7-m89q-25r3","Warn: Project is vulnerable to: GHSA-cf4h-3jhx-xvhq","Warn: Project is vulnerable to: GHSA-46c4-8wrp-j99v","Warn: Project is vulnerable to: GHSA-9m6j-fcg5-2442","Warn: Project is vulnerable to: GHSA-hh27-ffr2-f2jc","Warn: Project is vulnerable to: GHSA-rqff-837h-mm52","Warn: Project is vulnerable to: GHSA-8v38-pw62-9cw2","Warn: Project is vulnerable to: GHSA-hgjh-723h-mx2j","Warn: Project is vulnerable to: GHSA-jf5r-8hm2-f872","Warn: Project is vulnerable to: GHSA-wr3j-pwj9-hqq6","Warn: Project is vulnerable to: GHSA-cf66-xwfp-gvc4","Warn: Project is vulnerable to: GHSA-4v9v-hfq4-rm2v","Warn: Project is vulnerable to: GHSA-9jgg-88mc-972h","Warn: Project is vulnerable to: GHSA-g78m-2chm-r7qv","Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T07:24:39.348Z","repository_id":39554384,"created_at":"2025-08-24T07:24:39.348Z","updated_at":"2025-08-24T07:24:39.348Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275219465,"owners_count":25425888,"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","status":"online","status_checked_at":"2025-09-15T02:00:09.272Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["css-in-js","device-orientation","media-query","react","responsive","styled-components"],"created_at":"2025-01-31T20:59:25.877Z","updated_at":"2025-09-15T06:47:57.864Z","avatar_url":"https://github.com/themgoncalves.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🎠 Super-Query\n\u003e A super `media-query` for styled-component. Intuitive and easy of use.\n\n[![NPM][npm-image]][npm-url]\n[![Build Status][travis-ci-image]][travis-ci-url]\n[![Coverage Status][coveralls-image]][coveralls-url]\n[![GitHub All Releases][releases-image]][releases-url]\n[![GitHub stars][stars-image]][stars-url]\n[![Known Vulnerabilities][vulnerabilities-image]][vulnerabilities-url]\n\n## Description\n\nWe all know that [`Media Query`](https://developer.mozilla.org/de/docs/Web/CSS/Media_Queries/Using_media_queries) is a very important part of your application; with that you can set **any kind of responsiveness** and **device control**.\n\nMost of the developers only use simple `media feature` as part of the `media query` syntax, and for that simple use case, there's a [bunch of good approach for your `styled-component`](https://github.com/styled-components/styled-components/blob/master/docs/tips-and-tricks.md#media-templates) based application.\n\n\u003e **Media Feature examples**:\n\u003e _width | min-width | max-width | height | min-height | max-height_\n\n\u003cbr /\u003e\n\nBut how about control over the `screen orientation`, `aspect-ratio`, `resolution` and `tv` devices? Or even a interpolation between?\n\nFor those developers who need more control over the `styled-component` based application, we created the **`SuperQuery`** in order to provide a **full powerful and simple control over your media query**.\n\n\u003cbr /\u003e\n\n## Want a simple code demonstration?\n\nHow about create a `media query` that handles screen widths between `360px` and `1024px` ?\n\n```javascript\nconst myStyledComponent = styled.div`\n  ...\n  ${SuperQuery().minWidth.of('360px').and.maxWidth.of('1024px').css`\n    content: 'this is awesome!'\n  `}\n`\n```\n\nCool, right? But it's even cooler to use our `built-in` breakpoints, let's rewrite it!\n\n```javascript\nconst myStyledComponent = styled.div`\n  ...\n  ${SperQuery().minWidth.sm.and.maxWidth.lg.css`\n    content: 'this is even more awesome!'\n  `}\n`\n```\n\nOf even how about control the `screen orientation` over `mobile` devices ?\n\n```javascript\nconst myStyledComponent = styled.div`\n  ...\n  ${SuperQuery().maxWidth.md.and.landscape.css`\n    content: 'Yep! Your device is on landscape mode!'\n  `}\n`\n```\n\nWant a more `complex query` ?\n\n```javascript\n\nconst myStyledComponent = styled.div`\n  ...\n  ${SuperQuery()\n     .screen\n     .and\n     .deviceAspectRatio\n     .of('16/9')\n     .or\n     .screen\n     .and\n     .deviceAspectRatio\n     .of('16/10')\n     .css`\n    content: 'Yep! Your device is on landscape mode!'\n  `}\n`\n```\n\nYeah! Now you know how `simple` and `powerful` is `SuperQuery`!\n\n## Installation\n\nSince we have experience some issues with NPM along the time, we strongly recomment the use of [YARN Package Manage](https://yarnpkg.com/en/);\n\n**Download our NPM Package**\n\nFor YARN users:\n\n```sh\nyarn add @themgoncalves/super-query\n```\n\n\nFor NPM users:\n\n```sh\nnpm install @themgoncalves/super-query\n```\n\n\nNote that it **should not** be in the devDependencies.\n\n\u003cbr /\u003e\n\n## How to use\n\nFirst we need to import the package into our component;\n\n```javascript\nimport SuperQuery from '@themgoncalves/super-query';\n```\n\nThen, we are ready to mix it with `styled-component`:\n\n```javascript\nconst Title = styled.h1`\n  color: #666;\n  font-size: 16px;\n  ${SuperQuery().minWidth.lg.css`\n    font-size: 20px;\n  `};\n  ${SuperQuery().minWidth.lg.and.landscape.css`\n    font-size: 26px;\n  `};\n`;\n```\n\nSee how easy to implement it is?\n\n### Implementation TIP!\n\nIf you're using `ThemeProvider` from `styled-components`, it might be an excellent idea to place `SuperQuery`\nas member of you `theme configuration`, this will eliminate the need to import it every single time you need to use\nand also, you only need to customize your `breakpoints` once! 😜\n\n```jsx\n// theme.js\nimport SuperQuery from '@themgoncalves/super-query';\n\nconst theme = {\n    typography: {\n        fonts: {\n            roboto: \"'Roboto', sans-serif\",\n        },\n    },\n    SuperQuery: SuperQuery(breakpoints),\n};\n\nexport default theme;\n```\n\nAnd then, you can access it directly from the `props.theme`.\nE.g.\n\n```js\n\nconst myStyledComponent = styled.div`\n  ...\n  ${props.theme.SuperQuery.minWidth.sm.and.maxWidth.lg.css`\n    content: 'this is even more awesome!'\n  `}\n`\n```\n\n\n## API Documentation\n\nThis package follows the `css3 media query` rule, [click here to check it out](https://developer.mozilla.org/de/docs/Web/CSS/Media_Queries/Using_media_queries).\n\n\n### The Media Query Syntax\n\nA few motivating and useful examples of how your product can be used. Spice this up with code blocks and potentially more screenshots.\n\n```regex\nmedia_query: [[only | not]? \u003cmedia_type\u003e [ and \u003cexpression\u003e ]*] |\n             \u003cexpression\u003e [ and \u003cexpression\u003e ]*\n\nexpression: ( \u003cmedia_feature\u003e [: \u003cvalue\u003e]? )\n\nmedia_type: all | aural | braille | handheld | print |\n  projection | screen | tty | tv | embossed\n\nmedia_feature: width | min-width | max-width\n  | height | min-height | max-height\n  | device-width | min-device-width | max-device-width\n  | device-height | min-device-height | max-device-height\n  | aspect-ratio | min-aspect-ratio | max-aspect-ratio\n  | device-aspect-ratio | min-device-aspect-ratio | max-device-aspect-ratio\n  | color | min-color | max-color\n  | color-index | min-color-index | max-color-index\n  | monochrome | min-monochrome | max-monochrome\n  | resolution | min-resolution | max-resolution\n  | scan | grid\n```\n\n### Built-in Breakpoints\n\n| Type | How to Use | Size | Comes after of | Following options | Can set `css` after?  |\n---|---|---|---|---|---|\n| xs | `.xs` | 0px | `Media Feature` | `Logical Operator` | ✔ |\n| sm | `.sm` | 576px | `Media Feature` | `Logical Operator` | ✔ |\n| md | `.md` | 768px | `Media Feature` | `Logical Operator` | ✔ |\n| lg | `.lg` | 992px | `Media Feature` | `Logical Operator` | ✔ |\n| xl | `.xl` | 1200px | `Media Feature` | `Logical Operator` | ✔ |\n\n### Media Type\n\n| Type | How to Use | Comes after of | Following options | Can set `css` after?  |\n|---|---|---|---|---|\n| all | `.all` | `SuperQuery()`, `Logical Operator` | `Logical Operator`, `Media Feature` | ✖ |\n| aural | `.aural` | `SuperQuery()`, `Logical Operator` | `Logical Operator`, `Media Feature` | ✖ |\n| braille | `.braille` | `SuperQuery()`, `Logical Operator` | `Logical Operator`, `Media Feature` | ✖ |\n| handheld | `.handheld` | `SuperQuery()`, `Logical Operator` | `Logical Operator`, `Media Feature` | ✖ |\n| print | `.print` | `SuperQuery()`, `Logical Operator` | `Logical Operator`, `Media Feature` | ✖ |\n| projection | `.projection` | `SuperQuery()`, `Logical Operator` | `Logical Operator`, `Media Feature` | ✖ |\n| screen | `.screen` | `SuperQuery()`, `Logical Operator` | `Logical Operator`, `Media Feature` | ✖ |\n| tty | `.tty` | `SuperQuery()`, `Logical Operator` | `Logical Operator`, `Media Feature` | ✖ |\n| tv | `.tv` | `SuperQuery()`, `Logical Operator` | `Logical Operator`, `Media Feature` | ✖ |\n| embossed | `.embossed` | `SuperQuery()`, `Logical Operator` | `Logical Operator`, `Media Feature` | ✖ |\n\n### Media Feature\n\n| Type | How to Use | Optional Argument Example | Comes after of | Following options | Can set `css` after?  |\n|---|---|---|---|---|---|\n| width |`.width` | `.width.of('100px')` | `SuperQuery()`, `Logical Operator`, `Media Type` | `Logical Operator`, `Breakpoints` | ✔ |\n| min-width | `.minWidth` | `.minWidth.of('100px')` | `SuperQuery()`, `Logical Operator`, `Media Type` | `Logical Operator`, `Breakpoints` | ✔ |\n| max-width |`.maxWidth` |`.maxWidth.of('100px')` | `SuperQuery()`, `Logical Operator`, `Media Type` | `Logical Operator`, `Breakpoints` | ✔ |\n| height | `.height` | `.height.of('340px')` | `SuperQuery()`, `Logical Operator`, `Media Type` | `Logical Operator`, `Breakpoints` | ✔ |\n| min-height | `.minHeight` | `.minHeight.of('340px')` | `SuperQuery()`, `Logical Operator`, `Media Type` | `Logical Operator`, `Breakpoints` | ✔ |\n| max-height | `.maxHeight` | `.maxHeight.of('340px')` | `SuperQuery()`, `Logical Operator`, `Media Type` | `Logical Operator`, `Breakpoints` | ✔ |\n| device-width | `.deviceWidth` | `.deviceWidth.of('960px')` | `SuperQuery()`, `Logical Operator`, `Media Type` | `Logical Operator`, `Breakpoints` | ✔ |\n| min-device-width | `.minDeviceWidth` | `.minDeviceWidth.of('960px')` | `SuperQuery()`, `Logical Operator`, `Media Type` | `Logical Operator`, `Breakpoints` | ✔ |\n| max-device-width | `.maxDeviceWidth` | `.maxDeviceWidth.of('960px')` | `SuperQuery()`, `Logical Operator`, `Media Type` | `Logical Operator`, `Breakpoints` | ✔ |\n| device-height | `.height` | `.height.of('320px')` | `SuperQuery()`, `Logical Operator`, `Media Type` | `Logical Operator`, `Breakpoints` | ✔ |\n| min-device-height | `.minDeviceHeight` | `.minDeviceHeight.of('340px')` | `SuperQuery()`, `Logical Operator`, `Media Type` | `Logical Operator`, `Breakpoints` | ✔ |\n| max-device-height | `.maxDeviceHeight` | `.maxDeviceHeight.of('340px')` | `SuperQuery()`, `Logical Operator`, `Media Type` | `Logical Operator`, `Breakpoints` | ✔ |\n| aspect-ratio | `.aspectRatio` | `.aspectRatio.of('1/1')` | `SuperQuery()`, `Logical Operator`, `Media Type` | `Logical Operator`, `Breakpoints` | ✔ |\n| min-aspect-ratio | `.minAspectRatio` | `.minAspectRatio.of('1/1')` | `SuperQuery()`, `Logical Operator`, `Media Type` | `Logical Operator`, `Breakpoints` | ✔ |\n| max-aspect-ratio | `.maxAspectRatio` | `.maxAspectRatio.of('1/1')` | `SuperQuery()`, `Logical Operator`, `Media Type` | `Logical Operator`, `Breakpoints` | ✔ |\n| device-aspect-ratio | `.deviceAspectRatio` | `.deviceAspectRatio.of('16/9')` | `SuperQuery()`, `Logical Operator`, `Media Type` | `Logical Operator`, `Breakpoints` | ✔ |\n| min-device-aspect-ratio | `.minDeviceAspectRatio` |  `.minDeviceAspectRatio.of('16/9')` | `SuperQuery()`, `Logical Operator`, `Media Type` | `Logical Operator`, `Breakpoints` | ✔ |\n| max-device-aspect-ratio | `.maxDeviceAspectRatio` | `.maxDeviceAspectRatio.of('16/9')` | `SuperQuery()`, `Logical Operator`, `Media Type` | `Logical Operator`, `Breakpoints` | ✔ |\n| color | `.color` | `n/a` | `SuperQuery()`, `Logical Operator`, `Media Type` | `Logical Operator`, `Breakpoints` | ✔ |\n| min-color | `.minColor` | `.minColor.of('4')` | `SuperQuery()`, `Logical Operator`, `Media Type` | `Logical Operator`, `Breakpoints` | ✔ |\n| max-color | `.maxColor` | `.maxColor.of('4')` | `SuperQuery()`, `Logical Operator`, `Media Type` | `Logical Operator`, `Breakpoints` | ✔ |\n| color-index | `.colorIndex` | `.colorIndex.of('256')` | `SuperQuery()`, `Logical Operator`, `Media Type` | `Logical Operator`, `Breakpoints` | ✔ |\n| min-color-index | `.minColorIndex` | `.minColorIndex.of('256')` | `SuperQuery()`, `Logical Operator`, `Media Type` | `Logical Operator`, `Breakpoints` | ✔ |\n| max-color-index | `.maxColorIndex` | `.maxColorIndex.of('256')` | `SuperQuery()`, `Logical Operator`, `Media Type` | `Logical Operator`, `Breakpoints` | ✔ |\n| monochrome | `.monochrome` | `n/a` | `SuperQuery()`, `Logical Operator`, `Media Type` | `Logical Operator`, `Breakpoints` | ✔ |\n| min-monochrome | `.minMonochrome` | `.minMonochrome.of('8')` | `SuperQuery()`, `Logical Operator`, `Media Type` | `Logical Operator`, `Breakpoints` | ✔ |\n| max-monochrome | `.maxMonochrome` | `.maxMonochrome.of('8')` | `SuperQuery()`, `Logical Operator`, `Media Type` | `Logical Operator`, `Breakpoints` | ✔ |\n| resolution | `.resolution` | `.resolution.of('300dpi')` | `SuperQuery()`, `Logical Operator`, `Media Type` | `Logical Operator`, `Breakpoints` | ✔ |\n| min-resolution | `.minResolution` | `.minResolution.of('300dpi')` | `SuperQuery()`, `Logical Operator`, `Media Type` | `Logical Operator`, `Breakpoints` | ✔ |\n| max-resolution | `.maxResolution` | `.maxResolution.of('300dpi')` | `SuperQuery()`, `Logical Operator`, `Media Type` | `Logical Operator`, `Breakpoints` | ✔ |\n| scan | `.scan` | `.scan.of('progressive')` | `SuperQuery()`, `Logical Operator`, `Media Type` | `Logical Operator`, `Breakpoints` | ✔ |\n| grid | `.grid` | `n/a` | `SuperQuery()`, `Logical Operator`, `Media Type` | `Logical Operator`, `Breakpoints` | ✔ |\n\n\n### Screen Orientation\n\n| Type | How to Use | Comes after of | Following options | Can set `css` after?  |\n|---|---|---|---|---|\n| landscape |`.landscape` | `Logical Operator` | `Logical Operator` | ✔ |\n| portrait |`.portrait` | `Logical Operator` | `Logical Operator` | ✔ |\n\n\n### Logical Operator\n\n| Type | How to Use | Comes after of | Following options | Can set `css` after?  |\n|---|---|---|---|---|\n| and |`.and` |  `Media Feature`, `Screen Orientation`, `Breakpoints` | `Media Type`, `Media Feature`, `Screen Orientation` | ✖ |\n| or |`.or` | `Media Feature`, `Screen Orientation`, `Breakpoints` | `Media Type`, `Media Feature`, `Screen Orientation` | ✖ |\n| not |`.not` | `SuperQuery()` | `Media Type` | ✖ |\n| only |`.only` | `SuperQuery()` | `Media Type` | ✖ |\n\n### Render CSS\n\nSimply call the `css` function as the last iteration and pass the `css syntax` throw `ES6 Tagged Template Literals`:\n\n```javascript\nconst List = styled.ul`\n  list-style: none;\n  padding: 0;\n  margin: 0;\n  SuperQuery().minWidth.md.css`\n    color: white;\n    font-size: 14px;\n    text-decoration: none;\n  `\n`\n```\n\n\n### How to create custom breakpoints?\n\nOne of the coolest features we have on SuperQuery is the possibility to override our default breakpoints into your own custom.\n\nHere is how to do:\n\n```javascript\nimport SuperQuery from '@themgoncalves/super-query';\n\n// Here is an example of a custom breakpoint\nconst customBreakpoints = {\n  extraSmall: 360,\n  small: 640,\n  medium: 960,\n  large: 1024,\n  extraLarge: 1200,\n  superExtraLarge: 1600,\n};\n\n// Then just import your custom breakpoints into the `SuperQuery`\n// and you are Zready start use it!\nconst Title = styled.h1`\n  color: #666;\n  font-size: 16px;\n  ${SuperQuery(customBreakpoints).minWidth.superExtraLarge.css`\n    font-size: 20px;\n  `};\n`;\n\n// Or your custom breakpoints directly from `ThemeProvider`\nconst Title = styled.h1`\n  color: #666;\n  font-size: 16px;\n  ${props =\u003e SuperQuery(props.theme.breakpoints).minWidth.superExtraLarge.css`\n    font-size: 20px;\n  `};\n`;\n\n```\n\n\u003cbr /\u003e\n\n### `Orientation`\n\nWe have added since the `version 1.0.0` a new feature: `Orientation`, which is a `Screen Orientation manager`.\n\nThis feature is an implementation of the Web API `Screen.orientation` available in the modern browser.\n\nNote that this feature might not work on a several environments, like in the `iOS`.\nFor more information, [click here and check the browser compatibility](https://developer.mozilla.org/en-US/docs/Web/API/Screen/orientation)\n\n**How to use**\n\n```javascript\nimport { Orientation } from '@themgoncalves/super-query';\n\n// or you can import direct the module\n\nimport Orientation from '@themgoncalves/super-query/orientation';\n```\n\n**Listening for screen orientation change**\n\n```javascript\nOrientation.onChange((orientation) =\u003e {\n    console.info('Screen orientation has changed to: ', orientation);\n});\n```\n\n**Get the `current orientation`**\n\n```javascript\nconst currentOrientation = Orientation.current();\nconsole.info('Current screen orientation: ', currentOrientation);\n```\n\n**Locking the orientation**\n\n```javascript\n// screen orientations available to be locked:\n// landscape-primary\n// landscape-secondary\n// portrait-primary\n// portrait-secondary\n\nconst wasScreenLocked = Orientation.lock('portrait-primary');\n\n// or you can pass an array with the orientations to be locked\nconst wasScreenLocked = Orientation.lock(['portrait-primary', 'portrait-secondary']);\n\nconsole.info('Was screen locked? ', wasScreenLocked);\n```\n\n**Unlocking the screen**\n\n```javascript\nconst wasScreenUnlocked = Orientation.unlock();\nconsole.info('Was screen unlocked? ', wasScreenUnlocked);\n```\n\n**Check if the screen orientation was `locked` before**\n\n```javascript\nconst wasScreenOrientationLocked = Orientation.isLocked();\nconsole.info('Was screen orientation locked before? ', wasScreenOrientationLocked);\n```\n\n\u003cbr /\u003e\n\n## Release History\n* 3.0.0\n    * `SuperQuery` was rebuilt in order to improve its syntax and readability.\n    * REMOVED: `configureBreakpoints()` to set custom breakpoints, use `SuperQuery(myCustombreakpoints)` instead\n    * NEW: **No more `parentheses`**! Now `SuperQuery` has a fluid and human likely style.\n      * Before: `SuperQuery().all().and().maxWidth().md().css...`\n      * Now: `SuperQuery().all.and.maxWidth.md.css...`\n    * NEW: `.of(value)` method is introduced for all the cases you need to declare a value.\n      * E.g. `SperQuery().minWidth.of('300px').css...`\n    * `Server Side Render` tested.\n* 2.0.0\n    * NEW: Option to override  `bult-in breakpoints` directly from `SuperQuery(myCustombreakpoints)`\n    * DEPRECATED: `configureBreakpoints()` to set custom breakpoints, use `SuperQuery(myCustombreakpoints)` instead\n* 1.0.0\n    * Stable version\n    * NEW: Created `Orientation` - Screen Orientation management\n    * NEW: Created `Example` (Demo) of Super-Query\n    * Improved folder structure\n* 0.1.1\n    * Fixed typo in the `ToString` method used for tests\n    * Minor fixes and improvement in the project's documentation\n* 0.1.0\n    * First release\n    * NEW: Created `configureBreakpoints()` to set custom breakpoints\n* 0.0.1\n    * Work in progress\n\n\u003cbr /\u003e\n\n## Meta\n\n### Author\n**Marcos Gonçalves** – [LinkedIn](http://linkedin.com/in/themgoncalves/) – [Website](http://www.themgoncalves.com)\n\n### License\nDistributed under the MIT license. [Click here](/LICENSE) for more information.\n\n[https://github.com/themgoncalves/super-query](https://github.com/themgoncalves/super-query)\n\n## Contributing\n\n1. Fork it (\u003chttps://github.com/themgoncalves/super-query/fork\u003e)\n2. Create your feature branch (`git checkout -b feature/fooBar`)\n3. Commit your changes (`git commit -m ':zap: Add some fooBar'`)\n4. Push to the branch (`git push origin feature/fooBar`)\n5. Create a new Pull Request\n\n\u003c!-- Markdown link \u0026 img dfn's --\u003e\n\n[vulnerabilities-image]: https://snyk.io/test/github/themgoncalves/super-query/badge.svg\n[vulnerabilities-url]: https://snyk.io/test/github/themgoncalves/super-query\n[stars-image]: https://img.shields.io/github/stars/themgoncalves/super-query.svg\n[stars-url]: https://github.com/themgoncalves/super-query/stargazers\n[releases-image]: https://img.shields.io/github/downloads/atom/atom/total.svg\n[releases-url]: https://github.com/themgoncalves/react-redux-async-starter-kit\n[travis-ci-image]: https://travis-ci.org/themgoncalves/super-query.svg?branch=master\n[travis-ci-url]: https://travis-ci.org/themgoncalves/super-query\n[coveralls-image]: https://coveralls.io/repos/github/themgoncalves/super-query/badge.svg?branch=master\n[coveralls-url]: https://coveralls.io/github/themgoncalves/super-query?branch=master\n[npm-image]: https://img.shields.io/npm/v/@themgoncalves/super-query.svg\n[npm-url]: https://www.npmjs.com/package/@themgoncalves/super-query\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthemgoncalves%2Fsuper-query","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthemgoncalves%2Fsuper-query","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthemgoncalves%2Fsuper-query/lists"}