Skip to content

Commit b7ea8ac

Browse files
ENH - Modernize font stack (#2263)
Fixes #2262 The emoji part is from this note in the README: https://github.com/system-fonts/modern-font-stacks#emoji-support --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 4952473 commit b7ea8ac

File tree

1 file changed

+7
-5
lines changed
  • src/pydata_sphinx_theme/assets/styles/variables

1 file changed

+7
-5
lines changed

src/pydata_sphinx_theme/assets/styles/variables/_fonts.scss

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,15 @@ html {
3232
--pst-font-weight-heading: 600;
3333

3434
// Font family
35-
// These are adapted from https://systemfontstack.com/ */
35+
// https://modernfontstacks.com/?stack=system-ui
3636
--pst-font-family-base-system:
37-
-apple-system, "BlinkMacSystemFont", "Segoe UI", "Helvetica Neue", "Arial",
38-
sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
37+
system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
38+
"Segoe UI Symbol", "Noto Color Emoji";
39+
40+
// https://modernfontstacks.com/?stack=monospace-code
3941
--pst-font-family-monospace-system:
40-
"SFMono-Regular", "Menlo", "Consolas", "Monaco", "Liberation Mono",
41-
"Lucida Console", monospace;
42+
ui-monospace, "Cascadia Code", "Source Code Pro", "Menlo", "Consolas",
43+
"DejaVu Sans Mono", monospace;
4244
--pst-font-family-base: var(--pst-font-family-base-system);
4345
--pst-font-family-heading: var(--pst-font-family-base-system);
4446
--pst-font-family-monospace: var(--pst-font-family-monospace-system);

0 commit comments

Comments
 (0)