I downloaded SLDS and saved as a static resource. Then I applied the style on Visualforce page, but it's not working. How can I apply SLDS on Visualforce Page?
Lightning Design System Static Resource https://lightningdesignsystem.com/resources/downloads/
I tried tag '<apex:slds /> ', but it's not working in community page. I want to apply slds on Visuforce Page in community page.
<apex:page showHeader="false" standardStylesheets="false" sidebar="false" applyHtmlTag="false" applyBodyTag="false" docType="html-5.0">
<head>
<apex:stylesheet value="{!URLFOR($Resource.slds2_12_2, 'styles/salesforce-lightning-design-system.css')}"/>
</head>
<div class="slds">
<apex:form id="form">
<div class="slds-modal__header">
<h2 class="slds-text-heading--medium">SLDS On Visualforce page</h2>
</div>
<div class="slds-modal__content slds-p-around--medium">
<apex:commandLink value="">
<button type="button" class="slds-button slds-button--brand">Cancel</button>
</apex:commandLink>
</div>
</apex:form>
</div>
</apex:page>
I tried the code below, but there is the differences between the normal Vf page and the enbeded Vf page in community.
<apex:page showHeader="false" standardStylesheets="false" sidebar="false" applyHtmlTag="false" applyBodyTag="false" docType="html-5.0">
<html>
<body>
<apex:slds />
<apex:form id="form" styleClass="slds-scope">
<div class="slds-modal__header">
<h2 class="slds-text-heading_medium">SLDS On Visualforce page</h2>
</div>
<div class="slds-modal__content slds-p-around_medium">
<apex:commandLink value="Cancel" styleClass="slds-button slds-button_brand"></apex:commandLink>
</div>
</apex:form>
</body>
</html>
</apex:page>
slds-scope
class to your page over content you want to style?