custom font
{% style %}
@font-face {
font-family: 'GothamRnd';
src: url('https://cdn.shopify.com/s/files/1/0588/3507/5116/files/GothamRnd-Medium.woff2?v=1669360810') format('woff2'),
url('https://cdn.shopify.com/s/files/1/0588/3507/5116/files/GothamRnd-Medium.woff?v=1669360811') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'GothamRnd';
src: url('https://cdn.shopify.com/s/files/1/0588/3507/5116/files/GothamRnd-Light.woff2?v=1669360810') format('woff2'),
url('https://cdn.shopify.com/s/files/1/0588/3507/5116/files/GothamRnd-Light.woff?v=1669360810') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'GothamRnd-Book';
src: url('https://cdn.shopify.com/s/files/1/0588/3507/5116/files/GothamRnd-Book.woff2?v=1669360810') format('woff2'),
url('https://cdn.shopify.com/s/files/1/0588/3507/5116/files/GothamRnd-Book.woff?v=1669360810') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'Gotham';
src: url('https://cdn.shopify.com/s/files/1/0588/3507/5116/files/Gotham-Medium.woff2?v=1669360812') format('woff2'),
url('https://cdn.shopify.com/s/files/1/0588/3507/5116/files/Gotham-Medium.woff?v=1669360811') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'Gotham';
src: url('https://cdn.shopify.com/s/files/1/0588/3507/5116/files/Gotham-Light.woff2?v=1669360810') format('woff2'),
url('https://cdn.shopify.com/s/files/1/0588/3507/5116/files/Gotham-Light.woff?v=1669360810') format('woff');
font-weight: normal;
font-style: normal;
}
{% endstyle %}
{%- capture sitecss -%}
{% if settings.rtl %}
{% else %}
{% endif %}
{% if settings.fonts == '1' %}
{% liquid
assign font1 = settings.font1
assign ft1 = font1.family
assign font2 = settings.font2 | default: font1
assign ft2 = font2.family
assign font3 = settings.font3 | default:font1
assign ft3 = font3.family
%}
{% for variant in font1.variants %}{% if variant.style != "italic" %}{% if variant.weight == "400" or variant.weight == "700" %}{% endif %}{% endif %}{% endfor %}
{%- if ft2 != ft1 -%}
{% for variant in font2.variants %}{% if variant.style != "italic" %}{% if variant.weight == "400" or variant.weight == "700" %}{% endif %}{% endif %}{% endfor %}
{%- endif -%}
{%- if ft3 != ft1 -%}
{% for variant in font3.variants %}{% if variant.style != "italic" %}{% if variant.weight == "400" or variant.weight == "700" %}{% endif %}{% endif %}{% endfor %}
{%- endif -%}
{% capture fontsCss %}
{%- for variant in font1.variants -%}{% if variant.weight > "200" and variant.style != "italic" %}{{ variant | font_face: font_display: 'swap' }}{% endif %}{%- endfor -%}
{%- if ft2 != ft1 -%}
{% for variant in font2.variants %}{% if variant.weight > "200" and variant.style != "italic" %}{{ variant | font_face: font_display: 'swap' }}{% endif %}{% endfor %}
{%- endif -%}
{%- if ft3 != ft1 -%}
{% for variant in font3.variants %}{% if variant.weight > "200" and variant.style != "italic" %}{{ variant | font_face: font_display: 'swap' }}{% endif %}{% endfor %}
{%- endif -%}
{% endcapture %}
{% else %}
{% liquid
assign font1 = settings.gfont1 | strip | replace: ' ', '+'
assign font2 = settings.gfont2 | strip | replace: ' ', '+'
assign font3 = settings.gfont3 | strip | replace: ' ', '+'
%}
{%- capture fontNames -%}{{font1}},{{font2}},{{font3}}{%- endcapture -%}
{%- assign fontNames = fontNames | split: ',' | uniq | join: ',' | split: ',' -%}
{%- capture gfonts -%}{%- for font in fontNames -%}family={{font}}:wght@300;400;500;600;700;800;900{% if forloop.last != true %}&{% endif %}{% endfor %}{%- endcapture -%}
{% endif %}
{% if settings.rtl %}
{{ 'themeRtl.css' | asset_url | stylesheet_tag }}
{% else %}
{{ 'theme.css' | asset_url | stylesheet_tag }}
{% endif %}
{%- if request.page_type == 'collection' or request.page_type == 'search' -%}{{ 'collection.css' | asset_url | stylesheet_tag }}{%- endif -%}
{%- if request.page_type == 'blog' or request.page_type == 'article' or request.page_type == 'page' -%}{{ 'pages.css' | asset_url | stylesheet_tag }}{%- endif -%}
{%- endcapture -%}
{{sitecss | strip_newlines | remove: " " | remove: " " | replace: "; ",";" | replace: ", .",",." }}