100phlecs / tailwind_formatter

Sorts tailwind classes within elixir projects
https://hexdocs.pm/tailwind_formatter
MIT License
111 stars 11 forks source link

Support for new x-950 classes from Tailwind 3.3 extended palette #28

Closed lobo-tuerto closed 1 year ago

lobo-tuerto commented 1 year ago

This class list is sorting correctly:

<body class="bg-zinc-200 text-zinc-900">

Tailwind 3.3 introduced an extended palette that includes a 950 shade for every color.

This one is not sorting correctly:

<body class="text-zinc-950 bg-zinc-200">

text-zinc-950 gets moved to the front as it's not recognized by the formatter.