+ Start a Discussion
Oleg RebenkoOleg Rebenko 

How to apply styles in component using ltng:outApp from app?

Hi all!

I want to use SLDS styles in component without uploading from static resources and as I know it is possible if I use extends="ltng:outApp" in app where component exposed as dependency:
<aura:application access="GLOBAL" extends="ltng:outApp"> 
    <aura:dependency resource="c:myAppComponent"/>
</aura:application>

But when I removed styles="{!$Resource.SLDS + '/assets/styles/salesforce-lightning-design-system-ltng.css'} from my component I found that styles not applied.

How can apply SLDS styles in component using ltng:outApp?

Thank you,
Oleg
karthikeyan perumalkarthikeyan perumal
Hello, 

Follow Below Steps to install SLDS from your local developement with refering static resource. 

https://trailhead.salesforce.com/en/project/slds-lightning-components-workshop/slds-lc-1

Here is the Instalation setps: 

https://www.lightningdesignsystem.com/downloads/


Hope this will help you, 

Mark Best ANSWER if its work for you. 

Thanks
karthik