Skip to content

Sorting of transparent colors #221

@KnisterPeter

Description

@KnisterPeter

What version of prettier-plugin-tailwindcss are you using?

v0.5.5

What version of Tailwind CSS are you using?

v3.3.3

What version of Node.js are you using?

v18.16.0

What package manager are you using?

pnpm

What operating system are you using?

Windows with WSL2

Reproduction URL

Describe your issue

The sorting of colors is not consistent.
Transparent utility classes are sorted after colors.

For example these two lists:

  • bg-black text-white
  • bg-transparent text-white

The second line will be re-ordered to text-white bg-transparent while the first line is kept.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions