Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

1.5K
Vistas
Angular material styles are not being applied correctly

I just added styles.css file, but the project is created with scss style configuration. I don't know how to have the styles back on my controls.

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

When the application stylesheet is changed within the Angular application, a reference to the Material themes are likely to be in the original stylesheet that contained the imported theme when Material was installed. This can explain why the build and rendered component scripts do not include Material CSS that are still within the original stylesheet.

To fix this issue, try one of the following:

The Angular Material theme is visible when it is included in one of the following areas of your application:

  1. In Angular.json, within the styles section add the location of the Material theme CSS file:

    "styles": [ "./node_modules/@angular/material/prebuilt-themes/deeppurple-amber.css", "src/styles.css" ],

  2. In styles.css import one of the Material CSS themes as shown:

    @import "~@angular/material/prebuilt-themes/deeppurple-amber.css";

Rebuild the application so that the referenced styles are bundled into the scripts.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda