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

feat: add unocss config #131

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

feat: add unocss config #131

wants to merge 3 commits into from

Conversation

riderx
Copy link

@riderx riderx commented Mar 24, 2023

This PR add support for Unocss.

Related to #21

I'm not certain how to test what I have done.

So, I made the logic without testing.

If @antfu you are willing to have a check, specially for the transformation rule function, i'm not sure i understood it well

@antfu
Copy link

antfu commented Mar 24, 2023

Sorry UnoCSS does not support Tailwind plugins, this probably won't work.

@riderx
Copy link
Author

riderx commented Mar 25, 2023

@antfu thank you so much for the answer.
If you look in konsta code I modified, it doesn't use much tailwind code, since it's made originally to be around a tailwind config file.
Like that :

const konstaConfig = require('konsta/config');

// wrap your config with konstaConfig
module.exports = konstaConfig({
  // rest of your usual Tailwind CSS config here
  ...
});

To what I have see there are hope!

My questions were more about how to rewrite the tailwind rule to make them work in UNOCSS.
Konsta is the only nice alternative to ionic for mobile app design, it could be a nice addition to unopreset.

@riderx
Copy link
Author

riderx commented Mar 27, 2023

@antfu I think I'm not far from having made a Tailwind to Unocss preset function.
Maybe that could be a project on his own.

Unocss is above Tailwind for me, but it lacks of all the plugins made for Tailwind, so with something with that I believe more and more people would switch.

I will continue to see if I can reach a viable point.

@YishaqG
Copy link

YishaqG commented Jun 11, 2023

@riderx Have you make it work? I would also prefer using it with Unocss

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants