-
Notifications
You must be signed in to change notification settings - Fork 3
Editing fonts
The theme’s default fonts can be modified. See online references for suggested font formats and their current browser support.
-
Place the font files under the theme folder in src\assets\fonts.
-
Open the src\styles\fonts.scss file, and add a font face section with references to the font files:
@font-face {
font-family: 'Amita';
src: url('../assets/fonts/amita-v3-latin_devanagari_latin-ext-regular.woff2') format('woff2'),
url('../assets/fonts/amita-v3-latin_devanagari_latin-ext-regular.woff') format('woff');
font-weight: normal;
font-style: normal;
}
Now it’s possible to use this font in the application, and reference it using the name given in the font-family
property. For example, to change the font that is used throughout the application, change the variable of --font-family
in the src\styles\variables.scss file as follows:
--font-family: 'Amita';
The font is now changed for the entire application.
You can also create a font face for a specific part of the application and reference it by using the CSS font-family
rule with the font name given in the font-face
declaration:
font-family: 'Amita';
Check your browser to see the font changes in the homepage and categories page.
uStore NG Themes
uStore NG Extensibility
Theme customization overview
Editing CSS variables
Editing the CSS
Migration from Legacy to NG
Theme development overview
Getting started
Theme file structure
Publishing the theme
Upgrading a Custom Theme
Editing HTML content
Adding a new page
Adding assets
Adding a component
Customizing a skin
Modifying CSS variables
Editing fonts
Adding JavaScript
uStore library
Working with REST API
Accessing uStore data
Managing custom state
Working with localizations
General services
Adding an external package
Customizing the Theme Editor
Theme tips and tricks
uStoreProvider Reference
Tax Webhook
Order Approval Webhook
Manufacturer Webhook
Widgets
Cart Export Webhook