# morajabi/styled-media-query

💅💍  Better media queries for styled-component

Repository: https://github.com/morajabi/styled-media-query
Canonical: https://ross.abutalabs.com/products/styled-media-query
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2023-01-07T04:06:33+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3342, "days_push": 1334, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1308, forks 48 (observed 2026-08-28T04:04:19.225916+00:00)

## What it is
A small JavaScript library that provides a nicer, breakpoint-based syntax for writing CSS media queries in styled-components. It supports custom breakpoints, px/em/rem units, and lessThan/greaterThan/between helpers via tagged template literals.

## Use cases
- write responsive styles in styled-components
- define custom breakpoints for css-in-js components
- convert px breakpoints to rem or em
- apply styles between two screen widths
- generate min-width and max-width media queries

## When to choose
- you use styled-components and want cleaner media query syntax
- you need reusable, named breakpoints across a React app
- you want px-to-rem/em conversion for accessibility

## When to avoid
- you don't use styled-components or another css-in-js library
- you need a full responsive layout framework rather than media query helpers
- you need actively developed software with frequent updates

## Facets
- artifact type: library
- maturity: maintenance
- function: css-framework, ui-components
- domain: frontend, web-development, web-design
- platform: browser, cross-platform
- tags: styled-components, media-queries, responsive-design, css-in-js, breakpoints, nodejs

## Member repositories
- morajabi/styled-media-query (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:19.225916+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:50:05.443093+00:00, confidence not recorded.
  - readme: https://github.com/morajabi/styled-media-query (fetched 2026-08-28T04:04:19.225916+00:00, sha e119c8b0b5d5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
