emomq

1.0.0 • Public • Published

Emomq - Media Queries Library

npm version license GitHub stars

A powerful and easy-to-use CSS media queries library for responsive web design.

Installation

npm install emomq

Usage

import { css } from "@emotion/react";
import { mq, rd } from "your-package-name";

const responsiveStyles = css`
  font-size: 16px;
  line-height: 1.5;

  ${mq.sm`
    font-size: 18px;
  `}

  ${rd.md`
    font-size: 14px;
  `}
`;

The mq and rd functions are used to generate media queries based on the provided breakpoints. In the above example, we define a set of responsive styles using the css function from @emotion/react, and then we use the mq function to apply additional styles for screens with a minimum width of 768px and the rd function to apply styles for screens with a maximum width of 1024px.

Features

  • Provides a collection of commonly used breakpoints for different screen sizes.
  • Easily generate media queries using a simple and intuitive syntax.
  • Supports both min-width and max-width media queries.
  • Convenient and powerful utility for handling responsive design.

Documentation

Coming soon 🧑🏻‍💻

License

This project is licensed under the MIT License.

Package Sidebar

Install

npm i emomq

Weekly Downloads

3

Version

1.0.0

License

MIT

Unpacked Size

9.63 kB

Total Files

13

Last publish

Collaborators

  • seto_minds