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

Is there an easier way to adding new utilities? #415

Open
STiXzoOR opened this issue Nov 24, 2023 · 0 comments
Open

Is there an easier way to adding new utilities? #415

STiXzoOR opened this issue Nov 24, 2023 · 0 comments

Comments

@STiXzoOR
Copy link
Contributor

Currently to add new utilities we have to define them in a file called xstyled.config.ts and then export the relevant factories to get the new utilities. But what if our codebase is huge and we have to replace all instances of @xstyled/.... to the new exported ones?

I feel like there should be a logic where the @xstyled/system either reads the xstyled.config.ts and extends the utilities accordingly or expose a function like we do with the theme, eg extendSystem, and have those utilities without exporting the custom ones.

My question is, does anyone got in that situation? If yes what was the best solution without too much overhead?

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

No branches or pull requests

1 participant