Skip to content

Add classes to HTML instead of the BODY #13

@fcisio

Description

@fcisio

Hi, would it be possible to add the loaded classes on HTML instead of the Body?
This would allow setting styles at the root of the project instead of its first child.

I bring up this use case mainly because of rem units, which are relative to the font-size at the root.
So if you have the intention of using rem units anywhere, the font-size needs to be on HTML tag.

This could potentially be a new option scope: 'html/body', preventing breaking changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions