Change fonts to Open Sans
Permalink
Hi I'd like to change my fonts to Open sans G. I'm using a copy of elemental theme.
I've tried changing the variables in default with ~"'Open sans', sans-serif, Arial"; but with no luck :(
Any ideas?
Thanks
p
I've tried changing the variables in default with ~"'Open sans', sans-serif, Arial"; but with no luck :(
Any ideas?
Thanks
p
Here are the steps required to switch the default font in the Elemental theme.
Before doing this, take note that not all fonts have the same font-weight values. Ideally you want the same number of font weights and similar values. Include only font weights that will be used.
Example:
Titillium Web: 200, 400, 700 ,900
Open Sans: 300, 400, 700, 800
Example: switch from Titillium Web to Open Sans
1. open defaults.less
themes\elemental\css\build\fonts\defaults.less
- delete or comment out this line
- add your @import font url
2. open defaults.less
themes\elemental\css\presets\defaults.less
- search for all uses of "Titillium Web" and replace with "Open Sans"
- go through all the variables with font-weight properties (using the -font-weight suffix) and change the values to the closest font weight values of the new font
Example:
Titillium Web
Open Sans
- Open Sans does not have a 900 font-weight style, but it does have an 800 font-weight style