Skip to content

Instantly share code, notes, and snippets.

@cristobal-io
Created December 9, 2022 18:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cristobal-io/cc7a2cc5f046c624f44b9cf3a7f68879 to your computer and use it in GitHub Desktop.
Save cristobal-io/cc7a2cc5f046c624f44b9cf3a7f68879 to your computer and use it in GitHub Desktop.
$fontsPathUrl: '/assets/' !default; // This works with imp start
@font-face {
font-family: 'Great Vibes';
src: url($fontsPathUrl + 'fonts/GreatVibes-Regular.woff2') format('woff2'),
url($fontsPathUrl + 'fonts/GreatVibes-Regular.woff') format('woff');
font-weight: normal;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Yellowtail';
src: url($fontsPathUrl + 'fonts/Yellowtail.woff2') format('woff2'),
url($fontsPathUrl + 'fonts/Yellowtail.woff') format('woff');
font-weight: normal;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Rouge Script';
src: url($fontsPathUrl + 'fonts/RougeScript-Regular.woff2') format('woff2'),
url($fontsPathUrl + 'fonts/RougeScript-Regular.woff') format('woff');
font-weight: normal;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Oswald-Medium';
src: url($fontsPathUrl + 'fonts/Oswald-Medium.woff2') format('woff2'),
url($fontsPathUrl + 'fonts/Oswald-Medium.woff') format('woff');
font-weight: 500;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Lato-Regular';
src: url($fontsPathUrl + 'fonts/Lato-Regular.woff2') format('woff2'),
url($fontsPathUrl + 'fonts/Lato-Regular.woff') format('woff');
font-weight: normal;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Lato-Bold';
src: url($fontsPathUrl + 'fonts/Lato-Bold.woff2') format('woff2'),
url($fontsPathUrl + 'fonts/Lato-Bold.woff') format('woff');
font-weight: 700;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Lato-Italic';
src: url($fontsPathUrl + 'fonts/Lato-Italic.woff2') format('woff2'),
url($fontsPathUrl + 'fonts/Lato-Italic.woff') format('woff');
font-weight: normal;
font-style: italic;
font-display: swap;
}
@font-face {
font-family: 'HelveticaNeue-Medium';
src: url($fontsPathUrl + 'fonts/HelveticaNeue_Md.woff2') format('woff2'),
url($fontsPathUrl + 'fonts/HelveticaNeue_Md.woff') format('woff');
font-weight: normal;
font-style: italic;
font-display: swap;
}
@font-face {
font-family: 'HelveticaNeue';
src: url($fontsPathUrl + 'fonts/HelveticaNeue_Rm.woff2') format('woff2'),
url($fontsPathUrl + 'fonts/HelveticaNeue_Rm.woff') format('woff');
font-weight: normal;
font-style: italic;
font-display: swap;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment