Element styles

Element styles are for specific styles that can’t easily be achieved with utility classes.

Element Pseudo classes

Enhance projects come preconfigured with a styling system that let’s you use pseudo classes like :host and ::slotted(). These pseudo classes give you the ability to style the outer Custom Element tag as well as slotted elements. This enables you to write scoped styles co-located inside your single file component.

  :host {
    background-color: #0071FC;
    transition: background-color 2s;
  :host:hover {
    background-color: #0071FC;

Community Resources

Visit Enhance on GitHub.
Join our Discord server to chat about development and get help from the community.