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

Update font-family variables #453

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions docsite/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2072,10 +2072,9 @@ <h5>Usage Sample</h5>
<article class="font-sizes">
<h4>Font Families</h4>
<pre class="language-css"><code>
--font-sans: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
--font-serif: ui-serif, serif;
--font-mono: Dank Mono, Operator Mono, Inconsolata, Fira Mono, ui-monospace, SF Mono, Monaco, Droid Sans Mono, Source Code Pro, monospace;
</code></pre>
--font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems strange to put emoji fonts into this list?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If none of the earlier fonts in the stack include an emoji, the system will use the emoji font to display the symbol

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ic, jumps into the fallback line 👍🏻
shouldn't those be in the serif font too then?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure honestly

--font-serif: ui-serif, Georgia, Cambria, 'Times New Roman', serif;
--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
<div class="block-wrap">
<div class="font-family-grid">
<code class="language-css">--font-sans</code>
Expand Down
6 changes: 3 additions & 3 deletions src/props.fonts.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
:where(html) {
--font-sans: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;
--font-serif: ui-serif,serif;
--font-mono: Dank Mono,Operator Mono,Inconsolata,Fira Mono,ui-monospace,SF Mono,Monaco,Droid Sans Mono,Source Code Pro,monospace;
--font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
--font-serif: ui-serif, Georgia, Cambria, 'Times New Roman', serif;
--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
--font-weight-1: 100;
--font-weight-2: 200;
--font-weight-3: 300;
Expand Down
6 changes: 3 additions & 3 deletions src/props.fonts.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export default {
'--font-sans': 'system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif',
'--font-serif': 'ui-serif,serif',
'--font-mono': 'Dank Mono,Operator Mono,Inconsolata,Fira Mono,ui-monospace,SF Mono,Monaco,Droid Sans Mono,Source Code Pro,monospace',
'--font-sans': 'ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',
'--font-serif': 'ui-serif, Georgia, Cambria, "Times New Roman", serif',
'--font-mono': 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace',

'--font-weight-1': '100',
'--font-weight-2': '200',
Expand Down
Loading