Home / Companies / LogRocket / Blog / Post Details
Content Deep Dive

What’s new in Tailwind CSS v2.0: New form styles and more

Blog post from LogRocket

Post Details
Company
Date Published
Author
Kelvin Gobo
Word Count
1,275
Language
-
Hacker News Points
-
Summary

Tailwind CSS 2.0 introduces several new features and changes, including a dark mode feature that can be toggled via media or class settings, a significantly expanded color palette with 220 values, and dropped support for Internet Explorer 11, which results in smaller build sizes. The update also includes new form styles through the @tailwindcss/custom-forms plugin, outline ring utilities for improved UI element focus states, and extended spacing, typography, and opacity scales. Migration to Tailwind CSS 2.0 involves updating to Node.js version 12.13 or higher, installing PostCSS and Autoprefixer, and adjusting configurations like typography and form plugins while removing deprecated options. For projects reliant on unsupported features, continued use of Tailwind CSS v1.9 is recommended. Additionally, developers are encouraged to use LogRocket for monitoring and debugging frontend performance issues, enhancing the user experience.