Activity Forums Salesforce® Discussions How do I use lightning style in Visualforce page?

  • Deepak

    Member
    July 24, 2020 at 2:09 pm
    1. From Setup, enter Visualforce in the Quick Find box, then select Visualforce Pages.
    2. Click Edit next to the Visualforce page.
    3. Add the lightningStylesheets="true" attribute to the initial <apex:page> component in the Visualforce markup.
    4. Save your changes.
  • Shweta

    Member
    July 24, 2020 at 2:46 pm

    Follow these steps to use the lightning style in the Visualforce page:
    1. Go to SetUp -> Enter Visualforce in the quick find box -> select visualforce page -> click edit.
    2. Add the lightningStyleSheets="true" to initial <apex:page> component in the visualforce markup.
    e.g.: <apex:page standardController="Account" lightningStyleSheets="true" >
    3. Save the above changes.

    1. <div>
      </div>

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos