Skip to content

Auto-apply prose styling / smart spacing to post & rich-text content #162

Description

@jackgranatowski

Idea

An opt-in toggle that automatically wraps (or targets) post/rich-text content with the framework's .sf-prose treatment, so blog/editorial content gets correct typography and gap-based spacing without the author adding a class.

Why

The framework provides .sf-prose / .sf-flow (margin reset + adjacent-sibling gaps), but it's opt-in per element. For WordPress content (the_content, block content, WooCommerce descriptions) users want it applied automatically.

Scope

  • Setting to enable auto-prose on selected content areas (with a selector allowlist + an "off" escape hatch mirroring .sf-not-prose).
  • No layout regressions when disabled.

Acceptance

  • Toggle applies prose/smart-spacing to content automatically; per-area allowlist + opt-out

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions