Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: changed to DB Screen Flex (variable font) #2088

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
2 changes: 1 addition & 1 deletion .github/workflows/02-e2e-showcases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
fail-fast: false
matrix:
framework: [angular, react, vue]
shard: [1/2, 2/2]
shard: [1of2, 2of2]
mfranzke marked this conversation as resolved.
Show resolved Hide resolved
steps:
- name: ⏬ Checkout repo
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/02-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
fail-fast: false
matrix:
framework: [react, vue]
shard: [1/3, 2/3, 3/3]
shard: [1of3, 2of3, 3of3]
steps:
- name: ⏬ Checkout repo
uses: actions/checkout@v4
Expand Down
Binary file not shown.
12 changes: 12 additions & 0 deletions packages/foundations/scss/_font-faces.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ $db-screensans-bold: assets-paths.$fonts-path +
$db-screensans-digital-regular: assets-paths.$fonts-path +
internals.$db-font-db-screensans-digital-regular-woff2;

$db-screenflex: assets-paths.$fonts-path +
internals.$db-font-db-screenflex-woff2;

@font-face {
font-family: internals.$db-font-db-screenhead-light-font-family;
font-style: normal;
Expand Down Expand Up @@ -70,3 +73,12 @@ $db-screensans-digital-regular: assets-paths.$fonts-path +
),
url($db-screensans-digital-regular) format("woff2");
}

@font-face {
font-family: internals.$db-font-db-screenflex-font-family;
src:
local(internals.$db-font-db-screenflex-name),
local(internals.$db-font-db-screenflex-local-name),
local(internals.$db-font-db-screenflex-local-name-short),
url($db-screenflex) format("woff2");
}
36 changes: 34 additions & 2 deletions packages/foundations/tokens/font.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,41 @@
}
}
},
"db-screenflex": {
"name": {
"value": "'DB Screen Flex'",
"attributes": {
"target": "web"
}
},
"local-name": {
"value": "DB Screen Flex",
"attributes": {
"target": "web"
}
},
"local-name-short": {
"value": "DB Flex",
"attributes": {
"target": "web"
}
},
"font-family": {
"value": "'DB Screen Flex'",
"attributes": {
"target": "web"
}
},
"woff2": {
"value": "'DBScreenFlexVF.woff2'",
"attributes": {
"target": "web"
}
}
},
"family": {
"sans": {
"value": "{font.db-screensans-regular.font-family.value}, Helvetica, Arial, sans-serif",
"value": "{font.db-screenflex.font-family.value}, Helvetica, Arial, sans-serif",
"attributes": {
"target": "web"
}
Expand All @@ -204,7 +236,7 @@
}
},
"bold": {
"value": "{font.db-screensans-bold.font-family.value}, Helvetica, Arial, sans-serif",
"value": "{font.db-screenflex.font-family.value}, Helvetica, Arial, sans-serif",
"attributes": {
"target": "web"
}
Expand Down
Loading