While building the components, I took advantage of Figma's great set of property options. To showcase the process here is a visualization of an easy example. This component is for all the titles on our My Swisscom pages. I gave it the "variant" of "title" with the values "Subpage" and "Hub". These values were then applied to the corresponding version of the design. Because the "Sub-title" is an optional element I allocated it a "Boolean-property" which lets you manage its visibility.
Creating components
Properties, booleans, variants