function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Agustina GarciaAgustina Garcia 

Issues with SLDS on Lightning Component Basis Trailhead

I'm working on Lightning Component Basis T and I'm not able to get the style that is shown in the Trailhead.

I have followed these steps: https://trailhead.salesforce.com/lex_dev_lc_basics/lex_dev_lc_basics_prereqs and download latest version from here https://www.lightningdesignsystem.com/downloads/ , in my case 2.1.2.

However following steps, when I cretae the .app and used my static resource, the result is not the same.

This is the static resource:

User-added image

This is the code where I call the static resource
<aura:application >
 
    <!-- Include the SLDS static resource (adjust to match package version) -->
    <ltng:require styles="{!$Resource.SLDS212_1 +
         '/assets/styles/salesforce-lightning-design-system-ltng.css'}"/>

....

This is my result:

User-added image

And this is the expected one per trailhead:

User-added image

What am I missing?

Cheers
Best Answer chosen by Agustina Garcia
sfdcMonkey.comsfdcMonkey.com
hello Agustina
update your <ltng:require> with this line 
 
<!-- Include the SLDS static resource (adjust to match package version) -->
    <ltng:require styles="{!$Resource.SLDS212_1 +
         '/assets/styles/salesforce-lightning-design-system.css'}"/>

and now check 
Thanks 
 mark it best answer if it's helps you :)