Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to override font #23

Closed
naqib83 opened this issue Apr 19, 2018 · 6 comments
Closed

How to override font #23

naqib83 opened this issue Apr 19, 2018 · 6 comments

Comments

@naqib83
Copy link

naqib83 commented Apr 19, 2018

Hi,
I am using formadmin theme for one of my application. There no hit on how to override the default font.
I am thinking of overriding the default font with a google font.

@caiotarifa
Copy link
Member

caiotarifa commented Apr 19, 2018

Set your font in$font-family variable (see all variables here) before importing the Formadmin theme.

$font-family: 'Open Sans', sans-serif;
@import 'formadmin/formadmin';

Please let me know if I can close this issue.

@naqib83
Copy link
Author

naqib83 commented Apr 19, 2018

Thanks for the quick reply. I have used like this. Wondering if the this is the way, because I don't much difference in font.

@import url('https://fonts.google.com/specimen/Noto+Sans');
$font-family: 'Noto Sans', sans-serif;
@import 'formadmin/formadmin';

@caiotarifa
Copy link
Member

Check through the element inspector of your browser if the font is being applied to the body.

aa

@caiotarifa
Copy link
Member

caiotarifa commented Apr 19, 2018

This issue is not related with Formadmin, you're using a wrong URL to import your Google font.

Try this way:

@import url('https://fonts.googleapis.com/css?family=Noto+Sans');

$font-family: 'Noto Sans', sans-serif;
@import 'formadmin/formadmin';

@naqib83
Copy link
Author

naqib83 commented Apr 19, 2018

It makes sense now. Thanks for all the help.

@caiotarifa
Copy link
Member

Closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants