Using variables/properties in Sass?

%3CLINGO-SUB%20id%3D%22lingo-sub-263882%22%20slang%3D%22en-US%22%3EUsing%20variables%2Fproperties%20in%20Sass%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-263882%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20developing%20a%20SharePoint%20SPFx%20web%20part%20and%20starting%20to%20work%20on%20a%20property%20pane%20for%20it.%20I've%20realized%20that%20users%20may%20want%20to%20configure%20the%20line%20height%20of%20text%20in%20my%20webpart%2C%20and%20I'd%20like%20to%20make%20that%20configurable%20as%20a%20property%20using%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fspfx%2Fweb-parts%2Fbasics%2Fintegrate-with-property-pane%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Eproperty%20pane%3C%2FA%3E.%20I'm%20not%20sure%20how%20to%20access%20properties%20in%20an%20Sass%20file%20though%2C%20or%20if%20that's%20even%20possible%3F%20Is%20my%20only%20option%20to%20do%20this%20directly%20in%20the%20typescript%20code%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-263882%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Occasional Contributor

I'm developing a SharePoint SPFx web part and starting to work on a property pane for it. I've realized that users may want to configure the line height of text in my webpart, and I'd like to make that configurable as a property using the property pane. I'm not sure how to access properties in an Sass file though, or if that's even possible? Is my only option to do this directly in the typescript code?

0 Replies