Typography

Font Family

Utilities for sets the native font family and Google Fonts.


Variant

Active Checked Child-Selection Dark Mode Disabled Expand First-Last-Selection First-Letter Focus Focus-Visible Focus-Within Fullscreen Group-Focus Group-Hover Hover Landscape Light Mode Portrait Reduce-Motion Responsive Selection-Hover Visited

API

classcss
font-defaultfont-family: -apple-system, system-ui, BlinkMacSystemFont, Segoe UI, Roboto, Ubuntu, Helvetica Neue, sans-serif
Text
font-sansfont-family: -apple-system, system-ui, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Fira Sans, Ubuntu, Oxygen, Oxygen Sans, Cantarell, Droid Sans, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Lucida Grande, Helvetica, Arial, sans-serif
Text
font-seriffont-family: Noto Serif, Droid Serif, Georgia, Cambria, Times New Roman, Times, serif
Text
font-monofont-family: SF Mono, Consolas, Roboto Mono, Noto Mono, Droid Mono, Fira Mono, Ubuntu Mono, Oxygen Mono, Lucida Console, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace
Text
font-arabicfont-family: Arabic UI Display, Geeza Pro, Simplified Arabic, -apple-system, system-ui, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Fira Sans, Ubuntu, Oxygen, Oxygen Sans, Cantarell, Droid Sans, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Lucida Grande, Helvetica, Arial, sans-serif
نص
font-japanesefont-family: Meiryo, Yu Gothic, Hiragino Kaku Gothic Pro, Hiragino Sans, -apple-system, system-ui, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Fira Sans, Ubuntu, Oxygen, Oxygen Sans, Cantarell, Droid Sans, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Lucida Grande, Helvetica, Arial, sans-serif
テキスト
font-koreanfont-family: Malgun Gothic, Apple SD Gothic Neo, -apple-system, system-ui, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Fira Sans, Ubuntu, Oxygen, Oxygen Sans, Cantarell, Droid Sans, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Lucida Grande, Helvetica, Arial, sans-serif
본문
font-thaifont-family: Leelawadee, Thonburi, -apple-system, system-ui, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Fira Sans, Ubuntu, Oxygen, Oxygen Sans, Cantarell, Droid Sans, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Lucida Grande, Helvetica, Arial, sans-serif
ข้อความ
font-chinesefont-family: Microsoft Yahei, PingFang SC, PingFang TC, Hiragino Sans, Hiragino Kaku Gothic Pro, -apple-system, system-ui, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Fira Sans, Ubuntu, Oxygen, Oxygen Sans, Cantarell, Droid Sans, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Lucida Grande, Helvetica, Arial, sans-serif
文本

Usage

Set font family to an specific element.

<div class="font-default">
...
</div>
HTML
.dummy {
@extend
.font-default;
}
SCSS

Set font family to <body> as default.

<body class="font-default">
...
</body>
HTML
body {
@extend
.font-default;
}
SCSS

Google Fonts

Handpicked font types from Google Fonts.

Google Fonts is not enabled by default. See build full version settings file.

Variant

Active Checked Child-Selection Dark Mode Disabled Expand First-Last-Selection First-Letter Focus Focus-Visible Focus-Within Fullscreen Group-Focus Group-Hover Hover Landscape Light Mode Portrait Reduce-Motion Responsive Selection-Hover Visited

API

