{"id":15066664,"url":"https://github.com/digitaledgeit/sass-breakpoints","last_synced_at":"2026-02-22T09:11:29.054Z","repository":{"id":36794761,"uuid":"41101564","full_name":"digitaledgeit/sass-breakpoints","owner":"digitaledgeit","description":"SASS mixins for named breakpoints.","archived":false,"fork":false,"pushed_at":"2017-01-16T02:14:01.000Z","size":6,"stargazers_count":10,"open_issues_count":2,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-11T21:47:40.017Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/digitaledgeit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-20T14:51:29.000Z","updated_at":"2022-02-22T20:05:34.000Z","dependencies_parsed_at":"2022-08-29T04:01:13.376Z","dependency_job_id":null,"html_url":"https://github.com/digitaledgeit/sass-breakpoints","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/digitaledgeit/sass-breakpoints","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitaledgeit%2Fsass-breakpoints","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitaledgeit%2Fsass-breakpoints/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitaledgeit%2Fsass-breakpoints/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitaledgeit%2Fsass-breakpoints/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digitaledgeit","download_url":"https://codeload.github.com/digitaledgeit/sass-breakpoints/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitaledgeit%2Fsass-breakpoints/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259581317,"owners_count":22879834,"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-09-25T01:10:36.342Z","updated_at":"2026-02-22T09:11:29.009Z","avatar_url":"https://github.com/digitaledgeit.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sass-breakpoints\n\nSASS mixins for named breakpoints.\n\n- Named breakpoints improve readability and maintainability\n- Customisable breakpoints allow you to target whatever devices you want\n- Breakpoints are set in `em` and scale with the user's base font-size\n\n## Installation\n\n    npm install --save sass-breakpoints\n\n## Usage\n\n    $ sass-composer example/example.scss -o compiled.css\n\nSCSS: `example/settings.scss`\n\n    //these are the default settings if not specified by the user\n    $breakpoints: (\n      \"xs\": 0px,    //targeting \u003c568px devices (e.g. all iPhones \u003c6)\n      \"sm\": 568px,  //targeting \u003e=568px devices (e.g. iPhones \u003e=6)\n      \"md\": 768px,  //targeting \u003e=768px tablets (e.g. portrait iPad)\n      \"lg\": 1004px  //targeting \u003e=1024px tablets (e.g. landscape iPad) and desktops but leaving room for the scroll bar\n    );\n\nSCSS: `example/example.scss`\n\n    @import \"./settings\";\n    @import \"sass-breakpoint\";\n    \n    @include breakpoint('sm') {           //from `sm` (\u003e=0px)\n      body {\n        background-color: red;\n      }\n    }\n    \n    @include breakpoint('md', 'lg') {     //from `md` to `lg - 1px` (\u003e=768px to \u003c1024px)\n      body {\n        background-color: green;\n      }\n    }\n    \n    @include breakpoint('lg') {           //from `lg` (\u003e=1024px)\n      body {\n        background-color: blue;\n      }\n    }\n    \nCSS: `compiled.scss`\n        \n    @media (min-width: 35.5em) {\n      body {\n        background-color: red; } }\n    \n    @media (min-width: 48em) and (max-width: 62.6875em) {\n      body {\n        background-color: green; } }\n    \n    @media (min-width: 62.75em) {\n      body {\n        background-color: blue; } }\n\n## API\n    \n### breakpoint($from, $to: null)\n\n    @include breakpoint('xs') {           //\u003e=0px\n      body { color: red; }\n    }\n    \n    @include breakpoint('sm, 'md') {      //\u003e=568px but \u003c768px\n      body { color: blue; }\n    }\n \n### breakpoint-lt($to)\n\n    @include breakpoint-lt('md') {        //\u003c768px\n      body { color: red; }\n    }\n\n### breakpoint-lte($to)\n\n    @include breakpoint-lte('md') {       //\u003c=768px\n      body { color: red; }\n    }\n\n### breakpoint-gt($from)\n\n    @include breakpoint-gt('md') {        //\u003e768px\n      body { color: red; }\n    }\n\n### breakpoint-lte($to)\n\n    @include breakpoint-gte('md') {       //\u003e=768px\n      body { color: red; }\n    }\n\n### breakpoint-between($from, $to)\n    \n    @include breakpoint-between('sm', 'md') { //\u003e568px but \u003c768px\n      body { color: red; }\n    }\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2015 James Newell","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitaledgeit%2Fsass-breakpoints","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigitaledgeit%2Fsass-breakpoints","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitaledgeit%2Fsass-breakpoints/lists"}