{"id":13572521,"url":"https://github.com/eduardoboucas/include-media","last_synced_at":"2025-05-14T01:08:37.566Z","repository":{"id":25074421,"uuid":"28494793","full_name":"eduardoboucas/include-media","owner":"eduardoboucas","description":"📐 Simple, elegant and maintainable media queries in Sass","archived":false,"fork":false,"pushed_at":"2024-04-23T01:26:22.000Z","size":4487,"stargazers_count":2560,"open_issues_count":4,"forks_count":189,"subscribers_count":48,"default_branch":"master","last_synced_at":"2024-05-23T06:01:38.242Z","etag":null,"topics":["breakpoint","mediaquery","sass","scss"],"latest_commit_sha":null,"homepage":"https://eduardoboucas.github.io/include-media/","language":"SCSS","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/eduardoboucas.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-12-26T00:39:21.000Z","updated_at":"2024-06-18T11:19:43.034Z","dependencies_parsed_at":"2023-02-13T20:31:33.484Z","dependency_job_id":"c15d059f-65dd-460b-af1c-3edb4ff4a35c","html_url":"https://github.com/eduardoboucas/include-media","commit_stats":{"total_commits":196,"total_committers":23,"mean_commits":8.521739130434783,"dds":0.5612244897959184,"last_synced_commit":"b7c413c3f81758ed28e893d28a9e3004f802274a"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduardoboucas%2Finclude-media","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduardoboucas%2Finclude-media/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduardoboucas%2Finclude-media/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduardoboucas%2Finclude-media/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eduardoboucas","download_url":"https://codeload.github.com/eduardoboucas/include-media/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248154581,"owners_count":21056540,"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":["breakpoint","mediaquery","sass","scss"],"created_at":"2024-08-01T14:01:25.832Z","updated_at":"2025-04-10T03:39:58.521Z","avatar_url":"https://github.com/eduardoboucas.png","language":"SCSS","funding_links":[],"categories":["SCSS"],"sub_categories":[],"readme":"\u003ca href=\"https://eduardoboucas.github.io/include-media/\"\u003e!['At' sign](https://eduardoboucas.github.io/include-media/assets/images/logo.png)\u003c/a\u003e\n\n# include-media [![Build Status](https://travis-ci.org/eduardoboucas/include-media.svg?branch=master)](https://travis-ci.org/eduardoboucas/include-media)\n\u003e Simple, elegant and maintainable media queries in Sass\n\n[![NPM badge](https://nodei.co/npm/include-media.png)](https://www.npmjs.com/package/include-media)\n\n## What?\n\n**include-media** is a Sass library for writing CSS media queries in an easy and maintainable way, using a natural and simplistic syntax.\n\n## 2.0 Release\n\nAs of 2.0 *include-media* only supports [sass (dart-sass)](https://sass-lang.com/dart-sass/) 1.25+ and no longer supports previous implementations of sass. eg lib-sass, ruby-sass.\n\n## Why?\n\nI spent quite some time experimenting with different libraries and mixins available out there, but eventually all of them failed to do everything I needed in an elegant way. Some of them wouldn't let me mix set breakpoints with case-specific values, others wouldn't properly handle the CSS OR operator and most of them had a syntax that I found complicated and unnatural.\n\n**include-media** was the result of that experience and it includes all the features I wish I had found before, whilst maintaining a simplistic and natural syntax.\n\n## How to install\n\n- With npm: `npm install include-media`\n- With yarn: `yarn add include-media`\n- With Bower: `bower install include-media`\n- With Rails: `gem 'include_media_rails'` ([maintained by KaoruDev](https://github.com/KaoruDev/include_media_rails))\n- Manually: get [this file](https://raw.githubusercontent.com/eduardoboucas/include-media/master/dist/_include-media.scss)\n\nFinally, include the file in your project using an `@import` statement.\n\n## How to use\n\nExamples can be found [here](https://eduardoboucas.github.io/include-media/#features).\n\n## Plugins\n\n- [include-media-export](https://github.com/eduardoboucas/include-media-export) - Reference **include-media** breakpoints in JavaScript.\n- [include-media-columns](https://github.com/eduardoboucas/include-media-columns) - Generate column classes using the [BEMIT naming convention](https://csswizardry.com/2015/08/bemit-taking-the-bem-naming-convention-a-step-further/), automatically referencing **include-media** breakpoints.\n- [include-media-spread](https://github.com/jackmcpickle/include-media-spread) - Calculates the difference between property values and distributes them through your **include-media** breakpoints.\n- [flex_e_ble](https://github.com/jackmcpickle/flex_e_ble) - Uses your **include-media** breakpoints to create your own flexible class naming structure on top of a `flex` based grid with `inline-block` fallback for IE8+ compatibility.\n- [include-media-grid](https://github.com/tszarzynski/include-media-grid) - An **include-media** plugin for generating grid classes based on the flex display.\n- [im-to-em](https://gist.github.com/eduardoboucas/84144cd85cbd2ad4db1ca8b902585ca0) - A tiny function to convert **include-media** breakpoints from `px` to `em`.\n- [include-media-hidden-classes](https://github.com/eduardoboucas/include-media-hidden-classes) - An **include-media** plugin to generate classes for hiding elements.\n- [Fluid-Size](https://github.com/black7375/Fluid-Size): Use **include-media** breakepoints to provide the `fit size` for the device.\n\n## Learn more\n\n- [https://eduardoboucas.github.io/include-media/](https://eduardoboucas.github.io/include-media/)\n- [Documentation](https://eduardoboucas.github.io/include-media/documentation/)\n- [Approaches to Media Queries in Sass](https://css-tricks.com/approaches-media-queries-sass/) (CSS-Tricks)\n- [Write Simple, Elegant and Maintainable Media Queries with Sass](https://davidwalsh.name/sass-media-query) (David Walsh blog)\n- [Generating Alternative Stylesheets for Browsers Without @media](https://davidwalsh.name/generating-alternative-stylesheets-browsers-media) (David Walsh blog)\n- [Create Simple Inline Media Queries with include-media](https://webdevstudios.com/2015/05/18/create-simple-inline-media-queries-include-media/) (WebDevStudios)\n- [Breakpoints and Tweakpoints in Sass](https://www.sitepoint.com/breakpoints-tweakpoints-sass/) (SitePoint)\n\n## Related projects\n\n- [include-media-or](https://github.com/Nirazul/include-media-or) - A fork of **include-media** with support for complex queries with logical disjunctions (maintained by [Nirazul](https://github.com/Nirazul)).\n\n## The authors\n\n**include-media** was created by [Eduardo Bouças](https://twitter.com/eduardoboucas) and [Kitty Giraudel](https://twitter.com/kittygiraudel). The lead maintainer is [Jack McNicol](https://github.com/jackmcpickle).\n\n## We want to hear from you\n\nWe'll be on the lookout for your [issues](https://github.com/eduardoboucas/include-media/issues) and [pull requests](https://github.com/eduardoboucas/include-media/pulls) — but make sure you read [this](https://github.com/eduardoboucas/include-media/blob/master/CONTRIBUTING.md) before submitting any code!\n\n## License\n\nThis project is licensed under [the terms of the MIT license](https://github.com/eduardoboucas/include-media/blob/master/LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feduardoboucas%2Finclude-media","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feduardoboucas%2Finclude-media","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feduardoboucas%2Finclude-media/lists"}