Customize Your Style Sheet in the Force.com IDE
A Lightning component can specify
its own cascading style sheet (CSS). The .css file is included when you create a component bundle
in the Force.com IDE.
The contact list we created was okay, but it could use more pizazz. Let’s spice it up a
bit.
- Make sure that the active file in the source panel is one of your MyContactList files (not a MyContactListApp file).
- Click the CSS tab at the bottom of the source panel.
-
Replace the generated CSS with this CSS.
- To save your updated CSS, press Ctrl+S or (Cmd+S on macOS).
- Refresh the browser page that’s displaying the preview of your application. If you’ve closed that page, you can find it again at https://yourDomain.lightning.force.com/c/MyContactListApp.app.
Isn’t that better? Now that is what we call pizazz.