1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Is there a way to dynamically update your apps typography config in Angular Material 18?

Discussão em 'Angular' iniciado por Marmiton, Outubro 13, 2024.

  1. Marmiton

    Marmiton Guest

    I'm looking to drive font size as a configuration option in my applications settings, at the moment I have a single typography config set that is being applied app-wide.

    @include mat.all-component-typographies($mat-typography);


    It seems like updating the typography config would be the cleanest way of doing this, and I was hoping to find a way to update the config based on some mechanism I can control (like a class) but this doesn't seem like it's supported.

    Is there a new method for doing this in Material 18? I have found some older blog posts that seemed like they are on the right track, but the mixins being used aren't available in this version of Material.

    blog post I was reading - https://www.universal-tutorial.com/angular-tutorials/angular-typography

    Continue reading...

Compartilhe esta Página