emomq-styles

0.0.3 • 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 i emomq-styles

Usage

import { css } from "@emotion/react";
import { mq, rd } from "emomq-styles";

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-styles

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

9.03 kB

Total Files

12

Last publish

Collaborators

  • setohe09