Reuse Classes inside a .scss component

PrimeFlex is a lightweight responsive CSS utility library to accompany Prime UI libraries and static webpages
Post Reply
jguillen
Posts: 2
Joined: 23 Sep 2021, 10:54

23 Jan 2023, 09:52

Can I reuse classes inside a specific .scss file component?

For example (text.component.scss):

.my-text {
@include styleclass('bg-blue-500 hover:bg-blue-600');
}


I try this but I have the error "SassError: Undefined mixin".

Thanks you!

jguillen
Posts: 2
Joined: 23 Sep 2021, 10:54

20 Apr 2023, 08:12

Import primeflex inside a specific .scss file:

@import "primeflex/primeflex";

.my-text {
@include styleclass('bg-blue-500 hover:bg-blue-600');
}

I hope it helps you!

Post Reply

Return to “PrimeFlex”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests