This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "48px", | |
"slug": "max-48", | |
"size": "clamp(30px, 4vw, 48px)" | |
}, | |
{ | |
"name": "60px", | |
"slug": "max-60", | |
"size": "clamp(36px, 5vw, 60px)" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
} | |
"name": "Tiny", | |
"slug": "tiny", | |
"size": "16px" | |
}, | |
{ | |
"name": "Small", | |
"slug": "small", | |
"size": "18px" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": 1, | |
"settings": { | |
"color": { | |
"customGradient": true, | |
"gradients": [ | |
{ | |
"name": "Fuchsia to Deep Purple", | |
"gradient": "fuchsia-to-deep-purple" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"custom": { | |
"fontFamily": { | |
"primary": "'Jost', sans-serif", | |
"monospace": "monospace" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Enqueue Google Fonts in block editor. | |
add_action( 'enqueue_block_editor_assets', 'frost_enqueue_google_fonts_editor' ); | |
function frost_enqueue_google_fonts_editor() { | |
wp_enqueue_style( | |
CHILD_THEME_HANDLE . '-editor-google-fonts', | |
'//fonts.googleapis.com/css2?family=Jost:wght@360;480&display=swap', | |
array(), | |
CHILD_THEME_VERSION | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Enqueue Google Fonts. | |
add_action( 'wp_enqueue_scripts', 'frost_enqueue_google_fonts' ); | |
function frost_enqueue_google_fonts() { | |
wp_enqueue_style( | |
CHILD_THEME_HANDLE . '-google-fonts', | |
'//fonts.googleapis.com/css2?family=Jost:wght@360;480&display=swap', | |
array(), | |
CHILD_THEME_VERSION | |
); |