Summary Files Commits Branches @commit @diff @stats
path: root / docs / elements.html
diff options
context:
space:
mode:
Commite5ae885d6e329d7af9cc742c48c917b2c8c81776 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2017-08-23 09:41:35 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2017-08-23 09:41:35 +0800
Filesf02d39372508349d426e177cb0ddafdf99b0f5b5 /docs/elements.html
Spectre-Dark-Gruvbox-e5ae885d6e329d7af9cc742c48c917b2c8c81776.tar
Spectre-Dark-Gruvbox-e5ae885d6e329d7af9cc742c48c917b2c8c81776.tar.gz
Spectre-Dark-Gruvbox-e5ae885d6e329d7af9cc742c48c917b2c8c81776.zip
Parent72834a9180fe90240f240e0ed06c08eb180a66ee (diff)
Add Typography Fonts Docs
1 files changed, 19 insertions, 0 deletions
-rw-r--r--docs/elements.html19
diff --git a/docs/elements.html b/docs/elements.html
index 9f214ce..85a0632 100644
--- a/docs/elements.html
+++ b/docs/elements.html
@@ -409,6 +409,25 @@
&lt;<span class="tag">p</span> <span class="atn">class</span>=<span class="atv">&quot;cjk&quot;</span>&gt;&lt;<span class="tag">del</span>&gt;祇園&lt;<span class="tag">/del</span>&gt;&lt;<span class="tag">del</span>&gt;精舎&lt;<span class="tag">/del</span>&gt;の鐘の声、諸行無常の響きあり。……&lt;<span class="tag">/p</span>&gt;
</code></pre>
+ <h4 id="typography-fonts" class="s-subtitle">Fonts</h4>
+ <div class="docs-note">
+ <p>Spectre sets the most common and best <code>font-family</code> for each OS with fallback support in old systems. There are also fonts targeted East Asian typography.</p>
+ </div>
+
+<!-- fonts -->
+<pre class="code"><code><span class="com">&lt;!-- Western typography targeted --&gt;</span>
+<span class="atn">font-family</span>: <span class="atv">-apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif</span>;
+<span class="com">&lt;!-- Monospace typography targeted --&gt;</span>
+<span class="atn">font-family</span>: <span class="atv">"SF Mono", "Segoe UI Mono", "Roboto Mono", Menlo, Courier, monospace</span>;
+
+<span class="com">&lt;!-- Chinese typography targeted --&gt;</span>
+<span class="atn">font-family</span>: <span class="atv">-apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif</span>;
+<span class="com">&lt;!-- Japanese typography targeted --&gt;</span>
+<span class="atn">font-family</span>: <span class="atv">-apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Hiragino Kaku Gothic Pro", "Yu Gothic", YuGothic, Meiryo, "Helvetica Neue", sans-serif</span>;
+<span class="com">&lt;!-- Korean typography targeted --&gt;</span>
+<span class="atn">font-family</span>: <span class="atv">-apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Malgun Gothic", "Helvetica Neue", sans-serif</span>;
+</code></pre>
+
<h4 id="typography-blockquote" class="s-subtitle">Blockquote</h4>
<blockquote>
<p>The advance of technology is based on making it fit in so that you don't really even notice it, so it's part of everyday life. </p>