0

I am adding a custom font in my newly created theme in magento 2. Below are the steps which i am doing:

1. Placed custom fonts in

/app/design/frontend/Vendor_name/Theme_name/web/fonts

2) Added_typography.less in

/app/design/frontend/Vendor_name/Theme_name/web/css/source 

and added the font-face mixin in it.

3) Now, overriding the Font-face variable in _theme.less

But somehow its not working. I tried defining the font-face mixins and adding font-face-base variable in _extends.less.

Still not clear what is the best way to define a custom font. Can somebody suggest the standard way.

1 Answer 1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.