From c4a6a1b52d0d449005cb2ebc687ec8ba72cf6815 Mon Sep 17 00:00:00 2001 From: Aaron Tinio Date: Mon, 8 Jun 2026 22:48:48 +0800 Subject: [PATCH] Mark the package as targeting Tailwind CSS v3 For Tailwind v4, use canonical_tailwind. This adds a README banner, updates the mix.exs description, and adds a CHANGELOG entry so the v3 scope and the v4 pointer surface on GitHub, hex.pm, and hexdocs. Docs and metadata only, no code changes. --- CHANGELOG.md | 7 +++++++ README.md | 4 ++++ mix.exs | 3 ++- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a272b7a..57e34ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,11 @@ +# Changelog for v0.4.3 + +TailwindFormatter targets Tailwind CSS v3. For Tailwind v4, use +[canonical_tailwind](https://hex.pm/packages/canonical_tailwind), which sorts +classes via the `tailwindcss` CLI and Phoenix LiveView's `attribute_formatters` +API. + # Changelog for v0.4.0 TailwindFormatter v0.4.0 requires Elixir v1.15+. diff --git a/README.md b/README.md index 543f1df..9c177a0 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,10 @@ +> **This package targets Tailwind CSS v3.** For Tailwind v4, use +> [`canonical_tailwind`](https://hex.pm/packages/canonical_tailwind), which sorts +> classes via the `tailwindcss` CLI and Phoenix LiveView's `attribute_formatters` API. + Opinionated sorting for [TailwindCSS](https://tailwindcss.com) classes used in HEEx templates and `~H` sigils. diff --git a/mix.exs b/mix.exs index d341c7b..d3bd090 100644 --- a/mix.exs +++ b/mix.exs @@ -10,7 +10,8 @@ defmodule TailwindFormatter.MixProject do version: @version, elixir: "~> 1.15", name: "TailwindFormatter", - description: "A Mix formatter that sorts your Tailwind classes", + description: + "Sorts Tailwind CSS v3 classes in HEEx templates. For Tailwind v4, use canonical_tailwind.", deps: deps(), docs: docs(), package: package(),