Skip to content

Commit d50ad8b

Browse files
committed
TEMPORARY, DO NOT MERGE: measure the removal of the fonts after sans-serif
1 parent a437427 commit d50ad8b

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

‎.github/tmp-font-probe/probe.mjs‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ import {chromium, firefox, webkit} from 'playwright-core';
66

77
const [label, browserList, locale = 'en-US'] = process.argv.slice(2);
88

9-
const BEFORE_BASE = `-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Ubuntu Sans', Ubuntu, 'Adwaita Sans', Cantarell, 'Noto Sans', sans-serif, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'`;
10-
const BEFORE_MONO = `SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace`;
11-
const AFTER_BASE = `-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Ubuntu Sans', Ubuntu, 'Adwaita Sans', Cantarell, 'Noto Sans', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'`;
12-
const AFTER_MONO = `ui-monospace, ${BEFORE_MONO}`;
9+
const EMOJI = `'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'`;
10+
const MONO = `SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace`;
11+
const BEFORE_BASE = `system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, ${EMOJI}`;
12+
const BEFORE_MONO = MONO;
13+
const AFTER_BASE = `system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, ${EMOJI}`;
14+
const AFTER_MONO = MONO;
1315

1416
const css = (base, mono) =>
1517
`:root { --ifm-font-family-base: ${base} !important; --ifm-font-family-monospace: ${mono} !important; }`;

‎.github/workflows/tmp-font-screenshots.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# TEMPORARY, DO NOT MERGE: screenshots of the font stacks of the cleanup stacked on meta/docusaurus#13148
1+
# TEMPORARY, DO NOT MERGE: screenshots of the font stacks of main without the fonts after sans-serif
22
name: TMP font screenshots
33

44
on:

0 commit comments

Comments
 (0)