Skip to content

Theme: Ensure theme styles are exposed via WordPress style handle #74007

@aduth

Description

@aduth

Task:

  • A developer should be able to wp_enqueue_style( 'wp-theme' ); to enqueue design-tokens.css

Background:

Related comment: #73938 (comment)

We already treat @wordpress/theme as a "typical" script package in that we already have a script handle, and so it seems reasonable to have a style handle to bring in the required styles.

Implementation notes:

The build system looks for style.css for "auto-registration", so we may either need to ensure that a style.css is available for it to find, or update the build system to generalize styles exposed for auto-registration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Package] Theme/packages/theme[Type] TaskIssues or PRs that have been broken down into an individual action to take

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions