Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@volue/design-media-queries

Package Overview
Dependencies
Maintainers
0
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@volue/design-media-queries

Media queries for Volue design primitives

  • 1.3.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

@volue/design-media-queries

Media query primitives/tokens to be used across Volue's products

Screenshot

Installation

npm install @volue/design-media-queries --save
# or
yarn add @volue/design-media-queries

Usage

JavaScript

In JavaScript, design token names are formatted in lower camelCase.

const tokens = require('@volue/design-media-queries');
console.log(tokens.mqLargeAndUp); // screen and ( min-width: 48.75em )

In JSON, design token names are formatted in SNAKE_CASE.

const tokens = require('@volue/design-media-queries/dist/index.json');
console.log(tokens['MQ_LARGE_AND_UP']); // screen and ( min-width: 48.75em )

Sass

Sass variables and map keys are formatted in kebab-case.

// Using variables
@import '~@volue/design-media-queries/dist/index';

@media #{$mq-large-and-up} {
  body {
    padding: 1rem;
  }
}

FAQs

Package last updated on 09 Oct 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc