New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
review: align with tailwind #124
Comments
On weekend I'll do a second review. |
Just tried the convert to issue function 😂, can I handle first one? |
Ofc Man, I added the task for it... you can also asign yourself the issue |
@hannoeru I assign it to you, see assignees from right panel on the issue, we need to check if the title can be changed or modify in some way, it is huge. Edit: just change the issue title. |
Hello, I want to help solve the seventh task( object-center missing rule: object-position: center;, we should add the variants (top, right...)) |
@xiaojieajie Click convert to issue button on right side of list to create issue and assign yourself, then you are good to go! |
Ask me, I created issue, but I don't think the task can be selected? |
Can i handle the last one? |
@xiaojieajie Task will auto checked when you close that issue. |
Of course. |
wtf: I created the issue this very morning, I just woke up and almost all the tasks started / closed, you are all amazing. Thank you very much to all. |
Can you add |
@UltraCakeBakery added and created issue |
Also, I tried creating my own [/^content-\[(.*)\]$/, ([, content]) => ({ content })], However, this is unable to match rules containing quotes such as |
I am not sure why TW does this, won't it affects overall client performance since now every element comes with two pseudo-elements?
I am personally not a fan of this utility as I saw it kinda a mess to allow user provide arbitrary content in class, I feel that using inline style is more approach in this case.
That's a good point, added to the list.
Quotes are separators when we do the extracting. You can use JSON.strinify to escape the value: [/^content-\[(.*)\]$/, ([, content]) => ({ content: JSON.stringify(content) })], and use it like |
First, thanks for your kind reply!
If I remember correctly,
And this is the one and only case where I find this
Hmm, not too big of a fan of having quotes as separators. I'm thinking if it's possible for user-defined custom separators as a field in our configuration? Something along the lines of |
Yes. But applying to all elements just because that someone might need it does not sound good to me. I kinda prefer to introduce a new
Yes, you can provide your custom extractor. https://github.com/antfu/unocss/blob/main/packages/core/src/extractors/split.ts
That wouldn't work actually. Consider you have |
`.text-[unocss#124]` is producing `.text-[unocss#124]{font-size:unocss#124;line-height:1;}` in addition to the color + opacity rule
epic |
I have tested main entries from here https://tailwindcomponents.com/ except Dashboard and Account Card entries.
I will be adding rules here that are not on unocss preset, or that are misaligned with tailwind:
max-(w|h)-${size}
and(w|h)-${size}
#125grid
stuff: remove extra spaces on rules #134fill-${colors}
utilities #128container
missing rule: breakpoint variantmax-width
variant #133isolation: isolate;
#130animate-*
stuff #170calc
#180border
stuff #178translate-x-full
andtranslate-y-full
#167The text was updated successfully, but these errors were encountered: