Community forum for knowledge and support

Updated 10 months ago

How To Make Use Of Existing Classes In New Classes In Wf

At a glance

Hey guys I think I don’t understand something about the classes in WF.

How do I make use of existing classes in new classes I create?

With SCSS/SASS you would use @extend

Example:
I want to create a new class for “chat-bubbles”
-- These chat bubbles should have a shadow.
--- So I want to inherit/cross-reference the shadow from the existing class “shadow-small”.


✅ I only want to apply one single class to each chat bubble element: chat-bubbles
❌ I don’t want to apply two classes to each element: chat-bubbles, shadow-small

How do you do that in WF? Or am I missing something in the logic?

D
R
11 comments

Forget about SASS / LESS approach and watch the Finsweet Client-First videos to understand their naming system and how you approach what you’re after using combo classes.

buddy, what i described above can't be solved by combo classes, that's why I asked in the first place.

Have you watched the Client-First videos?

Dude don't annoy me

That’s your answer then

Don't try to imply that I did not learn CF or read the documentation

We’re done here. You’ve won the internet today

I asked that question like over a month ago.

Add a reply
Sign up and join the conversation on Slack