tailwind-bootstrap-grid

Bootstrap v5 flexbox grid system as a Tailwind CSS plugin.
Check the demo playground.
Installation
npm i -D tailwind-bootstrap-grid
In your index.css
file:
@import 'tailwindcss';
@plugin 'tailwind-bootstrap-grid' {
container_max_widths:
'sm', '540px', 'md', '720px', 'lg', '960px', 'xl', '1140px', '2xl', '1320px';
}
Or via tailwind.config.js
file:
module.exports = {
plugins: [
require('tailwind-bootstrap-grid')({
container_max_widths: [
'sm',
'540px',
'md',
'720px',
'lg',
'960px',
'xl',
'1140px',
'2xl',
'1320px',
],
}),
],
};
This will generate the Bootstrap v5 flexbox grid.
Options
FAQ
- How to use rtl css? Set the
ltr
or rtl
dir
attribute on your container (usually the root html
).
- Is there a Bootstrap v4 grid implementation? Yes, use
tailwind-bootstrap-grid@3
.
Related
postcss-bootstrap-4-grid