45 lines
946 B
Plaintext
45 lines
946 B
Plaintext
{% doc %}
|
|
Loads the Archivo weights used by the storefront.
|
|
|
|
@example
|
|
{% render 'font-faces' %}
|
|
{% enddoc %}
|
|
|
|
<style>
|
|
@font-face {
|
|
font-family: Archivo;
|
|
src: url('{{ 'archivo-light.ttf' | asset_url }}') format('truetype');
|
|
font-weight: 300;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: Archivo;
|
|
src: url('{{ 'archivo-regular.ttf' | asset_url }}') format('truetype');
|
|
font-weight: 400;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: Archivo;
|
|
src: url('{{ 'archivo-medium.ttf' | asset_url }}') format('truetype');
|
|
font-weight: 500;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: Archivo;
|
|
src: url('{{ 'archivo-bold.ttf' | asset_url }}') format('truetype');
|
|
font-weight: 700;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
}
|
|
|
|
body {
|
|
font-family: Archivo, sans-serif;
|
|
}
|
|
</style>
|