@apply and —at-apply
@apply
is a way to use utilities inside of normal CSS.
.custom-div { @apply text-center my-0 font-medium;}
--at-apply
is basically the same thing but is also vanilla CSS compatible which makes it useful when @apply
would give an error. In addition to --at-apply
there is also --uno-apply
and --uno
which are aliases.
.custom-div { --at-apply: text-center my-0 font-medium;}
Files
Preparing Environment
- Installing dependencies
- Starting http server