diff --git a/packages/style/scss/fonts.scss b/packages/style/scss/fonts.scss index b9916b9f42..c712ec4468 100644 --- a/packages/style/scss/fonts.scss +++ b/packages/style/scss/fonts.scss @@ -1,901 +1,3 @@ -@font-face { - font-family: icomoon; - src: url('../fonts/icomoon.woff?plxcjd') format('woff'); - font-weight: normal; - font-style: normal; - font-display: block; -} - -/* -To update the Open sans font: - -1. Use the Google Fonts WUI to generate a CSS import URL like: - https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600;1,700;1,800&display=swap - copy/paste the contents of that into this file below this comment. - - Only include the subsets cyrillic, greek and latin, plus their -ext subsets. - -2. Retrieve all the linked font files. Use a regex like: - https:\/\/fonts\.gstatic\.com\/s\/opensans\/.*\.woff2 - to extract the urls. - Saving these to a file (one url per line) will allow downloading all at once: - wget --input-file=./opensans-urls.txt - -3. Ensure all files are placed in the appropriate directory: - /src/asssets/fonts/opensans/[version]/[filename].woff2 - -4. Replace all the https://fonts.gstatic.com/s/opensans/ URLs here with local URLs. - -5. Double check for any changes in formatting. Make sure the imported scss rules - confrom to linting and don't contain unwanted rules/files. -*/ - -// Open Sans v34 - -/* stylelint-disable max-line-length */ - -/* cyrillic-ext */ -@font-face { - font-family: 'Open Sans'; - font-display: swap; - font-style: italic; - font-weight: 400; - src: url('../fonts/opensans/v34/400-italic-cyrillic-ext.woff2') format('woff2'); - unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; -} - -/* cyrillic */ -@font-face { - font-family: 'Open Sans'; - font-display: swap; - font-style: italic; - font-weight: 400; - src: url('../fonts/opensans/v34/400-italic-cyrillic.woff2') format('woff2'); - unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; -} - -/* greek-ext */ -@font-face { - font-family: 'Open Sans'; - font-display: swap; - font-style: italic; - font-weight: 400; - src: url('../fonts/opensans/v34/400-italic-greek-ext.woff2') format('woff2'); - unicode-range: U+1F00-1FFF; -} - -/* greek */ -@font-face { - font-family: 'Open Sans'; - font-display: swap; - font-style: italic; - font-weight: 400; - src: url('../fonts/opensans/v34/400-italic-greek.woff2') format('woff2'); - unicode-range: U+0370-03FF; -} - -/* latin-ext */ -@font-face { - font-family: 'Open Sans'; - font-display: swap; - font-style: italic; - font-weight: 400; - src: url('../fonts/opensans/v34/400-italic-latin-ext.woff2') format('woff2'); - 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: 'Open Sans'; - font-display: swap; - font-style: italic; - font-weight: 400; - src: url('../fonts/opensans/v34/400-italic-latin.woff2') format('woff2'); - 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; -} - -/* cyrillic-ext */ -@font-face { - font-family: 'Open Sans'; - font-display: swap; - font-style: italic; - font-weight: 600; - src: url('../fonts/opensans/v34/600-italic-cyrillic-ext.woff2') format('woff2'); - unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; -} - -/* cyrillic */ -@font-face { - font-family: 'Open Sans'; - font-display: swap; - font-style: italic; - font-weight: 600; - src: url('../fonts/opensans/v34/600-italic-cyrillic.woff2') format('woff2'); - unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; -} - -/* greek-ext */ -@font-face { - font-family: 'Open Sans'; - font-display: swap; - font-style: italic; - font-weight: 600; - src: url('../fonts/opensans/v34/600-italic-greek-ext.woff2') format('woff2'); - unicode-range: U+1F00-1FFF; -} - -/* greek */ -@font-face { - font-family: 'Open Sans'; - font-display: swap; - font-style: italic; - font-weight: 600; - src: url('../fonts/opensans/v34/600-italic-greek.woff2') format('woff2'); - unicode-range: U+0370-03FF; -} - -/* latin-ext */ -@font-face { - font-family: 'Open Sans'; - font-display: swap; - font-style: italic; - font-weight: 600; - src: url('../fonts/opensans/v34/600-italic-latin-ext.woff2') format('woff2'); - 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: 'Open Sans'; - font-display: swap; - font-style: italic; - font-weight: 600; - src: url('../fonts/opensans/v34/600-italic-latin.woff2') format('woff2'); - 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; -} - -/* cyrillic-ext */ -@font-face { - font-family: 'Open Sans'; - font-display: swap; - font-style: italic; - font-weight: 700; - src: url('../fonts/opensans/v34/700-italic-cyrillic-ext.woff2') format('woff2'); - unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; -} - -/* cyrillic */ -@font-face { - font-family: 'Open Sans'; - font-display: swap; - font-style: italic; - font-weight: 700; - src: url('../fonts/opensans/v34/700-italic-cyrillic.woff2') format('woff2'); - unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; -} - -/* greek-ext */ -@font-face { - font-family: 'Open Sans'; - font-display: swap; - font-style: italic; - font-weight: 700; - src: url('../fonts/opensans/v34/700-italic-greek-ext.woff2') format('woff2'); - unicode-range: U+1F00-1FFF; -} - -/* greek */ -@font-face { - font-family: 'Open Sans'; - font-display: swap; - font-style: italic; - font-weight: 700; - src: url('../fonts/opensans/v34/700-italic-greek.woff2') format('woff2'); - unicode-range: U+0370-03FF; -} - -/* latin-ext */ -@font-face { - font-family: 'Open Sans'; - font-display: swap; - font-style: italic; - font-weight: 700; - src: url('../fonts/opensans/v34/700-italic-latin-ext.woff2') format('woff2'); - 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: 'Open Sans'; - font-display: swap; - font-style: italic; - font-weight: 700; - src: url('../fonts/opensans/v34/700-italic-latin.woff2') format('woff2'); - 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; -} - -/* cyrillic-ext */ -@font-face { - font-family: 'Open Sans'; - font-display: swap; - font-style: italic; - font-weight: 800; - src: url('../fonts/opensans/v34/800-italic-cyrillic-ext.woff2') format('woff2'); - unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; -} - -/* cyrillic */ -@font-face { - font-family: 'Open Sans'; - font-display: swap; - font-style: italic; - font-weight: 800; - src: url('../fonts/opensans/v34/800-italic-cyrillic.woff2') format('woff2'); - unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; -} - -/* greek-ext */ -@font-face { - font-family: 'Open Sans'; - font-display: swap; - font-style: italic; - font-weight: 800; - src: url('../fonts/opensans/v34/800-italic-greek-ext.woff2') format('woff2'); - unicode-range: U+1F00-1FFF; -} - -/* greek */ -@font-face { - font-family: 'Open Sans'; - font-display: swap; - font-style: italic; - font-weight: 800; - src: url('../fonts/opensans/v34/800-italic-greek.woff2') format('woff2'); - unicode-range: U+0370-03FF; -} - -/* latin-ext */ -@font-face { - font-family: 'Open Sans'; - font-display: swap; - font-style: italic; - font-weight: 800; - src: url('../fonts/opensans/v34/800-italic-latin-ext.woff2') format('woff2'); - 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: 'Open Sans'; - font-display: swap; - font-style: italic; - font-weight: 800; - src: url('../fonts/opensans/v34/800-italic-latin.woff2') format('woff2'); - 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; -} - -/* cyrillic-ext */ -@font-face { - font-family: 'Open Sans'; - font-display: swap; - font-style: normal; - font-weight: 400; - src: url('../fonts/opensans/v34/400-normal-cyrillic-ext.woff2') format('woff2'); - unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; -} - -/* cyrillic */ -@font-face { - font-family: 'Open Sans'; - font-display: swap; - font-style: normal; - font-weight: 400; - src: url('../fonts/opensans/v34/400-normal-cyrillic.woff2') format('woff2'); - unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; -} - -/* greek-ext */ -@font-face { - font-family: 'Open Sans'; - font-display: swap; - font-style: normal; - font-weight: 400; - src: url('../fonts/opensans/v34/400-normal-greek-ext.woff2') format('woff2'); - unicode-range: U+1F00-1FFF; -} - -/* greek */ -@font-face { - font-family: 'Open Sans'; - font-display: swap; - font-style: normal; - font-weight: 400; - src: url('../fonts/opensans/v34/400-normal-greek.woff2') format('woff2'); - unicode-range: U+0370-03FF; -} - -/* latin-ext */ -@font-face { - font-family: 'Open Sans'; - font-display: swap; - font-style: normal; - font-weight: 400; - src: url('../fonts/opensans/v34/400-normal-latin-ext.woff2') format('woff2'); - 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: 'Open Sans'; - font-display: swap; - font-style: normal; - font-weight: 400; - src: url('../fonts/opensans/v34/400-normal-latin.woff2') format('woff2'); - 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; -} - -/* cyrillic-ext */ -@font-face { - font-family: 'Open Sans'; - font-display: swap; - font-style: normal; - font-weight: 600; - src: url('../fonts/opensans/v34/600-normal-cyrillic-ext.woff2') format('woff2'); - unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; -} - -/* cyrillic */ -@font-face { - font-family: 'Open Sans'; - font-display: swap; - font-style: normal; - font-weight: 600; - src: url('../fonts/opensans/v34/600-normal-cyrillic.woff2') format('woff2'); - unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; -} - -/* greek-ext */ -@font-face { - font-family: 'Open Sans'; - font-display: swap; - font-style: normal; - font-weight: 600; - src: url('../fonts/opensans/v34/600-normal-greek-ext.woff2') format('woff2'); - unicode-range: U+1F00-1FFF; -} - -/* greek */ -@font-face { - font-family: 'Open Sans'; - font-display: swap; - font-style: normal; - font-weight: 600; - src: url('../fonts/opensans/v34/600-normal-greek.woff2') format('woff2'); - unicode-range: U+0370-03FF; -} - -/* latin-ext */ -@font-face { - font-family: 'Open Sans'; - font-display: swap; - font-style: normal; - font-weight: 600; - src: url('../fonts/opensans/v34/600-normal-latin-ext.woff2') format('woff2'); - 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: 'Open Sans'; - font-display: swap; - font-style: normal; - font-weight: 600; - src: url('../fonts/opensans/v34/600-normal-latin.woff2') format('woff2'); - 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; -} - -/* cyrillic-ext */ -@font-face { - font-family: 'Open Sans'; - font-display: swap; - font-style: normal; - font-weight: 700; - src: url('../fonts/opensans/v34/700-normal-cyrillic-ext.woff2') format('woff2'); - unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; -} - -/* cyrillic */ -@font-face { - font-family: 'Open Sans'; - font-display: swap; - font-style: normal; - font-weight: 700; - src: url('../fonts/opensans/v34/700-normal-cyrillic.woff2') format('woff2'); - unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; -} - -/* greek-ext */ -@font-face { - font-family: 'Open Sans'; - font-display: swap; - font-style: normal; - font-weight: 700; - src: url('../fonts/opensans/v34/700-normal-greek-ext.woff2') format('woff2'); - unicode-range: U+1F00-1FFF; -} - -/* greek */ -@font-face { - font-family: 'Open Sans'; - font-display: swap; - font-style: normal; - font-weight: 700; - src: url('../fonts/opensans/v34/700-normal-greek.woff2') format('woff2'); - unicode-range: U+0370-03FF; -} - -/* latin-ext */ -@font-face { - font-family: 'Open Sans'; - font-display: swap; - font-style: normal; - font-weight: 700; - src: url('../fonts/opensans/v34/700-normal-latin-ext.woff2') format('woff2'); - 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: 'Open Sans'; - font-display: swap; - font-style: normal; - font-weight: 700; - src: url('../fonts/opensans/v34/700-normal-latin.woff2') format('woff2'); - 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; -} - -/* cyrillic-ext */ -@font-face { - font-family: 'Open Sans'; - font-display: swap; - font-style: normal; - font-weight: 800; - src: url('../fonts/opensans/v34/800-normal-cyrillic-ext.woff2') format('woff2'); - unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; -} - -/* cyrillic */ -@font-face { - font-family: 'Open Sans'; - font-display: swap; - font-style: normal; - font-weight: 800; - src: url('../fonts/opensans/v34/800-normal-cyrillic.woff2') format('woff2'); - unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; -} - -/* greek-ext */ -@font-face { - font-family: 'Open Sans'; - font-display: swap; - font-style: normal; - font-weight: 800; - src: url('../fonts/opensans/v34/800-normal-greek-ext.woff2') format('woff2'); - unicode-range: U+1F00-1FFF; -} - -/* greek */ -@font-face { - font-family: 'Open Sans'; - font-display: swap; - font-style: normal; - font-weight: 800; - src: url('../fonts/opensans/v34/800-normal-greek.woff2') format('woff2'); - unicode-range: U+0370-03FF; -} - -/* latin-ext */ -@font-face { - font-family: 'Open Sans'; - font-display: swap; - font-style: normal; - font-weight: 800; - src: url('../fonts/opensans/v34/800-normal-latin-ext.woff2') format('woff2'); - 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: 'Open Sans'; - font-display: swap; - font-style: normal; - font-weight: 800; - src: url('../fonts/opensans/v34/800-normal-latin.woff2') format('woff2'); - 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; -} - -/* -To update the Ubuntu font: - -1. Use the Google Fonts WUI to generate a CSS import URL like: - https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600;1,700;1,800&display=swap - copy/paste the contents of that into this file below this comment. - - Only include the subsets cyrillic, greek and latin, plus their -ext subsets. - -2. Retrieve all the linked font files. Use a regex like: - https:\/\/fonts\.gstatic\.com\/s\/ubuntu\/.*\.woff2 - to extract the urls. - Saving these to a file (one url per line) will allow downloading all at once: - wget --input-file=./ubuntu-urls.txt - -3. Ensure all files are placed in the appropriate directory: - /src/asssets/fonts/ubuntu/[version]/[filename].woff2 - -4. Replace all the https://fonts.gstatic.com/s/ubuntu/ URLs here with local URLs. - -5. Double check for any changes in formatting. Make sure the imported scss rules - confrom to linting and don't contain unwanted rules/files. -*/ - -// Ubuntu v20 - -/* cyrillic-ext */ -@font-face { - font-family: 'Ubuntu'; - font-style: italic; - font-weight: 400; - font-display: swap; - src: url('../fonts/ubuntu/v20/400-italic-cyrillic-ext.woff2') format('woff2'); - unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; -} - -/* cyrillic */ -@font-face { - font-family: 'Ubuntu'; - font-style: italic; - font-weight: 400; - font-display: swap; - src: url('../fonts/ubuntu/v20/400-italic-cyrillic.woff2') format('woff2'); - unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; -} - -/* greek-ext */ -@font-face { - font-family: 'Ubuntu'; - font-style: italic; - font-weight: 400; - font-display: swap; - src: url('../fonts/ubuntu/v20/400-italic-greek-ext.woff2') format('woff2'); - unicode-range: U+1F00-1FFF; -} - -/* greek */ -@font-face { - font-family: 'Ubuntu'; - font-style: italic; - font-weight: 400; - font-display: swap; - src: url('../fonts/ubuntu/v20/400-italic-greek.woff2') format('woff2'); - unicode-range: U+0370-03FF; -} - -/* latin-ext */ -@font-face { - font-family: 'Ubuntu'; - font-style: italic; - font-weight: 400; - font-display: swap; - src: url('../fonts/ubuntu/v20/400-italic-latin-ext.woff2') format('woff2'); - 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: 'Ubuntu'; - font-style: italic; - font-weight: 400; - font-display: swap; - src: url('../fonts/ubuntu/v20/400-italic-latin.woff2') format('woff2'); - 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; -} - -/* cyrillic-ext */ -@font-face { - font-family: 'Ubuntu'; - font-style: normal; - font-weight: 400; - font-display: swap; - src: url('../fonts/ubuntu/v20/400-normal-cyrillic-ext.woff2') format('woff2'); - unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; -} - -/* cyrillic */ -@font-face { - font-family: 'Ubuntu'; - font-style: normal; - font-weight: 400; - font-display: swap; - src: url('../fonts/ubuntu/v20/400-normal-cyrillic.woff2') format('woff2'); - unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; -} - -/* greek-ext */ -@font-face { - font-family: 'Ubuntu'; - font-style: normal; - font-weight: 400; - font-display: swap; - src: url('../fonts/ubuntu/v20/400-normal-greek-ext.woff2') format('woff2'); - unicode-range: U+1F00-1FFF; -} - -/* greek */ -@font-face { - font-family: 'Ubuntu'; - font-style: normal; - font-weight: 400; - font-display: swap; - src: url('../fonts/ubuntu/v20/400-normal-greek.woff2') format('woff2'); - unicode-range: U+0370-03FF; -} - -/* latin-ext */ -@font-face { - font-family: 'Ubuntu'; - font-style: normal; - font-weight: 400; - font-display: swap; - src: url('../fonts/ubuntu/v20/400-normal-latin-ext.woff2') format('woff2'); - 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: 'Ubuntu'; - font-style: normal; - font-weight: 400; - font-display: swap; - src: url('../fonts/ubuntu/v20/400-normal-latin.woff2') format('woff2'); - 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; -} - -/* cyrillic-ext */ -@font-face { - font-family: 'Ubuntu'; - font-style: italic; - font-weight: 500; - font-display: swap; - src: url('../fonts/ubuntu/v20/500-italic-cyrillic-ext.woff2') format('woff2'); - unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; -} - -/* cyrillic */ -@font-face { - font-family: 'Ubuntu'; - font-style: italic; - font-weight: 500; - font-display: swap; - src: url('../fonts/ubuntu/v20/500-italic-cyrillic.woff2') format('woff2'); - unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; -} - -/* greek-ext */ -@font-face { - font-family: 'Ubuntu'; - font-style: italic; - font-weight: 500; - font-display: swap; - src: url('../fonts/ubuntu/v20/500-italic-greek-ext.woff2') format('woff2'); - unicode-range: U+1F00-1FFF; -} - -/* greek */ -@font-face { - font-family: 'Ubuntu'; - font-style: italic; - font-weight: 500; - font-display: swap; - src: url('../fonts/ubuntu/v20/500-italic-greek.woff2') format('woff2'); - unicode-range: U+0370-03FF; -} - -/* latin-ext */ -@font-face { - font-family: 'Ubuntu'; - font-style: italic; - font-weight: 500; - font-display: swap; - src: url('../fonts/ubuntu/v20/500-italic-latin-ext.woff2') format('woff2'); - 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: 'Ubuntu'; - font-style: italic; - font-weight: 500; - font-display: swap; - src: url('../fonts/ubuntu/v20/500-italic-latin.woff2') format('woff2'); - 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; -} - -/* cyrillic-ext */ -@font-face { - font-family: 'Ubuntu'; - font-style: normal; - font-weight: 500; - font-display: swap; - src: url('../fonts/ubuntu/v20/500-normal-cyrillic-ext.woff2') format('woff2'); - unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; -} - -/* cyrillic */ -@font-face { - font-family: 'Ubuntu'; - font-style: normal; - font-weight: 500; - font-display: swap; - src: url('../fonts/ubuntu/v20/500-normal-cyrillic.woff2') format('woff2'); - unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; -} - -/* greek-ext */ -@font-face { - font-family: 'Ubuntu'; - font-style: normal; - font-weight: 500; - font-display: swap; - src: url('../fonts/ubuntu/v20/500-normal-greek-ext.woff2') format('woff2'); - unicode-range: U+1F00-1FFF; -} - -/* greek */ -@font-face { - font-family: 'Ubuntu'; - font-style: normal; - font-weight: 500; - font-display: swap; - src: url('../fonts/ubuntu/v20/500-normal-greek.woff2') format('woff2'); - unicode-range: U+0370-03FF; -} - -/* latin-ext */ -@font-face { - font-family: 'Ubuntu'; - font-style: normal; - font-weight: 500; - font-display: swap; - src: url('../fonts/ubuntu/v20/500-normal-latin-ext.woff2') format('woff2'); - 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: 'Ubuntu'; - font-style: normal; - font-weight: 500; - font-display: swap; - src: url('../fonts/ubuntu/v20/500-normal-latin.woff2') format('woff2'); - 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; -} - -/* cyrillic-ext */ -@font-face { - font-family: 'Ubuntu'; - font-style: italic; - font-weight: 700; - font-display: swap; - src: url('../fonts/ubuntu/v20/700-italic-cyrillic-ext.woff2') format('woff2'); - unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; -} - -/* cyrillic */ -@font-face { - font-family: 'Ubuntu'; - font-style: italic; - font-weight: 700; - font-display: swap; - src: url('../fonts/ubuntu/v20/700-italic-cyrillic.woff2') format('woff2'); - unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; -} - -/* greek-ext */ -@font-face { - font-family: 'Ubuntu'; - font-style: italic; - font-weight: 700; - font-display: swap; - src: url('../fonts/ubuntu/v20/700-italic-greek-ext.woff2') format('woff2'); - unicode-range: U+1F00-1FFF; -} - -/* greek */ -@font-face { - font-family: 'Ubuntu'; - font-style: italic; - font-weight: 700; - font-display: swap; - src: url('../fonts/ubuntu/v20/700-italic-greek.woff2') format('woff2'); - unicode-range: U+0370-03FF; -} - -/* latin-ext */ -@font-face { - font-family: 'Ubuntu'; - font-style: italic; - font-weight: 700; - font-display: swap; - src: url('../fonts/ubuntu/v20/700-italic-latin-ext.woff2') format('woff2'); - 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: 'Ubuntu'; - font-style: italic; - font-weight: 700; - font-display: swap; - src: url('../fonts/ubuntu/v20/700-italic-latin.woff2') format('woff2'); - 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; -} - -/* cyrillic-ext */ -@font-face { - font-family: 'Ubuntu'; - font-style: normal; - font-weight: 700; - font-display: swap; - src: url('../fonts/ubuntu/v20/700-normal-cyrillic-ext.woff2') format('woff2'); - unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; -} - -/* cyrillic */ -@font-face { - font-family: 'Ubuntu'; - font-style: normal; - font-weight: 700; - font-display: swap; - src: url('../fonts/ubuntu/v20/700-normal-cyrillic.woff2') format('woff2'); - unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; -} - -/* greek-ext */ -@font-face { - font-family: 'Ubuntu'; - font-style: normal; - font-weight: 700; - font-display: swap; - src: url('../fonts/ubuntu/v20/700-normal-greek-ext.woff2') format('woff2'); - unicode-range: U+1F00-1FFF; -} - -/* greek */ -@font-face { - font-family: 'Ubuntu'; - font-style: normal; - font-weight: 700; - font-display: swap; - src: url('../fonts/ubuntu/v20/700-normal-greek.woff2') format('woff2'); - unicode-range: U+0370-03FF; -} - -/* latin-ext */ -@font-face { - font-family: 'Ubuntu'; - font-style: normal; - font-weight: 700; - font-display: swap; - src: url('../fonts/ubuntu/v20/700-normal-latin-ext.woff2') format('woff2'); - 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: 'Ubuntu'; - font-style: normal; - font-weight: 700; - font-display: swap; - src: url('../fonts/ubuntu/v20/700-normal-latin.woff2') format('woff2'); - 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; -} +@import 'fonts/icomoon'; +@import 'fonts/open-sans'; +@import 'fonts/ubuntu'; diff --git a/packages/style/scss/fonts/icomoon.scss b/packages/style/scss/fonts/icomoon.scss new file mode 100644 index 0000000000..4e5d6f7c8c --- /dev/null +++ b/packages/style/scss/fonts/icomoon.scss @@ -0,0 +1,7 @@ +@font-face { + font-family: icomoon; + src: url('@europeana/style/fonts/icomoon.woff?plxcjd') format('woff'); + font-weight: normal; + font-style: normal; + font-display: block; +} diff --git a/packages/style/scss/fonts/open-sans.scss b/packages/style/scss/fonts/open-sans.scss new file mode 100644 index 0000000000..6fe4ba866b --- /dev/null +++ b/packages/style/scss/fonts/open-sans.scss @@ -0,0 +1,507 @@ +// Open Sans v34 + +/* +To update the Open Sans font: + +1. Use the Google Fonts WUI to generate a CSS import URL like: + https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600;1,700;1,800&display=swap + copy/paste the contents of that into this file below this comment. + + Only include the subsets cyrillic, greek and latin, plus their -ext subsets. + +2. Retrieve all the linked font files. Use a regex like: + https:\/\/fonts\.gstatic\.com\/s\/opensans\/.*\.woff2 + to extract the urls. + Saving these to a file (one url per line) will allow downloading all at once: + wget --input-file=./opensans-urls.txt + +3. Ensure all files are placed in the appropriate directory: + /src/asssets/fonts/opensans/[version]/[filename].woff2 + +4. Replace all the https://fonts.gstatic.com/s/opensans/ URLs here with local URLs. + +5. Double check for any changes in formatting. Make sure the imported scss rules + confrom to linting and don't contain unwanted rules/files. +*/ + +/* stylelint-disable max-line-length */ + +/* cyrillic-ext */ +@font-face { + font-family: 'Open Sans'; + font-display: swap; + font-style: italic; + font-weight: 400; + src: url('@europeana/style/fonts/opensans/v34/400-italic-cyrillic-ext.woff2') format('woff2'); + unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; +} + +/* cyrillic */ +@font-face { + font-family: 'Open Sans'; + font-display: swap; + font-style: italic; + font-weight: 400; + src: url('@europeana/style/fonts/opensans/v34/400-italic-cyrillic.woff2') format('woff2'); + unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} + +/* greek-ext */ +@font-face { + font-family: 'Open Sans'; + font-display: swap; + font-style: italic; + font-weight: 400; + src: url('@europeana/style/fonts/opensans/v34/400-italic-greek-ext.woff2') format('woff2'); + unicode-range: U+1F00-1FFF; +} + +/* greek */ +@font-face { + font-family: 'Open Sans'; + font-display: swap; + font-style: italic; + font-weight: 400; + src: url('@europeana/style/fonts/opensans/v34/400-italic-greek.woff2') format('woff2'); + unicode-range: U+0370-03FF; +} + +/* latin-ext */ +@font-face { + font-family: 'Open Sans'; + font-display: swap; + font-style: italic; + font-weight: 400; + src: url('@europeana/style/fonts/opensans/v34/400-italic-latin-ext.woff2') format('woff2'); + 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: 'Open Sans'; + font-display: swap; + font-style: italic; + font-weight: 400; + src: url('@europeana/style/fonts/opensans/v34/400-italic-latin.woff2') format('woff2'); + 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; +} + +/* cyrillic-ext */ +@font-face { + font-family: 'Open Sans'; + font-display: swap; + font-style: italic; + font-weight: 600; + src: url('@europeana/style/fonts/opensans/v34/600-italic-cyrillic-ext.woff2') format('woff2'); + unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; +} + +/* cyrillic */ +@font-face { + font-family: 'Open Sans'; + font-display: swap; + font-style: italic; + font-weight: 600; + src: url('@europeana/style/fonts/opensans/v34/600-italic-cyrillic.woff2') format('woff2'); + unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} + +/* greek-ext */ +@font-face { + font-family: 'Open Sans'; + font-display: swap; + font-style: italic; + font-weight: 600; + src: url('@europeana/style/fonts/opensans/v34/600-italic-greek-ext.woff2') format('woff2'); + unicode-range: U+1F00-1FFF; +} + +/* greek */ +@font-face { + font-family: 'Open Sans'; + font-display: swap; + font-style: italic; + font-weight: 600; + src: url('@europeana/style/fonts/opensans/v34/600-italic-greek.woff2') format('woff2'); + unicode-range: U+0370-03FF; +} + +/* latin-ext */ +@font-face { + font-family: 'Open Sans'; + font-display: swap; + font-style: italic; + font-weight: 600; + src: url('@europeana/style/fonts/opensans/v34/600-italic-latin-ext.woff2') format('woff2'); + 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: 'Open Sans'; + font-display: swap; + font-style: italic; + font-weight: 600; + src: url('@europeana/style/fonts/opensans/v34/600-italic-latin.woff2') format('woff2'); + 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; +} + +/* cyrillic-ext */ +@font-face { + font-family: 'Open Sans'; + font-display: swap; + font-style: italic; + font-weight: 700; + src: url('@europeana/style/fonts/opensans/v34/700-italic-cyrillic-ext.woff2') format('woff2'); + unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; +} + +/* cyrillic */ +@font-face { + font-family: 'Open Sans'; + font-display: swap; + font-style: italic; + font-weight: 700; + src: url('@europeana/style/fonts/opensans/v34/700-italic-cyrillic.woff2') format('woff2'); + unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} + +/* greek-ext */ +@font-face { + font-family: 'Open Sans'; + font-display: swap; + font-style: italic; + font-weight: 700; + src: url('@europeana/style/fonts/opensans/v34/700-italic-greek-ext.woff2') format('woff2'); + unicode-range: U+1F00-1FFF; +} + +/* greek */ +@font-face { + font-family: 'Open Sans'; + font-display: swap; + font-style: italic; + font-weight: 700; + src: url('@europeana/style/fonts/opensans/v34/700-italic-greek.woff2') format('woff2'); + unicode-range: U+0370-03FF; +} + +/* latin-ext */ +@font-face { + font-family: 'Open Sans'; + font-display: swap; + font-style: italic; + font-weight: 700; + src: url('@europeana/style/fonts/opensans/v34/700-italic-latin-ext.woff2') format('woff2'); + 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: 'Open Sans'; + font-display: swap; + font-style: italic; + font-weight: 700; + src: url('@europeana/style/fonts/opensans/v34/700-italic-latin.woff2') format('woff2'); + 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; +} + +/* cyrillic-ext */ +@font-face { + font-family: 'Open Sans'; + font-display: swap; + font-style: italic; + font-weight: 800; + src: url('@europeana/style/fonts/opensans/v34/800-italic-cyrillic-ext.woff2') format('woff2'); + unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; +} + +/* cyrillic */ +@font-face { + font-family: 'Open Sans'; + font-display: swap; + font-style: italic; + font-weight: 800; + src: url('@europeana/style/fonts/opensans/v34/800-italic-cyrillic.woff2') format('woff2'); + unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} + +/* greek-ext */ +@font-face { + font-family: 'Open Sans'; + font-display: swap; + font-style: italic; + font-weight: 800; + src: url('@europeana/style/fonts/opensans/v34/800-italic-greek-ext.woff2') format('woff2'); + unicode-range: U+1F00-1FFF; +} + +/* greek */ +@font-face { + font-family: 'Open Sans'; + font-display: swap; + font-style: italic; + font-weight: 800; + src: url('@europeana/style/fonts/opensans/v34/800-italic-greek.woff2') format('woff2'); + unicode-range: U+0370-03FF; +} + +/* latin-ext */ +@font-face { + font-family: 'Open Sans'; + font-display: swap; + font-style: italic; + font-weight: 800; + src: url('@europeana/style/fonts/opensans/v34/800-italic-latin-ext.woff2') format('woff2'); + 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: 'Open Sans'; + font-display: swap; + font-style: italic; + font-weight: 800; + src: url('@europeana/style/fonts/opensans/v34/800-italic-latin.woff2') format('woff2'); + 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; +} + +/* cyrillic-ext */ +@font-face { + font-family: 'Open Sans'; + font-display: swap; + font-style: normal; + font-weight: 400; + src: url('@europeana/style/fonts/opensans/v34/400-normal-cyrillic-ext.woff2') format('woff2'); + unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; +} + +/* cyrillic */ +@font-face { + font-family: 'Open Sans'; + font-display: swap; + font-style: normal; + font-weight: 400; + src: url('@europeana/style/fonts/opensans/v34/400-normal-cyrillic.woff2') format('woff2'); + unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} + +/* greek-ext */ +@font-face { + font-family: 'Open Sans'; + font-display: swap; + font-style: normal; + font-weight: 400; + src: url('@europeana/style/fonts/opensans/v34/400-normal-greek-ext.woff2') format('woff2'); + unicode-range: U+1F00-1FFF; +} + +/* greek */ +@font-face { + font-family: 'Open Sans'; + font-display: swap; + font-style: normal; + font-weight: 400; + src: url('@europeana/style/fonts/opensans/v34/400-normal-greek.woff2') format('woff2'); + unicode-range: U+0370-03FF; +} + +/* latin-ext */ +@font-face { + font-family: 'Open Sans'; + font-display: swap; + font-style: normal; + font-weight: 400; + src: url('@europeana/style/fonts/opensans/v34/400-normal-latin-ext.woff2') format('woff2'); + 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: 'Open Sans'; + font-display: swap; + font-style: normal; + font-weight: 400; + src: url('@europeana/style/fonts/opensans/v34/400-normal-latin.woff2') format('woff2'); + 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; +} + +/* cyrillic-ext */ +@font-face { + font-family: 'Open Sans'; + font-display: swap; + font-style: normal; + font-weight: 600; + src: url('@europeana/style/fonts/opensans/v34/600-normal-cyrillic-ext.woff2') format('woff2'); + unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; +} + +/* cyrillic */ +@font-face { + font-family: 'Open Sans'; + font-display: swap; + font-style: normal; + font-weight: 600; + src: url('@europeana/style/fonts/opensans/v34/600-normal-cyrillic.woff2') format('woff2'); + unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} + +/* greek-ext */ +@font-face { + font-family: 'Open Sans'; + font-display: swap; + font-style: normal; + font-weight: 600; + src: url('@europeana/style/fonts/opensans/v34/600-normal-greek-ext.woff2') format('woff2'); + unicode-range: U+1F00-1FFF; +} + +/* greek */ +@font-face { + font-family: 'Open Sans'; + font-display: swap; + font-style: normal; + font-weight: 600; + src: url('@europeana/style/fonts/opensans/v34/600-normal-greek.woff2') format('woff2'); + unicode-range: U+0370-03FF; +} + +/* latin-ext */ +@font-face { + font-family: 'Open Sans'; + font-display: swap; + font-style: normal; + font-weight: 600; + src: url('@europeana/style/fonts/opensans/v34/600-normal-latin-ext.woff2') format('woff2'); + 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: 'Open Sans'; + font-display: swap; + font-style: normal; + font-weight: 600; + src: url('@europeana/style/fonts/opensans/v34/600-normal-latin.woff2') format('woff2'); + 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; +} + +/* cyrillic-ext */ +@font-face { + font-family: 'Open Sans'; + font-display: swap; + font-style: normal; + font-weight: 700; + src: url('@europeana/style/fonts/opensans/v34/700-normal-cyrillic-ext.woff2') format('woff2'); + unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; +} + +/* cyrillic */ +@font-face { + font-family: 'Open Sans'; + font-display: swap; + font-style: normal; + font-weight: 700; + src: url('@europeana/style/fonts/opensans/v34/700-normal-cyrillic.woff2') format('woff2'); + unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} + +/* greek-ext */ +@font-face { + font-family: 'Open Sans'; + font-display: swap; + font-style: normal; + font-weight: 700; + src: url('@europeana/style/fonts/opensans/v34/700-normal-greek-ext.woff2') format('woff2'); + unicode-range: U+1F00-1FFF; +} + +/* greek */ +@font-face { + font-family: 'Open Sans'; + font-display: swap; + font-style: normal; + font-weight: 700; + src: url('@europeana/style/fonts/opensans/v34/700-normal-greek.woff2') format('woff2'); + unicode-range: U+0370-03FF; +} + +/* latin-ext */ +@font-face { + font-family: 'Open Sans'; + font-display: swap; + font-style: normal; + font-weight: 700; + src: url('@europeana/style/fonts/opensans/v34/700-normal-latin-ext.woff2') format('woff2'); + 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: 'Open Sans'; + font-display: swap; + font-style: normal; + font-weight: 700; + src: url('@europeana/style/fonts/opensans/v34/700-normal-latin.woff2') format('woff2'); + 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; +} + +/* cyrillic-ext */ +@font-face { + font-family: 'Open Sans'; + font-display: swap; + font-style: normal; + font-weight: 800; + src: url('@europeana/style/fonts/opensans/v34/800-normal-cyrillic-ext.woff2') format('woff2'); + unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; +} + +/* cyrillic */ +@font-face { + font-family: 'Open Sans'; + font-display: swap; + font-style: normal; + font-weight: 800; + src: url('@europeana/style/fonts/opensans/v34/800-normal-cyrillic.woff2') format('woff2'); + unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} + +/* greek-ext */ +@font-face { + font-family: 'Open Sans'; + font-display: swap; + font-style: normal; + font-weight: 800; + src: url('@europeana/style/fonts/opensans/v34/800-normal-greek-ext.woff2') format('woff2'); + unicode-range: U+1F00-1FFF; +} + +/* greek */ +@font-face { + font-family: 'Open Sans'; + font-display: swap; + font-style: normal; + font-weight: 800; + src: url('@europeana/style/fonts/opensans/v34/800-normal-greek.woff2') format('woff2'); + unicode-range: U+0370-03FF; +} + +/* latin-ext */ +@font-face { + font-family: 'Open Sans'; + font-display: swap; + font-style: normal; + font-weight: 800; + src: url('@europeana/style/fonts/opensans/v34/800-normal-latin-ext.woff2') format('woff2'); + 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: 'Open Sans'; + font-display: swap; + font-style: normal; + font-weight: 800; + src: url('@europeana/style/fonts/opensans/v34/800-normal-latin.woff2') format('woff2'); + 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/packages/style/scss/fonts/ubuntu.scss b/packages/style/scss/fonts/ubuntu.scss new file mode 100644 index 0000000000..3ffbf99166 --- /dev/null +++ b/packages/style/scss/fonts/ubuntu.scss @@ -0,0 +1,385 @@ +// Ubuntu v20 + +/* +To update the Ubuntu font: + +1. Use the Google Fonts WUI to generate a CSS import URL like: + https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600;1,700;1,800&display=swap + copy/paste the contents of that into this file below this comment. + + Only include the subsets cyrillic, greek and latin, plus their -ext subsets. + +2. Retrieve all the linked font files. Use a regex like: + https:\/\/fonts\.gstatic\.com\/s\/ubuntu\/.*\.woff2 + to extract the urls. + Saving these to a file (one url per line) will allow downloading all at once: + wget --input-file=./ubuntu-urls.txt + +3. Ensure all files are placed in the appropriate directory: + /src/asssets/fonts/ubuntu/[version]/[filename].woff2 + +4. Replace all the https://fonts.gstatic.com/s/ubuntu/ URLs here with local URLs. + +5. Double check for any changes in formatting. Make sure the imported scss rules + confrom to linting and don't contain unwanted rules/files. +*/ + +/* cyrillic-ext */ +@font-face { + font-family: 'Ubuntu'; + font-style: italic; + font-weight: 400; + font-display: swap; + src: url('@europeana/style/fonts/ubuntu/v20/400-italic-cyrillic-ext.woff2') format('woff2'); + unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; +} + +/* cyrillic */ +@font-face { + font-family: 'Ubuntu'; + font-style: italic; + font-weight: 400; + font-display: swap; + src: url('@europeana/style/fonts/ubuntu/v20/400-italic-cyrillic.woff2') format('woff2'); + unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} + +/* greek-ext */ +@font-face { + font-family: 'Ubuntu'; + font-style: italic; + font-weight: 400; + font-display: swap; + src: url('@europeana/style/fonts/ubuntu/v20/400-italic-greek-ext.woff2') format('woff2'); + unicode-range: U+1F00-1FFF; +} + +/* greek */ +@font-face { + font-family: 'Ubuntu'; + font-style: italic; + font-weight: 400; + font-display: swap; + src: url('@europeana/style/fonts/ubuntu/v20/400-italic-greek.woff2') format('woff2'); + unicode-range: U+0370-03FF; +} + +/* latin-ext */ +@font-face { + font-family: 'Ubuntu'; + font-style: italic; + font-weight: 400; + font-display: swap; + src: url('@europeana/style/fonts/ubuntu/v20/400-italic-latin-ext.woff2') format('woff2'); + 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: 'Ubuntu'; + font-style: italic; + font-weight: 400; + font-display: swap; + src: url('@europeana/style/fonts/ubuntu/v20/400-italic-latin.woff2') format('woff2'); + 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; +} + +/* cyrillic-ext */ +@font-face { + font-family: 'Ubuntu'; + font-style: normal; + font-weight: 400; + font-display: swap; + src: url('@europeana/style/fonts/ubuntu/v20/400-normal-cyrillic-ext.woff2') format('woff2'); + unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; +} + +/* cyrillic */ +@font-face { + font-family: 'Ubuntu'; + font-style: normal; + font-weight: 400; + font-display: swap; + src: url('@europeana/style/fonts/ubuntu/v20/400-normal-cyrillic.woff2') format('woff2'); + unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} + +/* greek-ext */ +@font-face { + font-family: 'Ubuntu'; + font-style: normal; + font-weight: 400; + font-display: swap; + src: url('@europeana/style/fonts/ubuntu/v20/400-normal-greek-ext.woff2') format('woff2'); + unicode-range: U+1F00-1FFF; +} + +/* greek */ +@font-face { + font-family: 'Ubuntu'; + font-style: normal; + font-weight: 400; + font-display: swap; + src: url('@europeana/style/fonts/ubuntu/v20/400-normal-greek.woff2') format('woff2'); + unicode-range: U+0370-03FF; +} + +/* latin-ext */ +@font-face { + font-family: 'Ubuntu'; + font-style: normal; + font-weight: 400; + font-display: swap; + src: url('@europeana/style/fonts/ubuntu/v20/400-normal-latin-ext.woff2') format('woff2'); + 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: 'Ubuntu'; + font-style: normal; + font-weight: 400; + font-display: swap; + src: url('@europeana/style/fonts/ubuntu/v20/400-normal-latin.woff2') format('woff2'); + 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; +} + +/* cyrillic-ext */ +@font-face { + font-family: 'Ubuntu'; + font-style: italic; + font-weight: 500; + font-display: swap; + src: url('@europeana/style/fonts/ubuntu/v20/500-italic-cyrillic-ext.woff2') format('woff2'); + unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; +} + +/* cyrillic */ +@font-face { + font-family: 'Ubuntu'; + font-style: italic; + font-weight: 500; + font-display: swap; + src: url('@europeana/style/fonts/ubuntu/v20/500-italic-cyrillic.woff2') format('woff2'); + unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} + +/* greek-ext */ +@font-face { + font-family: 'Ubuntu'; + font-style: italic; + font-weight: 500; + font-display: swap; + src: url('@europeana/style/fonts/ubuntu/v20/500-italic-greek-ext.woff2') format('woff2'); + unicode-range: U+1F00-1FFF; +} + +/* greek */ +@font-face { + font-family: 'Ubuntu'; + font-style: italic; + font-weight: 500; + font-display: swap; + src: url('@europeana/style/fonts/ubuntu/v20/500-italic-greek.woff2') format('woff2'); + unicode-range: U+0370-03FF; +} + +/* latin-ext */ +@font-face { + font-family: 'Ubuntu'; + font-style: italic; + font-weight: 500; + font-display: swap; + src: url('@europeana/style/fonts/ubuntu/v20/500-italic-latin-ext.woff2') format('woff2'); + 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: 'Ubuntu'; + font-style: italic; + font-weight: 500; + font-display: swap; + src: url('@europeana/style/fonts/ubuntu/v20/500-italic-latin.woff2') format('woff2'); + 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; +} + +/* cyrillic-ext */ +@font-face { + font-family: 'Ubuntu'; + font-style: normal; + font-weight: 500; + font-display: swap; + src: url('@europeana/style/fonts/ubuntu/v20/500-normal-cyrillic-ext.woff2') format('woff2'); + unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; +} + +/* cyrillic */ +@font-face { + font-family: 'Ubuntu'; + font-style: normal; + font-weight: 500; + font-display: swap; + src: url('@europeana/style/fonts/ubuntu/v20/500-normal-cyrillic.woff2') format('woff2'); + unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} + +/* greek-ext */ +@font-face { + font-family: 'Ubuntu'; + font-style: normal; + font-weight: 500; + font-display: swap; + src: url('@europeana/style/fonts/ubuntu/v20/500-normal-greek-ext.woff2') format('woff2'); + unicode-range: U+1F00-1FFF; +} + +/* greek */ +@font-face { + font-family: 'Ubuntu'; + font-style: normal; + font-weight: 500; + font-display: swap; + src: url('@europeana/style/fonts/ubuntu/v20/500-normal-greek.woff2') format('woff2'); + unicode-range: U+0370-03FF; +} + +/* latin-ext */ +@font-face { + font-family: 'Ubuntu'; + font-style: normal; + font-weight: 500; + font-display: swap; + src: url('@europeana/style/fonts/ubuntu/v20/500-normal-latin-ext.woff2') format('woff2'); + 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: 'Ubuntu'; + font-style: normal; + font-weight: 500; + font-display: swap; + src: url('@europeana/style/fonts/ubuntu/v20/500-normal-latin.woff2') format('woff2'); + 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; +} + +/* cyrillic-ext */ +@font-face { + font-family: 'Ubuntu'; + font-style: italic; + font-weight: 700; + font-display: swap; + src: url('@europeana/style/fonts/ubuntu/v20/700-italic-cyrillic-ext.woff2') format('woff2'); + unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; +} + +/* cyrillic */ +@font-face { + font-family: 'Ubuntu'; + font-style: italic; + font-weight: 700; + font-display: swap; + src: url('@europeana/style/fonts/ubuntu/v20/700-italic-cyrillic.woff2') format('woff2'); + unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} + +/* greek-ext */ +@font-face { + font-family: 'Ubuntu'; + font-style: italic; + font-weight: 700; + font-display: swap; + src: url('@europeana/style/fonts/ubuntu/v20/700-italic-greek-ext.woff2') format('woff2'); + unicode-range: U+1F00-1FFF; +} + +/* greek */ +@font-face { + font-family: 'Ubuntu'; + font-style: italic; + font-weight: 700; + font-display: swap; + src: url('@europeana/style/fonts/ubuntu/v20/700-italic-greek.woff2') format('woff2'); + unicode-range: U+0370-03FF; +} + +/* latin-ext */ +@font-face { + font-family: 'Ubuntu'; + font-style: italic; + font-weight: 700; + font-display: swap; + src: url('@europeana/style/fonts/ubuntu/v20/700-italic-latin-ext.woff2') format('woff2'); + 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: 'Ubuntu'; + font-style: italic; + font-weight: 700; + font-display: swap; + src: url('@europeana/style/fonts/ubuntu/v20/700-italic-latin.woff2') format('woff2'); + 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; +} + +/* cyrillic-ext */ +@font-face { + font-family: 'Ubuntu'; + font-style: normal; + font-weight: 700; + font-display: swap; + src: url('@europeana/style/fonts/ubuntu/v20/700-normal-cyrillic-ext.woff2') format('woff2'); + unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; +} + +/* cyrillic */ +@font-face { + font-family: 'Ubuntu'; + font-style: normal; + font-weight: 700; + font-display: swap; + src: url('@europeana/style/fonts/ubuntu/v20/700-normal-cyrillic.woff2') format('woff2'); + unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} + +/* greek-ext */ +@font-face { + font-family: 'Ubuntu'; + font-style: normal; + font-weight: 700; + font-display: swap; + src: url('@europeana/style/fonts/ubuntu/v20/700-normal-greek-ext.woff2') format('woff2'); + unicode-range: U+1F00-1FFF; +} + +/* greek */ +@font-face { + font-family: 'Ubuntu'; + font-style: normal; + font-weight: 700; + font-display: swap; + src: url('@europeana/style/fonts/ubuntu/v20/700-normal-greek.woff2') format('woff2'); + unicode-range: U+0370-03FF; +} + +/* latin-ext */ +@font-face { + font-family: 'Ubuntu'; + font-style: normal; + font-weight: 700; + font-display: swap; + src: url('@europeana/style/fonts/ubuntu/v20/700-normal-latin-ext.woff2') format('woff2'); + 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: 'Ubuntu'; + font-style: normal; + font-weight: 700; + font-display: swap; + src: url('@europeana/style/fonts/ubuntu/v20/700-normal-latin.woff2') format('woff2'); + 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; +}