How to apply a global custom utility to a class? #1713
Replies: 1 comment 2 replies
-
Hey! There are two things worth understanding here:
That said, because of point 1, I would still not recommend doing this as it's easy to run into situations where you are not getting the results you expect. I would consider using something like postcss-mixins instead of |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm trying to add a custom utility to a Vue component CSS class like I would do with any other built-in utility but I get the following error message:
The full-height class exists globally, I could add it directly as a class to my HTML but if I try to add it using @apply it doesn't work.
Am I missing something?
global.css
utilities.css
app.vue
Beta Was this translation helpful? Give feedback.
All reactions