+ Start a Discussion
Ken Koellner 7Ken Koellner 7 

How can I tell which version of slds (Lightning Design System) is used by VF?

This release note https://releasenotes.docs.salesforce.com/en-us/winter21/release-notes/rn_slds_bem_deprecate.htm?edition=&impact= (https://releasenotes.docs.salesforce.com/en-us/winter21/release-notes/rn_slds_bem_deprecate.htm?edition=&impact=) says that versions 2.13.0 and newer of SLDS will change so that "--" will be replaced with "_".  We use SLDS in Visualforce via the <apex:slds/> tag.  Is there anyway to tell what version of SLDS is injected into the page?  I would think if it's a version 2.13.0 or newer then we will have to change any references with the old "--" to "_" which means change some VF code.  Anyone have any other thoughts on the impact of that notice and VF pages that use SLDS?
VinayVinay (Salesforce Developers) 
Hi Ken,

SLDS version is something which is updated at backend and I believe you can consider 2.13.6 to be in your org and is updated version.

Thanks,
Ken Koellner 7Ken Koellner 7
I agree, since it is automatically injected into the page, it must be come from the SF backend.  But since the release notes mentions versions, I'm wondering if there is some control over which version is injected.  I thought maybe it could be by API version of the page.  So, say it's 45.0, you get one version and if it's 47.0, you get a newer version.  If that were the case, it would be critical know the mapping from API Version ot SLDS version in order to know which version is injected into each VF page.
Ken Koellner 7Ken Koellner 7
This blog mentions latest version -- http://bobbuzzard.blogspot.com/2017/02/lightning-design-system-in-visualforce.html and that you are always subjected to the latest version.  It would be really nice to get confirmtion.  I wish the injected SLDS included a comment with the version number.