All Projects → karolis-sh → tailwind-bootstrap-grid

karolis-sh / tailwind-bootstrap-grid

Licence: MIT License
Tailwind CSS plugin that generates Bootstrap's flexbox grid

Programming Languages

javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to tailwind-bootstrap-grid

tetris-grid
◼️Lightweight and simple CSS grid
Stars: ✭ 16 (-83.33%)
Mutual labels:  flexbox, flexbox-grid
fortune
🔮Fortune is your friendly CSS properties framework.
Stars: ✭ 16 (-83.33%)
Mutual labels:  postcss, flexbox
tailwind-caret-color
Tailwindcss plugin to color caret in input fields
Stars: ✭ 12 (-87.5%)
Mutual labels:  postcss, tailwindcss
Sapper Firebase Typescript Graphql Tailwindcss Actions Template
A template that includes Sapper for Svelte, Firebase functions and hosting, TypeScript and TypeGraphQL, Tailwind CSS, ESLint, and automatic building and deployment with GitHub Actions
Stars: ✭ 111 (+15.63%)
Mutual labels:  postcss, tailwindcss
variantwind
Most elegant way to work with TailwindCSS variants in Vue
Stars: ✭ 45 (-53.12%)
Mutual labels:  tailwindcss, tailwindcss-plugin
Mobi.css
A lightweight, scalable, mobile-first CSS framework
Stars: ✭ 2,348 (+2345.83%)
Mutual labels:  postcss, flexbox
tailwind-color-alpha
Automatic alpha variants for your Tailwind CSS colors based on your opacity config
Stars: ✭ 21 (-78.12%)
Mutual labels:  tailwindcss, tailwindcss-plugin
Awesome Tailwindcss
😎 Awesome things related to Tailwind CSS
Stars: ✭ 7,791 (+8015.63%)
Mutual labels:  postcss, tailwindcss
stencil-tailwind-plugin
Plugin for using tailwindcss with StencilJS
Stars: ✭ 17 (-82.29%)
Mutual labels:  postcss, tailwindcss
postcss-typed-css-classes
PostCSS plugin that generates typed entities from CSS classes for chosen programming language.
Stars: ✭ 12 (-87.5%)
Mutual labels:  postcss, tailwindcss
Tailwindcss
A utility-first CSS framework for rapid UI development.
Stars: ✭ 50,879 (+52898.96%)
Mutual labels:  postcss, tailwindcss
tailwindcss-postcss-browsersync-boilerplate
Tailwind CSS + PostCSS + BrowserSync boilerplate
Stars: ✭ 28 (-70.83%)
Mutual labels:  postcss, tailwindcss
Postcss Elm Tailwind
put some tailwind in your elm
Stars: ✭ 80 (-16.67%)
Mutual labels:  postcss, tailwindcss
A17t
An atomic design toolkit for pragmatists
Stars: ✭ 236 (+145.83%)
Mutual labels:  postcss, tailwindcss
Sapper Template Firebase
Starter Rollup template for Sapper apps with Firebase functions based on https://github.com/nhristov/sapper-template-rollup.
Stars: ✭ 29 (-69.79%)
Mutual labels:  postcss, tailwindcss
intellij-tailwind-css
Tailwind IntelliJ Plugin Tailwind Cheat Sheet
Stars: ✭ 49 (-48.96%)
Mutual labels:  tailwindcss, tailwindcss-plugin
Postcss Flexibility
PostCSS plugin for Flexibility polyfill
Stars: ✭ 304 (+216.67%)
Mutual labels:  postcss, flexbox
Tailwindcss Dark Mode
🌚 A Tailwind CSS plugin that adds variants for dark mode
Stars: ✭ 649 (+576.04%)
Mutual labels:  postcss, tailwindcss
Bootstrap4-RTL
🅱 An Awesome RTL bootstrap 4 with gulp and postcss
Stars: ✭ 89 (-7.29%)
Mutual labels:  postcss, bootstrap4
40-lines-of-Sass
Full featured flexbox grid in 40 lines of Sass
Stars: ✭ 20 (-79.17%)
Mutual labels:  flexbox, flexbox-grid

tailwind-bootstrap-grid

npm version Build Status License: MIT

Bootstrap v5 flexbox grid system as a Tailwind CSS plugin.

Check the demo.

Installation

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 base;
@tailwind components;
@tailwind utilities;

This will generate Bootstrap v5 flexbox grid.

* NOTE: When using the .container class from this plugin you will need to disable the core container plugin as both plugins expose a .container class.

Features & Tailwind CSS options support

  • custom screens
  • custom separator
  • custom prefix
  • important
  • rtl support

Options

  • Original Bootstrap grid's options:

    • gridColumns (default - 12) - grid size
    • gridGutterWidth (default - "1.5rem") - container and rows gutter width
    • gridGutters (default - { 0: 0 }) - gutter variable class steps (--bs-gutter-x, --bs-gutter-y)
    • containerMaxWidths (default - {}) - the max-width container value for each breakpoint
  • Extra options:

    • generateContainer (default - true) - whether to generate .container and .container-fluid classes
    • rtl (default - false) - rtl support (.offset-x classes will start responding to [dir=ltr] / [dir=rtl])
    • respectImportant (default - true) - whether it should respect the important root config option

FAQ

  1. Why my .container doesn't have padding? This plugin will not work properly with core container plugin as both plugins expose a .container class.
  2. How to use rtl css? Set the ltr or rtl dir attribute on your container (usually the root html).
  3. Is there a Bootstrap v4 grid implementation? Yes, use tailwind-bootstrap-grid@3.

Related

postcss-bootstrap-4-grid

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].