Notes
- A component can include a CSS file. Use standard CSS syntax to style Lightning web components.
- If the component is called myComponent, the style sheet is
myComponent.css
.
- The style sheet is applied automatically.
To share CSS style rules between components, create a module that contains only a CSS file and a configuration file. Import the module into the CSS files of Lightning web components.