# Migration Context: Tailwind CSS v0.7 -> v1 # Generated by Changelogs.us: 2026-11-30T03:04:33.207121+00:00 # Target Version: v1.9.6 # Upgrade Command: N/A # Breaking Changes: 17 # Security Fixes: 0 ## Executive Summary Upgrading Tailwind CSS from 0.7 to 1 involves 61 releases with risk rating High. ## Breaking Changes List: - [vv1.1.0] This is technically a very minor breaking change in the event that you were actually depending on `hr` elements not having a default border. You can remove the border by adding `border-0`:: - [vv1.3.0] We haven't changed the default config to include default line-heights as that would be a breaking change, but this is a feature we will likely take advantage of in Tailwind 2.0 sometime in the future.: - [vv1.5.1] - Fixes accidental breaking change where adding component variants using the old manual syntax (as recommended in the docs) stopped working: - [vv1.6.0] There aren't supposed to be any breaking changes here, but I thought that [last time](https://github.com/tailwindlabs/tailwindcss/releases/tag/v1.5.0) too. If I _did_ break something, first person to report it gets a Tailwind shirt 😘: - [vv1.7.0] Any time we deprecate functionality or introduce new (stable) breaking changes, they will be available in Tailwind v1.x under a `future` property in your `tailwind.config.js` file.: - [vv1.7.0] Whenever there are deprecations or breaking changes available, Tailwind will warn you in the console on every build until you adopt the new changes and enable the flag in your config file:: - [vv1.7.0] risk - There are upcoming breaking changes: removeDeprecatedGapUtilities: - [vv1.7.0] You can opt-in to a breaking change by setting that flag to `true` in your `tailwind.config.js` file:: - [vv1.7.0] It's important to note that **experimental features may introduce breaking changes, do not follow semver, and can change at any time**.: - [vv1.7.0] This introduces breaking changes to how `@apply` worked before, so be sure to read all of the details before just flipping the switch.: - [vv1.7.0] This is a breaking change and will impact your designs, as previously all font sizes had a default line-height of `1.5`.: - [vv1.8.0] This is a breaking change (although it probably won't _actually_ affect you), so to make it the default you'll have to opt-in behind the `purgeLayersByDefault` flag:: - [vv1.9.3] - Remove console warnings about upcoming breaking changes (see note below): - [vv1.9.3] I've opted to remove the console notices about upcoming breaking changes (that encouraged users to opt-in to future features using the `future` option in their config file.): - [vv1.9.3] While I had good intentions for this approach originally, I'm realizing now that it just ends up creating more confusion and a sloppier documentation story. Any breaking changes can't really be documented easily because the documentation needs to show the _stable_ version of any given feature, since we can't assume someone has opted in to the new stuff.: - [vv1.9.3] For this reason I've decided to stop warning about the upcoming breaking changes so that we don't force users to opt-in to an essentially undocumented version of the framework. Instead we will continue to maintain the "upcoming changes" page in the docs, and continue to ship new ideas behind flags for people to test but without the nudge to upgrade. Folks who are comfortable opting-in to the new stuff early can do so, and folks that aren't can comfortably keep using things the way they are (along with complete documentation) and upgrade to the next version all at once, like people have done tr: - [vv1.9.3] I will always strive to make breaking changes as painless and minimal as possible, so spending an hour to do the upgrade in one sitting is never going to be too bad. I highly value backwards compatibility and will never make needlessly breaking changes. An improvement is only worth making if it improves things enough to make up for the upgrade cost, and that's usually pretty rare. For example `lh-5` might be a nicer class name than `leading-5` but it is absolutely _not_ worth breaking everyone's muscle memory and forcing them to replace hundreds of instances of classes in their projects. We'll: ## Instructions for AI Assistant: When migrating user code from Tailwind CSS 0.7 to 1, scan for the deprecated APIs and breaking changes above and refactor code to use modern vv1.9.6 idioms.