From: Michael Tremer Date: Sat, 10 May 2025 14:28:47 +0000 (+0000) Subject: CSS: Use Prompt as the main font X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=98898b39981e00b9b0a253d6e24281de3b06bce1;p=people%2Fms%2Fwestferry.git CSS: Use Prompt as the main font Signed-off-by: Michael Tremer --- diff --git a/frontend/src/assets/main.scss b/frontend/src/assets/main.scss index eae5b20..b14ff01 100644 --- a/frontend/src/assets/main.scss +++ b/frontend/src/assets/main.scss @@ -1,4 +1,69 @@ +/* + Variables +*/ + /* Import all of Bulma */ -@use "bulma/bulma"; +@use "bulma/sass" with ( + // Fonts + $family-primary: "Prompt, sans-serif", +); + +/* + Fonts +*/ + +/* latin-ext */ +@font-face { + font-family: "Prompt"; + font-style: normal; + font-weight: 400; + src: url(@/assets/fonts/Prompt-Regular.woff2) format("woff2"), url(@/assets/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: url(@/assets/fonts/Prompt-Regular.woff2) format("woff2"), url(@/assets/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: url(@/assets/fonts/Prompt-Medium.woff2) format("woff2"), url(@/assets/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: url(@/assets/fonts/Prompt-Medium.woff2) format("woff2"), url(@/assets/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: url(@/assets/fonts/Prompt-Bold.woff2) format("woff2"), url(@/assets/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: url(@/assets/fonts/Prompt-Bold.woff2) format("woff2"), url(@/assets/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; +}