You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

tailwind-bootstrap-grid

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tailwind-bootstrap-grid

Tailwindcss plugin to generate Bootstrap flexbox grid system.

1.2.0
Source
npmnpm
Version published
Weekly downloads
4.6K
-2.75%
Maintainers
1
Weekly downloads
 
Created
Source

tailwind-bootstrap-grid

npm version Build Status License: MIT code style: prettier Greenkeeper badge

Bootstrap v4 flexbox grid system as a tailwindcss plugin.

Check the demo.

Installation

npm i -D tailwind-bootstrap-grid

In tailwind.js file:

module.exports = {
  plugins: [require('tailwind-bootstrap-grid')()],
};

And don't forget to include components and utilities in your tailwind base css file:

@tailwind preflight;
@tailwind components;
@tailwind utilities;

This will generate Boostrap v4 flexbox grid.

* NOTE: This plugin will not work with tailwindcss/plugins/container as both plugins expose a .container class

Features & Tailwind options support

  • ✅ custom screens
  • ✅ custom separator
  • 🚧 custom prefix (no-gutters class doesn't fully support it)
  • ✅ rtl

Options

  • gridColumns (default - 12) - grid size
  • gridGutterWidth (default - "30px") - gutter width
  • generateContainer (default - true) - whether to generate .container and .container-fluid classes
  • generateNoGutters (default - true) - whether to generate .no-gutter class
  • containerMaxWidths (default - { sm: '540px', md: '720px', lg: '960px', xl: '1140px' }) - the max-width container value for each breakpoint
  • rtl (default - false) - rtl support (inverses the offset classes)

For example to generate 10 column grid with no gutter and skip the container:

module.exports = {
  plugins: [
    require('tailwind-bootstrap-grid')({
      gridColumns: 10,
      gridGutterWidth: 0,
      generateNoGutters: false,
      generateContainer: false,
    }),
  ],
};

postcss-bootstrap-4-grid

License

MIT

Keywords

bootstrap

FAQs

Package last updated on 15 Apr 2019

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