|
| 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 | + local("Roboto Mono Regular"), |
| 16 | + local("RobotoMono-Regular"), |
| 17 | + url(~@fontsource/noto-sans/files/noto-sans-latin-400-normal.woff2) format("woff2"), |
| 18 | + url(~@fontsource/noto-sans/files/noto-sans-latin-400-normal.woff) format("woff"); |
| 19 | +} |
| 20 | + |
| 21 | +@font-face { |
| 22 | + font-family: "Noto Sans"; |
| 23 | + font-style: normal; |
| 24 | + font-weight: 700; |
| 25 | + src: |
| 26 | + local("Roboto Mono Medium"), |
| 27 | + local("RobotoMono-Medium"), |
| 28 | + url(~@fontsource/noto-sans/files/noto-sans-latin-700-normal.woff2) format("woff2"), |
| 29 | + url(~@fontsource/noto-sans/files/noto-sans-latin-700-normal.woff) format("woff"); |
| 30 | +} |
| 31 | + |
| 32 | +/* IMB Plex Mono - the header font */ |
| 33 | + |
| 34 | +@font-face { |
| 35 | + font-family: "IBM Plex Mono"; |
| 36 | + font-style: normal; |
| 37 | + font-weight: 400; |
| 38 | + src: |
| 39 | + url(~@fontsource/ibm-plex-mono/files/ibm-plex-mono-latin-400-normal.woff2) format("woff2"), |
| 40 | + url(~@fontsource/ibm-plex-mono/files/ibm-plex-mono-latin-400-normal.woff) format("woff"); |
| 41 | +} |
| 42 | + |
| 43 | +@font-face { |
| 44 | + font-family: "IBM Plex Mono"; |
| 45 | + font-style: normal; |
| 46 | + font-weight: 600; |
| 47 | + src: |
| 48 | + url(~@fontsource/ibm-plex-mono/files/ibm-plex-mono-latin-600-normal.woff2) format("woff2"), |
| 49 | + url(~@fontsource/ibm-plex-mono/files/ibm-plex-mono-latin-600-normal.woff) format("woff"); |
| 50 | +} |
| 51 | + |
| 52 | +/* Roboto Mono - The monospace font for code blocks */ |
| 53 | + |
| 54 | +@font-face { |
| 55 | + font-family: "Roboto Mono"; |
| 56 | + font-style: normal; |
| 57 | + font-weight: 400; |
| 58 | + src: |
| 59 | + local("Roboto Mono Regular"), |
| 60 | + local("RobotoMono-Regular"), |
| 61 | + url(~@fontsource/roboto-mono/files/roboto-mono-latin-400-normal.woff2) format("woff2"), |
| 62 | + url(~@fontsource/roboto-mono/files/roboto-mono-latin-400-normal.woff) format("woff"); |
| 63 | +} |
| 64 | + |
| 65 | +@font-face { |
| 66 | + font-family: "Roboto Mono"; |
| 67 | + font-style: normal; |
| 68 | + font-weight: 500; |
| 69 | + src: |
| 70 | + local("Roboto Mono Medium"), |
| 71 | + local("RobotoMono-Medium"), |
| 72 | + url(~@fontsource/roboto-mono/files/roboto-mono-latin-500-normal.woff2) format("woff2"), |
| 73 | + url(~@fontsource/roboto-mono/files/roboto-mono-latin-500-normal.woff) format("woff"); |
| 74 | +} |
0 commit comments