heybourn / headwind

An opinionated Tailwind CSS class sorter built for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=heybourn.headwind
MIT License
1.38k stars 46 forks source link

Support for DEFAULT value #141

Open chenjau opened 3 years ago

chenjau commented 3 years ago

in tailwindcss we can call text-COLOR, bg-COLOR ... as shorthand if we declared DEFAULT in config.


example: gray: { 50: '#fafafa', 100: '#efefef', DEFAULT: '#616161', 1000: '#272727', }

we can use text-gray, bg-gray, border-gray ...


current behavior: body class='text-gray h-full min-h-full text-sm bg-white' expect: body class='h-full min-h-full text-sm text-gray bg-white'