-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtypography.js
More file actions
69 lines (68 loc) · 1.96 KB
/
typography.js
File metadata and controls
69 lines (68 loc) · 1.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import { getFontSizes } from '../helpers/fonts.js';
export default {
fluid: true,
letterSpacing: false,
lineHeight: false,
writingMode: false,
defaultFontSizes: false,
customFontSize: true,
fontFamilies: [
// For more info about loading fonts see https://fullsiteediting.com/lessons/theme-json-typography-options/
{
// Set this to be your body font family.
fontFamily: 'Roboto Condensed',
name: 'Roboto Condensed',
slug: 'body',
fontFace: [
{
fontFamily: 'Roboto Condensed',
fontStretch: 'normal',
fontStyle: 'normal',
fontWeight: '300 900',
// Fonts have to be woff2 to work with WP's font loader.
src: ['file:./src/fonts/RobotoCondensed-VariableFont_wght.woff2'],
},
{
fontFamily: 'Roboto Condensed Italic',
fontStretch: 'normal',
fontStyle: 'Italic',
fontWeight: '300 900',
// Fonts have to be woff2 to work with WP's font loader.
src: [
'file:./src/fonts/RobotoCondensed-Italic-VariableFont_wght.woff2',
],
},
],
},
{
// Set this to be your heading font family.
fontFamily: 'Roboto Condensed',
name: 'Roboto Condensed',
slug: 'heading',
/* Load custom fonts with fontFace
fontFace: [
{
fontFamily: 'FONT_FAMILY_HERE',
fontStretch: 'normal',
fontStyle: 'normal',
fontWeight: '300 900',
src: ['file:./src/fonts/FONT_NAME_HERE.woff2'],
},
],*/
},
{
fontFamily:
'-apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif',
name: 'System Sans-serif',
slug: 'system-sans-serif',
},
{
fontFamily:
'Iowan Old Style, Apple Garamond, Baskerville, Times New Roman, Droid Serif, Times, Source Serif Pro, serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol',
name: 'System Serif',
slug: 'system-serif',
},
],
// Font sizes now use CSS custom properties defined in tailwind.css
fontSizes: getFontSizes(),
};