Catalog npm
PACKAGE EXPLORERView in registry

@-ui/mq

npm

A utility function for adding stored media queries and breakpoints to dash-ui styles

-ui-ui breakpointdashdash uidash ui breakpointdash ui breakpointsdash ui media queriesmq
Versions collected8
Direct dependencies14From release 2.1.0
Last observed20 Oct, 21:49 UTC

README

Current package documentation

@-ui/mq

Bundlephobia Types Code coverage Build status NPM Version MIT License

npm i @-ui/mq

A utility function for adding stored media queries and breakpoints to -ui styles

Quick Start

import mq from '@-ui/mq'
import styles from '@-ui/styles'

const breakpoint = mq({
  // 0px
  phone: 'only screen and (min-width: 0em)',
  // 560px
  tablet: 'only screen and (min-width: 35em)',
  // 1280px
  desktop: 'only screen and (min-width: 80em)',
})

const responsiveBox = styles({
  default: `
    display: block;
    background: #000;
    width: 400px;
    height: 400px;
  `,
  big: breakpoint({
    default: `
      width: 800px;
      height: 800px;
    `,
    desktop: `
      width: 1000px;
      height: 1000px;
    `,
  }),
  small: `
    width: 300px;
    height: 300px;

    ${breakpoint('phone')} {
      width: 200px;
      height: 200px;
    }
  `,
})

API

LICENSE

MIT

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 8

Collected releases
VersionPublishedDirect dependenciesOpen version
2.1.0Registry latest22 Apr 202014
2.0.220 Apr 202014
2.0.120 Jan 202016
2.0.019 Jan 202016
1.0.319 Jan 202016
1.0.219 Jan 202016
1.0.117 Jan 202016
1.0.017 Jan 202016

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
dash-ui/mq

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:49 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:985ee05575437232046a22453961439d9513c5aa33c3b400ccb6903076d683e8