theming-material / Class

StandardTypescaleBuilder

Implementation of ThemeBuilder that generates theme tokens of typescale levels strictly following the Material specifications.

Notes

A typescale is a selection of font styles that can be used across an app, ensuring a flexible, yet consistent, style that accommodates a range of purposes. See the specification for more details.

Each TypescaleConfig generates 5 theme tokens. For a typescale level named "display-large", the generated tokens will be "display-large-font", "display-large-weight", "display-large-size", "display-large-line-height", "display-large-tracking".

See Also

Properties

NameTypeDescription
core
p
TypescaleBuilder

Methods

build()

implements ThemeBuilder

No documentation has been provided.

Presentation
Parameters
Returns

Example usage

provideTheme(
  withThemeBuilder("typescale", StandardTypescaleBuilder, {
    font: 'Roboto, sans-serif',
  }),
),