Giter Site home page Giter Site logo

Comments (3)

macCesar avatar macCesar commented on August 17, 2024

By the way, rounded-16 is a custom class. If I use rounded-md, for example, it goes to the end of the list.

Shouldn't custom classes automatically be placed at the end of the list?

Thanks again! :-)

from tailwind-raw-reorder.

Trapfether avatar Trapfether commented on August 17, 2024

@macCesar This repo uses the approach that the prettier plugin does. That is it hooks into your local copy of tailwind (or the included dependency if the local tailwind can't be found) and uses it to assign orders. This gets around the issue with the Headwind where you had to constantly maintain your list of selectors and headwind had no support for computed selectors "w-[5px]" for example. You would always have to add these to your list of selectors. The benefit of the tailwind established order is that later selectors override earlier ones if there is any overlap in properties assigned.

Custom class names are sorted first so they don't get lost at the tail end of a long list of classes.

from tailwind-raw-reorder.

macCesar avatar macCesar commented on August 17, 2024

Thanks @Trapfether ... 👍🏼

I got used to the new sorting order!! 😀

from tailwind-raw-reorder.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.