JSPM

  • Created
  • Published
  • Downloads 1754857
  • Score
    100M100P100Q207531F
  • License MIT

Package Exports

  • @tailwindcss/container-queries
  • @tailwindcss/container-queries/src/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@tailwindcss/container-queries) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@tailwindcss/container-queries

A plugin that provides utilities for container queries.

Installation

Install the plugin from npm:

npm install @tailwindcss/container-queries

Then add the plugin to your tailwind.config.js file:

// tailwind.config.js
module.exports = {
  theme: {
    // ...
  },
  plugins: [
    require('@tailwindcss/container-queries'),
    // ...
  ],
}

Usage

TODO

Configuration

You can configure which values are available for this plugin under the containers key in your tailwind.config.js file:

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      containers: {
        xs: '(min-width: 20rem)',
        sm: '(min-width: 24rem)',
        md: '(min-width: 28rem)',
        lg: '(min-width: 32rem)',
        xl: '(min-width: 36rem)',
        // etc...
      }
    }
  },
}