Skip to content

How to disable just .table from the display plugin? #3604

Answered by tordans
tordans asked this question in Help
Discussion options

You must be logged in to vote

What we ended up doing:

Part 1: in our tailwind.config.js

  corePlugins: {
    display: false,
  }

Part 2: in our tailwind.css

/*
  Tailwind adds .table-classes as part of its display-corePlugin.
  Those are in conflict with Bootstrap's .table.
  Therefore, we disable the plugin in tailwind.config.js
  and add all but the .table*-Util classes back manually below.

  List of display corePlugin classes https://github.com/tailwindlabs/tailwindcss/blob/master/src/plugins/display.js
*/
@layer utilities {
  @responsive {
    .block {
      display: block;
    }
    .inline-block {
      display: inline-block;
    }
    .inline {
      display: inline;
    }
    .flex {
      display: flex;
    …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@simonswiss
Comment options

Answer selected by simonswiss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants