npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@prestashopcorp/ps-media-query

v0.0.1

Published

A lightweight and scalable SCSS library for managing responsive design in a modern way, with customizable media query mixins. Perfect for PrestaShop themes and contemporary web projects.

Downloads

3

Readme

@prestashopcorp/ps-media-query

npm version

A lightweight SCSS library providing intuitive mixins for responsive design. Built for PrestaShop themes and modern web projects.

Features

  • 🎯 Easy-to-use tools for managing media queries (up, down, only, between)
  • 🛠️ Customizable breakpoints and media expressions
  • 📱 Uses modern media query range syntax (@media (width >= 768px)). Compatible with modern browsers caniuse.com/css-media-range-syntax
  • 🪲 Debug mode to help you visualize which media queries is triggered
  • 📦 Zero dependencies

Installation

You can install the library in your project using npm:

npm install @prestashopcorp/ps-media-query

Usage

Load the library in your project:

@use "@prestashopcorp/ps-media-query" as *;

You can also load the library using with attributes to define configuration options:

@use "@prestashopcorp/ps-media-query" as * with (
  // Enable debug mode
  $debug: true,
  // Define custom breakpoints
  $breakpoints: (
    // Your custom breakpoints
    "xs": 0,
    "sm": 576px,
    // ...
  )
);

Use the existing mixins to create media queries:

.my-element {
  // Will apply styles for screens larger than md breakpoint
  @include ps-media-up(md) {
    color: red;
  }
}

Old way to load the library with import:

// Need to override config ?
// Define config options before importing the library
$debug: true;

// Import the library
@import "@prestashopcorp/ps-media-query";

Default Breakpoints

The library includes a set of default breakpoints for common screen sizes. You can customize these or define your own. Note: smallest breakpoint has to be set to 0.

$breakpoints: (
  "xs": 0,
  "sm": 576px,
  "md": 768px,
  "lg": 1024px,
  "xl": 1400px,
) !default;

Available Mixins

  • ps-media-up($breakpoint): Applies styles for screens larger than the specified breakpoint
  • ps-media-down($breakpoint): Applies styles for screens smaller than the specified breakpoint
  • ps-media-only($breakpoint): Applies styles only for the specified breakpoint
  • ps-media-between($min, $max): Applies styles between two breakpoints

Custom Media Query

You can create custom media queries by combining mixins and expressions.

@include ps-media-up(md, $expressions: (get-expression(landscape), get-expression(hover))) {
  .my-element {
    color: red;
  }
}

Debug Mode

Enable debug mode to visualize which media queries breakpoints are applied in your browser's console.

@use "@prestashopcorp/ps-media-query" as * with (
  $debug: true
);