You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New to tailwind and testing Laravel 8. Where would you put repetitive styling such for a button for example. I thought that i understood to put them in the components file but i get an error when compiling. Here is the styling that I'm testing
(6:5) `@apply` cannot be used with `.focus\:shadow-outline` because `.focus\:shadow-outline` either cannot be found, or its actual definition includes a pseudo-selector like :hover, :active, etc. If you're sure that `.focus\:shadow-outline` exists, make sure that any `@import` statements are being properly processed *before* Tailwind CSS sees your CSS, as `@apply` can only be used
for classes in the same CSS tree.
I'm confused if this is a base, component or utility.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
New to tailwind and testing Laravel 8. Where would you put repetitive styling such for a button for example. I thought that i understood to put them in the components file but i get an error when compiling. Here is the styling that I'm testing
here is the error that i get:
I'm confused if this is a base, component or utility.
Thanks for the help.
Beta Was this translation helpful? Give feedback.
All reactions