Skip to content

Builder snippet expansion (short token in a CSS/style input expands to a CSS block) #163

Description

@jackgranatowski

Idea

Let users type a short token (e.g. ?clickable-parent, ?columns, ?fade) into a Bricks/Gutenberg style or CSS input and have the plugin expand it into the corresponding CSS block. This gives builder users a "recipe" DX without a preprocessor.

Why

The pure-CSS framework deliberately has no preprocessor/snippet-expansion mechanism (it's an out-of-scope non-goal there). A builder integration is exactly where this belongs, and it speeds up applying common patterns.

Scope

  • A registry of named snippets → CSS blocks (drawn from existing macros/patterns).
  • Expansion in the relevant Bricks/Gutenberg input(s); insert-and-edit.
  • Keep it explicit/opt-in; no silent global rewriting.

Acceptance

  • Typing a known token expands to the documented CSS block in-builder

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    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