|
| 1 | +/* How do fonts work in this build setup? |
| 2 | + * Fonts are installed from fontsource packages. |
| 3 | + * In the file ./gulp.d/tasks/build.js there is an action that copies the font files |
| 4 | + * from the installed packages into the output directory, based on matching file names. |
| 5 | + * search for 'fontsource' in the file, and you will find a post CSS action. |
| 6 | + */ |
| 7 | + |
| 8 | +/* Noto Sans - the base font for the body */ |
| 9 | + |
| 10 | +@font-face { |
| 11 | + font-family: "Noto Sans"; |
| 12 | + font-style: normal; |
| 13 | + font-weight: 400; |
| 14 | + src: |
| 15 | + url(~@fontsource/noto-sans/files/noto-sans-latin-400-normal.woff2) format("woff2"), |
| 16 | + url(~@fontsource/noto-sans/files/noto-sans-latin-400-normal.woff) format("woff"); |
| 17 | +} |
| 18 | + |
| 19 | +@font-face { |
| 20 | + font-family: "Noto Sans"; |
| 21 | + font-style: normal; |
| 22 | + font-weight: 700; |
| 23 | + src: |
| 24 | + url(~@fontsource/noto-sans/files/noto-sans-latin-700-normal.woff2) format("woff2"), |
| 25 | + url(~@fontsource/noto-sans/files/noto-sans-latin-700-normal.woff) format("woff"); |
| 26 | +} |
| 27 | + |
| 28 | +/* IMB Plex Mono - the header font */ |
| 29 | + |
| 30 | +@font-face { |
| 31 | + font-family: "IBM Plex Mono"; |
| 32 | + font-style: normal; |
| 33 | + font-weight: 400; |
| 34 | + src: |
| 35 | + url(~@fontsource/ibm-plex-mono/files/ibm-plex-mono-latin-400-normal.woff2) format("woff2"), |
| 36 | + url(~@fontsource/ibm-plex-mono/files/ibm-plex-mono-latin-400-normal.woff) format("woff"); |
| 37 | +} |
| 38 | + |
| 39 | +@font-face { |
| 40 | + font-family: "IBM Plex Mono"; |
| 41 | + font-style: normal; |
| 42 | + font-weight: 600; |
| 43 | + src: |
| 44 | + url(~@fontsource/ibm-plex-mono/files/ibm-plex-mono-latin-600-normal.woff2) format("woff2"), |
| 45 | + url(~@fontsource/ibm-plex-mono/files/ibm-plex-mono-latin-600-normal.woff) format("woff"); |
| 46 | +} |
| 47 | + |
| 48 | +/* Noto Sans Mono - The monospace font for code blocks */ |
| 49 | + |
| 50 | +@font-face { |
| 51 | + font-family: "Noto Sans Mono"; |
| 52 | + font-style: normal; |
| 53 | + font-weight: 400; |
| 54 | + src: |
| 55 | + url(~@fontsource/noto-sans-mono/files/noto-sans-mono-latin-400-normal.woff2) format("woff2"), |
| 56 | + url(~@fontsource/noto-sans-mono/files/noto-sans-mono-latin-400-normal.woff) format("woff"); |
| 57 | +} |
| 58 | + |
| 59 | +@font-face { |
| 60 | + font-family: "Noto Sans Mono"; |
| 61 | + font-style: normal; |
| 62 | + font-weight: 500; |
| 63 | + src: |
| 64 | + url(~@fontsource/noto-sans-mono/files/noto-sans-mono-latin-500-normal.woff2) format("woff2"), |
| 65 | + url(~@fontsource/noto-sans-mono/files/noto-sans-mono-latin-500-normal.woff) format("woff"); |
| 66 | +} |
0 commit comments