-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Updated font support and definition (#3044)
* feat: Updated font definitions * memo: Changeset * stories adjustments --------- Co-authored-by: Halvor Haugan <[email protected]>
- Loading branch information
1 parent
0b1ac4f
commit 8fd183c
Showing
6 changed files
with
133 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@navikt/ds-tokens": minor | ||
"@navikt/ds-css": minor | ||
--- | ||
|
||
Fonts: Added built-in support for cyrillic, cyrillic-ext and latin-ext |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,129 @@ | ||
/* cyrillic-ext */ | ||
@font-face { | ||
font-family: "Source Sans 3"; | ||
font-style: italic; | ||
font-weight: 400 600; | ||
font-display: swap; | ||
src: url(https://cdn.nav.no/aksel/fonts/SourceSans3/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: "Source Sans 3"; | ||
font-style: italic; | ||
font-weight: 400 600; | ||
font-display: swap; | ||
src: url(https://cdn.nav.no/aksel/fonts/SourceSans3/italic-cyrillic.woff2) format("woff2"); | ||
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; | ||
} | ||
|
||
/* latin-ext */ | ||
@font-face { | ||
font-family: "Source Sans 3"; | ||
font-style: italic; | ||
font-weight: 400 600; | ||
font-display: swap; | ||
src: url(https://cdn.nav.no/aksel/fonts/SourceSans3/italic-latin-ext.woff2) format("woff2"); | ||
unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, | ||
U+2C60-2C7F, U+A720-A7FF; | ||
} | ||
|
||
/* latin */ | ||
@font-face { | ||
font-family: "Source Sans 3"; | ||
font-style: italic; | ||
font-weight: 400 600; | ||
font-display: swap; | ||
src: url(https://cdn.nav.no/aksel/fonts/SourceSans3/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+0304, U+0308, U+0329, 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: "Source Sans 3"; | ||
font-style: normal; | ||
font-weight: 400 600; | ||
font-display: swap; | ||
src: url(https://cdn.nav.no/aksel/fonts/SourceSans3/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: "Source Sans 3"; | ||
font-style: normal; | ||
font-weight: 400 600; | ||
font-display: swap; | ||
src: url(https://cdn.nav.no/aksel/fonts/SourceSans3/normal-cyrillic.woff2) format("woff2"); | ||
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; | ||
} | ||
|
||
/* latin-ext */ | ||
@font-face { | ||
font-family: "Source Sans 3"; | ||
font-style: normal; | ||
font-weight: 400 600; | ||
font-display: swap; | ||
src: url(https://cdn.nav.no/aksel/fonts/SourceSans3/normal-latin-ext.woff2) format("woff2"); | ||
unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, | ||
U+2C60-2C7F, U+A720-A7FF; | ||
} | ||
|
||
/* latin */ | ||
@font-face { | ||
font-family: "Source Sans 3"; | ||
font-style: normal; | ||
font-weight: 400 600; | ||
font-display: swap; | ||
src: url(https://cdn.nav.no/aksel/fonts/SourceSans3/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+0304, U+0308, U+0329, U+2000-206F, | ||
U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; | ||
} | ||
|
||
/* Legacy support */ | ||
|
||
/* latin-ext */ | ||
@font-face { | ||
font-family: "Source Sans Pro"; | ||
font-style: italic; | ||
font-weight: 400; | ||
font-weight: 400 600; | ||
font-display: swap; | ||
src: url("https://cdn.nav.no/aksel/fonts/SourceSans3-italic.woff2") format("woff2"); | ||
src: url(https://cdn.nav.no/aksel/fonts/SourceSans3/italic-latin-ext.woff2) format("woff2"); | ||
unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, | ||
U+2C60-2C7F, U+A720-A7FF; | ||
} | ||
|
||
/* latin */ | ||
@font-face { | ||
font-family: "Source Sans Pro"; | ||
font-style: italic; | ||
font-weight: 600; | ||
font-weight: 400 600; | ||
font-display: swap; | ||
src: url("https://cdn.nav.no/aksel/fonts/SourceSans3-italic-latin-semibold.woff2") format("woff2"); | ||
src: url(https://cdn.nav.no/aksel/fonts/SourceSans3/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+0304, U+0308, U+0329, 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: "Source Sans Pro"; | ||
font-style: normal; | ||
font-weight: 400; | ||
font-weight: 400 600; | ||
font-display: swap; | ||
src: url("https://cdn.nav.no/aksel/fonts/SourceSans3-normal.woff2") format("woff2"); | ||
src: url(https://cdn.nav.no/aksel/fonts/SourceSans3/normal-latin-ext.woff2) format("woff2"); | ||
unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, | ||
U+2C60-2C7F, U+A720-A7FF; | ||
} | ||
|
||
/* latin */ | ||
@font-face { | ||
font-family: "Source Sans Pro"; | ||
font-style: normal; | ||
font-weight: 600; | ||
font-weight: 400 600; | ||
font-display: swap; | ||
src: url("https://cdn.nav.no/aksel/fonts/SourceSans3-normal.woff2") format("woff2"); | ||
src: url(https://cdn.nav.no/aksel/fonts/SourceSans3/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+0304, U+0308, U+0329, U+2000-206F, | ||
U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters