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

Support @apply #32

Closed
nahtnam opened this issue Jul 18, 2020 · 1 comment
Closed

Support @apply #32

nahtnam opened this issue Jul 18, 2020 · 1 comment

Comments

@nahtnam
Copy link

nahtnam commented Jul 18, 2020

Hello,

I love the idea of this project! I was wondering if @apply is something this library can support? I am working on my own internal "css framework" which works something like this:

.button {
  @apply py-2 px-2 text-uppercase...
}

.button-blue {
  @apply bg-blue-500
}

I was wondering if this library could somehow ingest this kind of file and then convert button to its associated styles (and ignore whatever react native doesn't support)?

@vadimdemedes
Copy link
Owner

I think tailwind() function itself is an equivalent of @apply already. @apply py-2 px-2 bg-blue-500 is the same as tailwind('py-2 px-2 bg-blue-500').

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