Skip to content

docs-bug(Typography): Confusion under what element add @mat.theme((...)), html or body #31074

@stasberkov

Description

@stasberkov

Documentation Feedback

Your guide https://material.angular.dev/guide/theming#getting-started suggests adding @mat.theme right under html element. While your examples on https://material.angular.dev/components/categories pages have @mat.theme under body element.

This causes significant difference: placing @mat.theme under html adds 13px font-size (by default it is 16px) that makes text labels tangibly smaller (since body text is set as 0.875rem).

Fonts in your https://material.angular.dev/components/categories pages looks way larger than if you place @mat.theme under html element.

Please resolve the confusion (fix documentation guide or the examples), what is the correct place for @mat.theme: html or body.

Affected documentation page

https://material.angular.dev/guide/theming#getting-started

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsThis issue is related to documentationneeds triageThis issue needs to be triaged by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions