Microgen uses system fonts, Google fonts and Adobe Fonts. You can also add your own font files if you like.
Adobe Fonts can be added without making any code changes.
-
Go to the theme section of your site and choose "fonts"
-
Add a link to your Adobe Fonts, i.e. https://use.typekit.net/123abc.css
-
For each font in your web project add a font. The font label can be whatever you like, the font family is the font name lowercase and hyphenated. If your font is named "Freight Sans Pro" in Adobe Fonts the font family would be "freight-sans-pro". Each weight you want to use needs to be added seperately. Do not use the word "Bold" in your font label, instead indicate the weight number, i.e. "Freight Sans Pro 700". Refer to your Adobe Web Project for the corret names.
Microgen includes a collection of popular google fonts by default. If the one you want is not included you can add it to the list of google fonts located at components/tina/options/google-font-options.js
.
You can add your own custom font files to Microgen as well.
-
Copy your woff font file to
/public/fonts/your-font.woff
-
Add a link to your font file to the head section of
/components/layout/layout.tsx
<link rel="stylesheet" type="text/css" href="/fonts/your-font.woff"></link>
-
Add your font to the custom font list
/components/tina/options/custom-font-options.js
. The value should be the name{ "label": "Your Font", "value": "yourfont:wght@400" },
-
Add a CSS rule for your font to
/components/layout/styles.tsx
. Refer to the instructions included with your webfont to determine the correct font-family and src values.@font-face { font-family: 'YourFont'; src: url('fonts/yourfont.woff') format('woff'); }
Microgen features a collection of icons that can be used in buttons.
-
Add the SVG code to
/components/icons/fa-icon.tsx
.case "your-icon": return <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path d="M9.4 233.4c-12.5"/></svg>
-
Add the icon to the iconOptions array in
/schema/options.tsx
{ label: "Your Icon", value: "your-icon" },
Coming Soon.