Comments (3)
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.
@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.
Thanks @Trapfether ... 👍🏼
I got used to the new sorting order!! 😀
from tailwind-raw-reorder.
Related Issues (10)
- Should Support Custom Directives E.G. border-l-[3px] HOT 2
- Add option to disable the notification "Tailwind config not found" HOT 2
- Error msg: Cannot find module @tailwindcss/typography HOT 2
- no such file or directory, open `'[...]/dist/css/preflight.css'` HOT 4
- It does not work with *.css. HOT 3
- activationEvents must supports * instead of only .js HOT 1
- Doesn't respect classes inside single quotes? (in AlpineJS) HOT 4
- Sort Selection Command HOT 1
- Adding custom location for config? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tailwind-raw-reorder.