Forked from shopifypartners/updated-fonts-filters.css
Created
January 10, 2021 09:07
-
-
Save Arifursdev/d8e270b85cd5e87bb4f7c768108f18ed to your computer and use it in GitHub Desktop.
Section of stylesheet showing how variables are assigned & how filters are applied - https://www.shopify.com/partners/blog/font-picker
This file contains hidden or 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
{% assign header_font = settings.header_font_new %} | |
{% assign base_font = settings.base_font_new %} | |
{{ header_font | font_face }} | |
{{ base_font | font_face }} | |
{%- assign base_font_bold = base_font | font_modify: 'weight', 'bolder' -%} | |
{%- assign base_font_italic = base_font | font_modify: 'style', 'italic' -%} | |
{%- assign base_font_bold_italic = base_font_bold | font_modify: 'style', 'italic' -%} | |
{{ base_font_bold | font_face }} | |
{{ base_font_italic | font_face }} | |
{{ base_font_bold_italic | font_face }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment