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

Allow defining variants values with attributes or functions #5

Open
thiagomajesk opened this issue Sep 19, 2023 · 1 comment
Open

Comments

@thiagomajesk
Copy link

Right now, you can only do something like: variant :color, [blue: "text-blue-500"] and not variant :color, @text_colors because the macro is not expanding the module attribute. Would you be willing to support a similar syntax? This seems very helpful for cases where you want to share the variant definitions between similar components.

@benvp
Copy link
Owner

benvp commented Apr 17, 2024

Sorry for answering extremely late. This sounds like a reasonable thing to do. Would you be willing to create a PR for this?

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

2 participants