classcss
font-alegreyafont-family: "Alegreya", sans-serif
Text
font-alegreya-sansfont-family: "Alegreya Sans", sans-serif
Text
font-archivo-narrowfont-family: "Archivo Narrow", sans-serif
Text
font-biorhymefont-family: "BioRhyme", sans-serif
Text
font-cardofont-family: "Cardo", sans-serif
Text
font-chivofont-family: "Chivo", sans-serif
Text
font-inconsolatafont-family: "Inconsolata", sans-serif
Text
font-inknut-antiquafont-family: "Inknut Antiqua", sans-serif
Text
font-karlafont-family: "Karla", sans-serif
Text
font-latofont-family: "Lato", sans-serif
Text
font-libre-baskervillefont-family: "Libre Baskerville", sans-serif
Text
font-lorafont-family: "Lora", sans-serif
Text
font-manropefont-family: "Manrope", sans-serif
Text
font-merriweatherfont-family: "Merriweather", sans-serif
Text
font-montserratfont-family: "Montserrat", sans-serif
Text
font-neutonfont-family: "neuton", sans-serif
Text
font-open-sansfont-family: "Open Sans", sans-serif
Text
font-pt-sansfont-family: "PT Sans", sans-serif
Text
font-pt-seriffont-family: "PT Serif", sans-serif
Text
font-playfair-displayfont-family: "PlayFair Display", sans-serif
Text
font-poppinsfont-family: "Poppins", sans-serif
Text
font-proza-librefont-family: "Proza Libre", sans-serif
Text
font-ralewayfont-family: "Raleway", sans-serif
Text
font-robotofont-family: "Roboto", sans-serif
Text
font-roboto-slabfont-family: "Roboto Slab", sans-serif
Text
font-rubikfont-family: "Rubik", sans-serif
Text
font-source-sans-profont-family: "Source Sans Pro", sans-serif
Text
font-source-serif-profont-family: "Source Serif Pro", sans-serif
Text
font-spectralfont-family: "Spectral", sans-serif
Text
classcss
font-noto-sans-hkfont-family: "Noto Sans HK", sans-serif
文本
font-noto-sans-scfont-family: "Noto Sans SC", sans-serif
文本
font-noto-serif-scfont-family: "Noto Serif SC", sans-serif
文本
font-zcool-qingke-huangyoufont-family: "ZCOOL Qingke HuangYou", sans-serif
文本
font-zcool-kuailefont-family: "ZCOOL KuaiLe", sans-serif
文本
classcss
font-noto-serif-jpfont-family: "Noto Serif JP", sans-serif
テキスト
font-m-plus-rounded-1cfont-family: "M Plus Rounded 1c", sans-serif
テキスト
font-kaisei-optifont-family: "Kaisei Opti", sans-serif
テキスト
font-zen-maru-gothicfont-family: "Zen Maru Gothic", sans-serif
テキスト
font-dela-gothic-onefont-family: "Dela Gothic One", sans-serif
テキスト
font-stickfont-family: "Stick", sans-serif
テキスト
classcss
font-noto-sans-krfont-family: "Noto Sans KR", sans-serif
본문
font-noto-serif-krfont-family: "Noto Serif KR", sans-serif
본문
font-black-han-sansfont-family: "Black Han Sans", sans-serif
본문
font-juafont-family: "Jua", sans-serif
본문
font-do-hyeonfont-family: "Do Hyeon", sans-serif
본문
font-sunflowerfont-family: "Sunflower", sans-serif
본문
font-nanum-myeongjofont-family: "Nanum Myeongjo", sans-serif
본문

Usage

Lorem ipsum, dolor sit amet consectetur adipisicing elit.

Open-Sans

Lorem ipsum, dolor sit amet consectetur adipisicing elit.

BioRhyme

Lorem ipsum, dolor sit amet consectetur adipisicing elit.

Lora

Set Google Fonts type to an element.

<p class="font-lora">
...
</p>
HTML
.dummy {
@extend
.font-lora;
}
SCSS

Customize Google Fonts

Use WEAVV dedicated API to embedding the Google Fonts in the framework without manually adding the line @import url(...);.

@include google-fonts(
(
font: 'Alata',
weight: '400;500;800'
)
//...
);
HTML

The generated code look like below in your WEAVV CSS final build.

/* @file: `dist/{{ site.smallproductname }}-{{ site.version.framework }}.css` */
@import url("https://fonts.googleapis.com/css2?family=Alata&:wght@400;500;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto&:wght@400;500&display=swap");
SCSS

To embed more than one Google Fonts.

@include google-fonts(
(
font: 'Alata',
weight: '400;500;800'
),
(
font: 'Lato',
weight: '400;500'
)
);
SCSS