From 1db99dd4b7e70566ca2a4c7a04bb35fceb639592 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 1 Dec 2021 15:38:14 +0000 Subject: [PATCH] CSS: Use Prompt as default font Signed-off-by: Michael Tremer --- Makefile.am | 1 + src/styles/_fonts.scss | 53 +++++++++++++++++++++++++++++++++++++++ src/styles/westferry.scss | 7 ++++++ 3 files changed, 61 insertions(+) create mode 100644 src/styles/_fonts.scss diff --git a/Makefile.am b/Makefile.am index 55f49c4..416be26 100644 --- a/Makefile.am +++ b/Makefile.am @@ -184,6 +184,7 @@ dist_webroot_css_DATA = \ src/styles/westferry.css EXTRA_DIST += \ + src/styles/_fonts.scss \ src/styles/westferry.scss CLEANFILES += \ diff --git a/src/styles/_fonts.scss b/src/styles/_fonts.scss new file mode 100644 index 0000000..107f9d0 --- /dev/null +++ b/src/styles/_fonts.scss @@ -0,0 +1,53 @@ +/* latin-ext */ +@font-face { + font-family: "Prompt"; + font-style: normal; + font-weight: 400; + src: local("Prompt Regular"), local("Prompt-Regular"), url(../fonts/Prompt-Regular.ttf) format("truetype"); + unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; +} + +/* latin */ +@font-face { + font-family: "Prompt"; + font-style: normal; + font-weight: 400; + src: local("Prompt Regular"), local("Prompt-Regular"), url(../fonts/Prompt-Regular.ttf) format("truetype"); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; +} + +/* latin-ext */ +@font-face { + font-family: 'Prompt'; + font-style: normal; + font-weight: 500; + src: local('Prompt Medium'), local('Prompt-Medium'), url(../fonts/Prompt-Medium.ttf) format("truetype"); + unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; +} + +/* latin */ +@font-face { + font-family: 'Prompt'; + font-style: normal; + font-weight: 500; + src: local('Prompt Medium'), local('Prompt-Medium'), url(../fonts/Prompt-Medium.ttf) format("truetype"); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; +} + +/* latin-ext */ +@font-face { + font-family: "Prompt"; + font-style: normal; + font-weight: 700; + src: local("Prompt Bold"), local("Prompt-Bold"), url(../fonts/Prompt-Bold.ttf) format("truetype"); + unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; +} + +/* latin */ +@font-face { + font-family: "Prompt"; + font-style: normal; + font-weight: 700; + src: local("Prompt Bold"), local("Prompt-Bold"), url(../fonts/Prompt-Bold.ttf) format("truetype"); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; +} diff --git a/src/styles/westferry.scss b/src/styles/westferry.scss index e7024ff..17e88f6 100644 --- a/src/styles/westferry.scss +++ b/src/styles/westferry.scss @@ -1,3 +1,10 @@ +/* + Global Settings +*/ +$body-font-family: Prompt, sans-serif; + +// Import fonts +@import "fonts"; /* Import Foundation Sites -- 2.47.3