Introducing ReUI:Open-source UI components and apps built with React, Next.js and Tailwind CSS
Browse ReUI

DataTable CSS Not Loaded using Tailwind


DataTable layout not styling using Tailwind CSS.
I tried Bootsrap CSS, DataTable styling perfectly, but I change to metronic CSS, style is gone.
Fyi, I use Demo 1 with Tailwind.
Here My app.scss code


@tailwind base;
@tailwind components;
@tailwind utilities;

// Bootstrap
// @import "bootstrap/scss/bootstrap";

@import "../metronic/css/styles.css";

/* Keenicons */
@import "../metronic/vendors/keenicons/duotone/style.css";
@import "../metronic/vendors/keenicons/filled/style.css";
@import "../metronic/vendors/keenicons/outline/style.css";
@import "../metronic/vendors/keenicons/solid/style.css";


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (3)


Hi Donny,

The Bootstrap and Tailwind versions of Metronic are built with entirely different layouts and structures. When upgrading to Metronic 9, you’ll be using a completely new version, and major versions are not directly migratable.

Let me know if you need any further clarification!

Thanks.


Deleted comment

Hi Donny

Have you updated the HTML as well? Bootstrap and Tailwind have different HTML structure class names. Switching between Bootstrap and Tailwind, you have to update the entire layout.

Thanks



Hi Faizal,

When I call endpoint to generate the data, DataTable made default class using Bootstrap on paging and dt-info. How to change HTML class structure from Bootstrap to Tailwind ?


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(