Skip to content

Scoping out the "Components - Styling" post #48

@knowler

Description

@knowler

Been thinking about this post and what the content should be. Here are some ideas. It doesn't need to contain everything.

  • Important concepts for working with styles in the Shadow DOM.
    • CSS inheritance and which properties inherit.
    • CSS custom properties inherit by default (until we have @property)
    • The order of precedence (I can rework this: https://shadowdom.style)
    • Shadow DOM specific selectors
    • Having a good mental model for slots and parts.
    • Maybe stuff like CustomStateSet for state pseudo selectors.
  • Ways to style components (i.e. style tag in shadow DOM, link tag in Shadow DOM, constructed stylesheets).
  • Best practices for styling.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions