Theme Font Configuration
Font Size
The font size values are of strings type and can be configured as follows:
- Property: "theme_font_size"
- Choices: "theme-fs-sm", "theme-fs-md", "theme-fs-lg"
Example
"theme_font_size": { "value" : "theme-fs-md" }
Changing Font Size Settings
There are two ways to change the font size settings:
1. Using the Live Customizer
You can work on font size using the Live Customizer in two different ways:
a. By Declaring Properties in gulp.config.json
Example gulp.config.json:
"options":{
"saveLocal": "sessionStorage",
"storeKey": "huisetting-html",
"setting":{
"theme_font_size": { "value": "theme-fs-md" },
}
},
b. By Adding Properties in the Tag
Example <meta>
tag:
<head>
<meta name="setting_options"
content="{
"saveLocal":"sessionStorage",
"storeKey":"huisetting-html",
"setting":{
"theme_font_size": { "value": "theme-fs-md" },
}
}>
</head>
1. Manual Configuration
You can change the theme font with a single action by adding the appropriate class to
the <html>
tag.
Font Size
To change the font size, set the class in html tag:
- Font Small:
- Font Medium:
- Font Large:
<html class="theme-fs-sm">
.......
</html>
<html class="theme-fs-md">
.......
</html>
<html class="theme-fs-lg">
.......
</html>