The Salesforce Developers website will undergo maintenance on May 29, 2024 from 3:00 a.m. UTC to 10:00 a.m. UTC. The maintenance process may affect the availability of our documentation. Please plan accordingly.

CSS

To give your component the Lightning Experience look and feel, use Lightning Design System (SLDS). To go your own way, write your own CSS.

When you use base components in the lightning namespace, you get SLDS styling automatically. Using these base components, you can customize the styling using SLDS styling hooks. Additionally, you can:

We recommend that you avoid these common mistakes when styling components.