

If your preprocessor is unable to find the tailwind config file then it does not error out. The above declarative methods of bootstrapping the styles enable the application logic to be loosely coupled which helps prevent us from getting stuck with a particular framework. One can also add plugins if it creates the theme that they want to use. Module.exports = Īs tailwind concerns itself with providing small wrappers to commonly grouped styles, it enables us to create our versions of styled-components.
#Tailwindcss unpkg install#
To install it in an npm project, run the command npm install tailwindcss.Tailwind CSS can be imported into your simple web project (non-npm project) by including the following line in your index.html.While it has many advantages and intuitive directives, setting it up in your project has quite a few steps if you want good control over what is auto-generated. It provides a set of directives to generate a CSS file that can be imported into your application. Tailwind is a low-level framework and can almost be considered as a small utility wrapper for boilerplate stylings. If you are the type of person who wants complete flexibility of the style and are not too keen on overriding defaults provided by the framework then tailwind is the way to go.

Tailwind does not follow a particular design system, rather it allows the developer to build their own and at the same time abstracts boiler-plate code. In this review, we will be looking at tailwindcss, a popular CSS framework that focuses on providing the most flexibility to the developers.

Secondly, it helps in rapid prototyping and allows us to change the experience in a very agile manner.īut with so many frameworks to choose from, selecting the best fit depends on the level of flexibility you are looking for. There are a number of reasons for this firstly, it is easier to build structured layouts as most modern CSS frameworks provide tooling. To create rich user interfaces and experiences, CSS frameworks are used extensively. Photo by Jordan Ladikos on Unsplash Overview
