
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
tailwind-bootstrap-grid
Advanced tools
Bootstrap v4 flexbox grid system as a Tailwind CSS plugin.
Check the demo.
npm i -D tailwind-bootstrap-grid
In tailwind.js
file:
module.exports = {
plugins: [
require('tailwind-bootstrap-grid')({
containerMaxWidths: { sm: '540px', md: '720px', lg: '960px', xl: '1140px' },
}),
],
};
And don't forget to include components
and utilities
in your tailwind base
css file:
@tailwind preflight;
@tailwind components;
@tailwind utilities;
This will generate Bootstrap v4 flexbox grid.
* NOTE: When using the .container
class from this plugin you will need to
disable the core
container container plugin as both plugins
expose a .container
class.
Original Bootstrap grid's options:
gridColumns
(default - 12
) - grid sizegridGutterWidth
(default - "30px"
) - container and rows gutter widthcontainerMaxWidths
(default - {}
) - the max-width
container value for
each breakpointExtra options:
gridGutterWidths
(default - {}
) - container gutter width for each breakpointgenerateNoGutters
(default - true
) - whether to generate .no-gutter
classgenerateContainer
(default - true
) - whether to generate .container
and
.container-fluid
classesrtl
(default - false
) - rtl support (.offset-x
classes will start
responding to [dir=ltr]
/ [dir=rtl]
).container
doesn't have padding? This plugin will not work properly
with core container plugin as both
plugins expose a .container
class.ltr
or rtl
dir
attribute on your container (usually the root html
).MIT
FAQs
Tailwind CSS plugin to generate Bootstrap flexbox grid system.
The npm package tailwind-bootstrap-grid receives a total of 4,485 weekly downloads. As such, tailwind-bootstrap-grid popularity was classified as popular.
We found that tailwind-bootstrap-grid demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.