Variants on a component refer to design variations for that component, which enable you to change the appearance of the component easily. ... This example uses a Lightning Design System class to apply a padding to a paragraph in the lightning:card component.