# media-query-sizes

> Simple media query breakpoints for Styled Components, following the DevTools standard dimensions.

Latest version **1.0.2** (published 2022-04-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install media-query-sizes
pnpm add media-query-sizes
yarn add media-query-sizes
bun add media-query-sizes
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2022-04-05 |
| First published | 2022-04-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Rian Oliveira |
| Maintainers | riandeoliveira |
| Keywords | breakpoints, css-in-js, css, dimensions, media-queries, media, query, react, sizes, styled-components |

## Links

- npm: https://www.npmjs.com/package/media-query-sizes
- npm.io page: https://npm.io/package/media-query-sizes

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2022-04-05

## README

<h1 align="center">media-query-sizes</h1>

## About

Simple [media query](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries) breakpoints for [Styled Components](https://styled-components.com/), following the [DevTools](https://en.wikipedia.org/wiki/Web_development_tools) standard dimensions.

## Available Breakpoints

```
desktop: 2560px
laptopL: 1440px
laptop: 1024px
tablet: 768px
mobileL: 425px
mobileM: 375px
mobileS: 320px
```

## Installation

`npm install media-query-sizes --save-dev`

## Example

```tsx
import styled from "styled-components";
import device from "media-query-sizes";

export const Card = styled.div`
  display: flex;

  @media ${device.laptop} {
    flex-direction: column;
  }

  /* Becomes */

  @media (max-width: 1024px) {
    flex-direction: column;
  }
`;
```

## License

[MIT](https://github.com/riandeoliveira/media-query-sizes/blob/main/LICENSE)

<p align="center">Made with 💙 by <a href="https://github.com/riandeoliveira"><strong>Rian Oliveira</strong></a></p>

---
_Source: https://npm.io/package/media-query-sizes · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
