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.

Typebase.css: Simplified typography for the web

94 pointsby as1nduover 9 years ago

9 comments

cristianpascuover 9 years ago
It&#x27;s a good start, but the solution is based on the default behavior of HTML&#x2F;CSS, that is to position text in the middle of the leading. Text should <i>sit</i> on the baseline. There&#x27;s a sass library that solves this problem nicely: <a href="https:&#x2F;&#x2F;github.com&#x2F;designbyjake&#x2F;sassline" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;designbyjake&#x2F;sassline</a><p>Works even better with Tim Brown&#x27;s modular scale library: <a href="http:&#x2F;&#x2F;www.modularscale.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.modularscale.com&#x2F;</a>
评论 #10332501 未加载
chrisseatonover 9 years ago
What is the purpose of the specimen sheet? Is that the same thing as a demo? It looks like a huge typographical mess to me <a href="http:&#x2F;&#x2F;devinhunt.github.io&#x2F;typebase.css&#x2F;demo&#x2F;specimen.html" rel="nofollow">http:&#x2F;&#x2F;devinhunt.github.io&#x2F;typebase.css&#x2F;demo&#x2F;specimen.html</a>, but maybe it has another technical purpose?
评论 #10328752 未加载
memcoover 9 years ago
I realize H5 and H6 aren&#x27;t used that much, but the sizes for these elements are absurdly small for me. I cannot even read them. Perhaps consider a minimum font size as the size of paragraph text and stop going with smaller text and consider some other way of styling (e.g. replace bold with italics or regular weight).
nacsover 9 years ago
That demo is a really bad representation of whatever this is:<p><a href="http:&#x2F;&#x2F;i.imgur.com&#x2F;6tUIx5U.png" rel="nofollow">http:&#x2F;&#x2F;i.imgur.com&#x2F;6tUIx5U.png</a> (Chrome, Windows)<p>Those gridlines make a mess of the page and those headings at h5 and h6 look horrible.<p>It&#x27;s even worse in a test env (PhantomJS, Linux):<p><a href="http:&#x2F;&#x2F;i.imgur.com&#x2F;7n3nOKz.png" rel="nofollow">http:&#x2F;&#x2F;i.imgur.com&#x2F;7n3nOKz.png</a>
davidkpianoover 9 years ago
If you want to truly customize the way you use preprocessors for typography in your web projects, here&#x27;s another approach: <a href="https:&#x2F;&#x2F;scotch.io&#x2F;tutorials&#x2F;aesthetic-sass-3-typography-and-vertical-rhythm" rel="nofollow">https:&#x2F;&#x2F;scotch.io&#x2F;tutorials&#x2F;aesthetic-sass-3-typography-and-...</a>
greggmanover 9 years ago
Interesting that the demo page is using one of those super thin fonts my eyes have trouble focusing on and reading.<p><a href="http:&#x2F;&#x2F;devinhunt.github.io&#x2F;typebase.css&#x2F;" rel="nofollow">http:&#x2F;&#x2F;devinhunt.github.io&#x2F;typebase.css&#x2F;</a><p>PS: I&#x27;m on a retina MBP in 1680 mode so your results (and eyes) will vary
评论 #10329559 未加载
评论 #10328917 未加载
评论 #10328396 未加载
jdmaurerover 9 years ago
Cool, typography on the web can always be improved. Another cool one to check out is <a href="https:&#x2F;&#x2F;github.com&#x2F;corysimmons&#x2F;typographic" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;corysimmons&#x2F;typographic</a>.
评论 #10329055 未加载
kylemathewsover 9 years ago
Here&#x27;s another typography generation tool I wrote. Highly configurable. <a href="http:&#x2F;&#x2F;kyleamathews.github.io&#x2F;typography.js&#x2F;#&#x2F;" rel="nofollow">http:&#x2F;&#x2F;kyleamathews.github.io&#x2F;typography.js&#x2F;#&#x2F;</a><p>You can see a number of pre-built configurations in this issue <a href="https:&#x2F;&#x2F;github.com&#x2F;KyleAMathews&#x2F;typography.js&#x2F;issues&#x2F;10" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;KyleAMathews&#x2F;typography.js&#x2F;issues&#x2F;10</a>
评论 #10329783 未加载
bpatrianakosover 9 years ago
I&#x27;ve been using this as the basis for my typographic styles for maybe a year now. My only problem with it has been the spacing between paragraphs and headings. I find myself using the .hug class a lot.
评论 #10328176 未加载