If you have successfully integrated Google Font into your project, consider using !important
:
* {font-family: "Roboto Condensed", sans-serif !important;}
Alternatively,
body {font-family: "Roboto Condensed", sans-serif !important;}
Cascading Style Sheets (CSS) assign weights to rules based on selector specificity and order in the source code. This hierarchy determines which styles are applied to HTML elements.
In cases of conflicting rules for a single element, the following principles come into play:
- Origin of rules - User-defined styles take precedence over author-defined styles in conflicts between them.
- Specificity - The most specific selector will be applied when multiple declarations with the same importance and origin target the same property in an element's style.
- Source order - In cases of equal weight, the last declared rule in the stylesheet wins.
Sometimes, it may be necessary to modify the cascading behavior. By utilizing the !important CSS declaration, it is possible to break the chain of inheritance. When a property/value pair is marked as important, it takes precedence over other declarations for that property.
Reference: