First of all, thank you very much for this plugin. I'm dropping the prettier plugin in favor of this for my entire team.
Describe the bug
The projects I work on usually define or extend the color palette in the tailwind.config.js. You could have a color called primary that generates bg-primary for example.
Those classes are being treated as custom and being moved to the beginning next to the actual custom ones. In the example below I added a bg-red-100 and a text-secondary as well as a real custom class and you will notice that the text-secondary is now the first one, behind the custom class.
To Reproduce
- Customize your color palette in the TailwindCSS config file
- Try to use your color class
- See error
- Double-check your compiled CSS file for order
- Confirm error
Expected behavior
I would expect it to know that it is a color class and move it next to the bg-red-100. I also checked my compiled CSS file and the bg-red-100 was on line 516 and text-secondary was on line 527 so in theory, they should go together.
Screenshots


Desktop:
- OS: iOS
- VSCode version: 1.85.2
- TW Version: 3.4.1
First of all, thank you very much for this plugin. I'm dropping the prettier plugin in favor of this for my entire team.
Describe the bug
The projects I work on usually define or extend the color palette in the
tailwind.config.js. You could have a color called primary that generatesbg-primaryfor example.Those classes are being treated as custom and being moved to the beginning next to the actual custom ones. In the example below I added a
bg-red-100and atext-secondaryas well as a real custom class and you will notice that thetext-secondaryis now the first one, behind the custom class.To Reproduce
Expected behavior
I would expect it to know that it is a color class and move it next to the bg-red-100. I also checked my compiled CSS file and the
bg-red-100was on line 516 andtext-secondarywas on line 527 so in theory, they should go together.Screenshots
Desktop: