Topic: Customize font type via scss or variables, "fas" and "far" seem hardcoded
octavian.gherghinis
pro premium priority asked 4 days ago
Expected behavior
I expect to be able to configure the font type as a variable somewhere. I can't find where the font type is specified for MDB and its plugins.
Actual behavior
"fas" and "far" seem hardcoded in various places in css and js.
Resources (screenshots, code snippets etc.)
Kamila Pieńkowska
staff answered 3 days ago
The fas
and far
are hardcoded in some places.
Font can be changed with SCSS variable $font-family-roboto
or CSS variable --mdb-font-roboto
.
octavian.gherghinis pro premium priority commented 3 days ago
Thanks, I wasn't asking about the font family, but about the icons.
What is your proposed solution to replace the hardcoded "fas" with something else, like "fa-duotone" for instance, in all the CSS and JS from MDBootstrap ?
Kamila Pieńkowska staff commented 2 days ago
In theory, you can either replace them in the source code and build package from source.
Or replace styles for far
and fas
with doutone styles, but it may break some features.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 8.2.0
- Device: Laptop
- Browser: Chrome, Chromium, Vivaldi, Firefox
- OS: Linux
- Provided sample code: No
- Provided link: No