This repository was archived by the owner on Apr 6, 2021. It is now read-only.
This repository was archived by the owner on Apr 6, 2021. It is now read-only.
Support multiple @apply
calls within a single rule #62
Closed
Description
@layer components {
.btn-primary {
@apply flex justify-center py-2 px-4 border border-transparent rounded-full text-base font-semibold bg-overnight-1 text-gray-1;
@apply hover:text-white hover:shadow-md;
@apply active:bg-overnight-5 active:text-gray-1;
@apply disabled:text-gray-4 disabled:bg-transparent disabled:border-gray-4 disabled:opacity-50 disabled:cursor-default disabled:shadow-none;
@apply focus:outline-none;
@apply transition duration-100 ease-in;
}
}
While the above custom component used to work fine, tailwindcss-jit doesn't seem to like multiple @apply
statements for a single component, and will end up generating css with classes from only the last @apply
call, which in the example above is simply the transition information.
Obviously not a showstopper, but would be nice to be able to spread out larger components across multiple @apply
calls without fitting everything on a single line.
Metadata
Metadata
Assignees
Labels
No labels