TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Responsive typography with Modular Scale

21 pointsby loopjabout 11 years ago

6 comments

Rumudiezabout 11 years ago
Well, it&#x27;s a good idea, but in typography sizing and spacing is entirely based on a slightly more abstracted approach: the baseline grid. The baseline is the imaginary line which runs across the bottom of type, and the grid&#x27;s vertical spacing is equal to the leading, or line-height. Therefore, body type set at 10pt&#x2F;14pt will always align with a 14pt baseline grid so that elements on opposite sides of the page will always align and various type sizes will flow more naturally into the design.<p>Logically, type sizes from there (and this harkens back to manually setting type) should only be whole or half increments of the base type size (from my earlier example, this is 10pt), meaning appropriate sizes are 10pt, 15pt, 20pt, 30pt, etc, with agreeable modifications when necessary. However, good proportions would dictate that 10, 15, and 20 are too close together and as such designers would not use each, but probably restrict their designs to the highest and lowest point values.<p>I think it&#x27;s important to remember that just because there are six included hX elements doesn&#x27;t mean they should each be a different size. To create hierarchy, try changing capitalization, tracking (spacing between letters), weight, and other available styles in the type family you&#x27;re working with.
harlanlewisabout 11 years ago
Awesome, this is almost exactly the same approach I&#x27;ve adopted, right down to the double-stranded scale and breakpoint adjustments to font size. Looking forward to article 3.<p>The only notable differences in my approach have been using Compass&#x27;s Vertical Rhythm (<a href="http://compass-style.org/reference/compass/typography/vertical_rhythm/" rel="nofollow">http:&#x2F;&#x2F;compass-style.org&#x2F;reference&#x2F;compass&#x2F;typography&#x2F;vertic...</a>) and some mixins to opt out entirely or re-initialize scale for individual components. As a side benefit, using a preprocessor allows for a rem-like approach for all browsers.
jjgreenabout 11 years ago
The default ms-ratio used here (the golden ratio) has been criticized in recent years for being little more than wishful thinking -- see <a href="http://www.maa.org/external_archive/devlin/devlin_05_07.html" rel="nofollow">http:&#x2F;&#x2F;www.maa.org&#x2F;external_archive&#x2F;devlin&#x2F;devlin_05_07.html</a> for example. May be worthwhile playing with other values when looking for the best typographic results.
ommunistabout 11 years ago
Thank you very much. Actually web typography and its automation with SASS deserve a book, even small one will have big impact. Funny thing canonical proportion. India have a different one, as far as I read some buddhist scripts on architecture.
baddoxabout 11 years ago
&gt; We designed the Bugsnag dashboard with a $ms-base of 1rem and a $ms-ratio of $major-third or 1.25<p>Nice music reference. Does it make your page feel sad if you use 1.2?
adam-fabout 11 years ago
is it<p><pre><code> $ms-ratio: $golden; </code></pre> or<p><pre><code> $ms-ratio: golden; ?</code></pre>
评论 #7476982 未加载
评论 #7476973 未加载