One of the items on the Lightning home page is this:

enter image description here

What CSS classes must I use to make my own LWC look like such a standard home page component? I can fool around with h1, h2, b, etc., to imitate the looks, but it seems to me there should be CSS classes that I can use.


You'll want to look at SLDS's Card Component or lightning-card. Using the built-in component would be ideal unless you have specific needs that are not met with that component.

  • Yes, that works, the code examples for the Card Component helped me. – Sander de Jong May 12 '20 at 7:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.