Topic: Customize font type via scss or variables, "fas" and "far" seem hardcoded
octavian.gherghinis
priority
asked 2 weeks 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 2 weeks 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 priority commented 2 weeks 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 1 week 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
- ForumUser: Priority
- 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