Skip to content
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

✌🏻 TailwindCSS Support #128

Open
2 of 11 tasks
jd-solanki opened this issue Jan 21, 2023 · 0 comments
Open
2 of 11 tasks

✌🏻 TailwindCSS Support #128

jd-solanki opened this issue Jan 21, 2023 · 0 comments

Comments

@jd-solanki
Copy link
Owner

jd-solanki commented Jan 21, 2023

Note
What if we don't use shortcuts at all and instead just pass the classes directly to the component? This will not generate separate CSS for a-btn and instead directly add the classes which might improve performance. Additionally, we can also allow applying classes based on props 🀯

Challenges

  • What about h-700px? We have to use h-[700px] to make it compatible with both Uno & Tailwind
  • We used uno-layer-base classes
  • Create configurable TW plugin (Auto generate)
  • Create plugin for presetAnu

Differences

Uno Tailwind Both
w-100px w-[100px] w-[100px]
[&_.a-base-input-input-wrapper]-px-0 [&_.a-base-input-input-wrapper]:px-0 [&_.a-base-input-input-wrapper]:px-0
--un-bg-opacity --tw-bg-opacity ❌

What does preset-theme-default provides that we should provide in tw plugin?

Requirement for auto generating TW plugin

  • Use uno.generate to generate styles for creating utilities & shortcuts

Roadmap

  • Check Uno JS API
@jd-solanki jd-solanki added this to Anu Dec 17, 2022
@jd-solanki jd-solanki converted this from a draft issue Jan 21, 2023
@jd-solanki jd-solanki pinned this issue Jan 25, 2023
@jd-solanki jd-solanki moved this from Todo to Unplanned in Anu Apr 3, 2023
@jd-solanki jd-solanki moved this from Unplanned to Breaking Changes Possibilities in Anu Apr 9, 2023
@jd-solanki jd-solanki unpinned this issue May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Vue 3.3 + Breaking Changes Possibilities
Development

No branches or pull requests

1 participant