Title: Adding Tailwindcss and Flowbite to a plugin
Last modified: February 25, 2024

---

# Adding Tailwindcss and Flowbite to a plugin

 *  [twentyfourdegrees](https://wordpress.org/support/users/twentyfourdegrees/)
 * (@twentyfourdegrees)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/adding-tailwindcss-and-flowbite-to-a-plugin/)
 * Good day everyone,
 * I have a plugin that does a lot of work on the admin/dashboard side. But the 
   default tables and general style isn’t what I want. My 2 questions:
 * 1. How can I add Tailwindcss and Flowbite to a WordPress plugin for example using
   npm?
 * 2. How and in which function do I enqueue the css and js files in my Class? Is
   that in the constructor?
 * Thanks for your help,
 * kind regards,
 * 24

Viewing 1 replies (of 1 total)

 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/adding-tailwindcss-and-flowbite-to-a-plugin/#post-17467524)
 * Here you can integrate scripts:
   [https://developer.wordpress.org/reference/functions/wp_enqueue_script/](https://developer.wordpress.org/reference/functions/wp_enqueue_script/)
 * And herewith styles:
   [https://developer.wordpress.org/reference/functions/wp_enqueue_style/](https://developer.wordpress.org/reference/functions/wp_enqueue_style/)
 * To insert them into wp-admin you have to integrate them via [https://developer.wordpress.org/reference/hooks/admin_enqueue_scripts/](https://developer.wordpress.org/reference/hooks/admin_enqueue_scripts/).
   You can find examples in the linked manual pages.
 * There are no general instructions when it comes to using scripts from other sources.
   You have to integrate the required scripts into WordPress using hooks, as well
   as styles and scripts using the above-mentioned functions. Everything else is
   completely up to you. However, I would recommend that you follow the guidelines
   for plugins when programming. These are described in the manual here: [https://developer.wordpress.org/plugins/](https://developer.wordpress.org/plugins/)–
 * I would also recommend checking against the WordPress Coding Standards, see: 
   [https://developer.wordpress.org/coding-standards/wordpress-coding-standards/](https://developer.wordpress.org/coding-standards/wordpress-coding-standards/)

Viewing 1 replies (of 1 total)

The topic ‘Adding Tailwindcss and Flowbite to a plugin’ is closed to new replies.

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 1 reply
 * 2 participants
 * Last reply from: [threadi](https://wordpress.org/support/users/threadi/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/adding-tailwindcss-and-flowbite-to-a-plugin/#post-17467524)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
