Updates, ideas and resources
In this post we will take a look at the list of best Tailwind CSS plugins to use in your next project
Tailwind CSS is a utility-first CSS framework that is rapidly growing in popularity and there are many plugins that can boost your workflow and make your life easier.
Let’s begin!
Installing Tailwind CSS plugins is easy.
npm i daisyui
tailwind.config.js
file in plugins
array:module.exports = {
plugins: [require("daisyui")],
}
daisyUI is a free component library for Tailwind CSS that adds component class names to Tailwind CSS.
It helps you to build websites faster. daisyUI uses human-friendly and descriptive class names like btn
, card
, toggle
, alert
, modal
etc. which helps you use less class names and keep your HTML clean.
daisyUI also comes with a lot of built-in themes and dark mode support so you don’t have to write any additional class names to enable dark mode. It works out of the box.
Learn more about daisyUI:
tailwindcss/typography is the official Tailwind CSS plugin that adds default styles for all your text content.
Typography plugin is made by the Tailwind CSS team and it’s a must-have plugin for any Tailwind CSS project especially if you are building a blog or a website with a lot of text content. It plays well with Markdown content since all you have to do is to add prose
class to your container and it will automatically style all your text content.
Learn more about Typography plugin:
Another plugin from Tailwind team, tailwindcss/container-queries adds the new cool CSS feature called container queries to Tailwind CSS. Container queries are similar to media queries but instead of checking the screen size, they check the size of the container. This is useful if you want to change the layout of your website based on the size of the container.
Container queries are supported by all modern browsers and soon the class names will be added to Tailwind CSS core, but for now you can use this plugin to implement container queries in your project.
Learn more about tailwindcss/container-queries
tailwindcss-flip is a Tailwind CSS plugin that mirrors all your CSS properties to the opposite direction. For example if you have mr-6
instead of margin-right
, it will give you margin-left
. This is useful if you want to support RTL languages like Arabic, Persian, Hebrew etc. Using tailwindcss-flip is effortless. All you have to do is to install it and add dir="rtl"
to <html>
tag.
Read more about tailwindcss-flip:
tailwindcss-animate adds animation class names to Tailwind CSS. It’s much easier to use this plugin than adding your own animations in tailwind.config.js
file. All you have to do is to install it and add animate-<animation-name>
class to your element.
Learn more about tailwindcss-animate:
tailwind-scrollbar-hide plugin simply adds new utility class names to Tailwind CSS to hide scrollbars.
Learn more about tailwind-scrollbar-hide:
tailwindcss/forms is a plugin from Tailwind team that adds default styles for all your form elements. Just be careful that if you’re using this plugin along with any component library (like daisyUI), you should enable strategy: 'class'
for this plugin so it only adds styles to elements you choose. Otherwise it will have conflicts because both plugins add styles to the same elements.
Learn more about tailwindcss/forms
tailwindcss-opentype is a plugin that adds OpenType features to Tailwind CSS. If the fonts you’re using has features like ligatures, kerning, alternate glyphs, etc. you definitely need this plugin to get most out of your fonts.
Read more about tailwindcss-opentype:
tailwindcss-3d adds 3D transforms to Tailwind CSS. It’s useful if you want to have 3D transformations to elements. The good thing about tailwindcss-3d plugin is that the utility classes are independent. You can use utility classes for x, y, z
axis separately.
Learn more about tailwindcss-3d:
Tailwind CSS plugins are a great way to extend Tailwind CSS and add new features to it. You can search for more plugins on GitHub and NPM but if you didn’t find what you’re looking for, you can also create your own plugin using Tailwind CSS API!
Thanks for reading!
Subscribe to daisyUI blog newsletter to get updates on new posts.
You will only receive a single email when a new blog post is published. No spam. No ads.