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.0.0
Source
npmnpm
Version published
Weekly downloads
4.7K
-3.13%
Maintainers
1
Weekly downloads
 
Created
Source

tailwind-bootstrap-grid

npm version Build Status License: MIT code style: prettier

Bootstrap v4 flexbox grid system as a tailwindcss plugin.

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.

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

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,
    }),
  ],
};

Tailwind configuration support

  • ✅ custom screens
  • ✅ custom separator
  • ⛔️ custom prefix

postcss-bootstrap-4-grid

License

MIT

Keywords

bootstrap

FAQs

Package last updated on 28 Jan 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