🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

emomq

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

emomq

emomq an enchanting npm package that weaves the magic of Emotion with the power of media queries, offering you an effortless journey into the realm of responsive web design. With a wave of EmoQuerify's wand, your React applications will adapt gracefully t

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

responsive

FAQs

Package last updated on 31 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts