53
53
</ header >
54
54
55
55
< main class ="bg-white black-70 ">
56
- < article class ="bt b--black-10 pa3 ph5-ns ">
57
- < h4 class ="f4 mv0 fw6 dib mr4 "> tachyons-type-scale</ h4 >
58
- < span class ="f4 b dib pl0 ml0 mr4 "> v6.0.1</ span >
59
- < span class ="f4 b dib pl0 ml0 mr4 "> 242 B</ span >
60
- < div >
61
- < dl class ="dib mr4 mt0 ">
62
- < dt class ="f6 db "> Declarations </ dt >
63
- < dd class ="db pl0 ml0 f4 f2-ns b "> 32</ dd >
64
- </ dl >
65
- < dl class ="dib mr4 ">
66
- < dt class ="f6 db pr2 "> Selectors </ dt >
67
- < dd class ="db pl0 ml0 f4 f2-ns b "> 40</ dd >
68
- </ dl >
69
- < dl class ="dib mr4 ">
70
- < dt class ="f6 db pr2 "> Max. Specificity Score </ dt >
71
- < dd class ="db pl0 ml0 f4 f2-ns b "> 10</ dd >
72
- </ dl >
73
- < dl class ="dib mr4 ">
74
- < dt class ="f6 db pr2 "> Size of Avg. Rule </ dt >
75
- < dd class ="db pl0 ml0 f4 f2-ns b "> 1</ dd >
76
- </ dl >
56
+ < header class ="ph3 ph5-ns w-100 pv3 mb4 mb5-ns bt bb b--black-10 overflow-auto ">
57
+ < div class ="nowrap mw9 center ">
58
+ < a class ="f6 fw6 dim link black pb2-ns mr2 mr3-m mr4-l " href ="#0 " title ="Type "> Type Scale</ a >
59
+ < a class ="f6 fw6 dim link black-70 pb2-ns mr2 mr3-m mr4-l " href ="/docs/typography/measure/ " title ="Measure "> Measure</ a >
60
+ < a class ="f6 fw6 dim link black-70 pb2-ns mr2 mr3-m mr4-l " href ="/docs/typography/line-height " title ="Line Height "> Line Height / Leading</ a >
61
+ < a class ="f6 fw6 dim link black-70 pb2-ns mr2 mr3-m mr4-l " href ="/docs/typography/tracking " title ="Tracking "> Tracking</ a >
62
+ < a class ="f6 fw6 dim link black-70 pb2-ns mr2 mr3-m mr4-l " href ="/docs/typography/font-weight " title ="Font Weights "> Font Weights</ a >
63
+ < a class ="f6 fw6 dim link black-70 pb2-ns mr2 mr3-m mr4-l " href ="/docs/typography/font-style " title ="Font Families "> Font Style</ a >
64
+ < a class ="f6 fw6 dim link black-70 pb2-ns mr2 mr3-m mr4-l " href ="/docs/typography/vertical-align " title ="Font Families "> Vertical Align</ a >
65
+ < a class ="f6 fw6 dim link black-70 pb2-ns mr2 mr3-m mr4-l " href ="/docs/typography/text-align " title ="Text Align "> Text Align</ a >
66
+ < a class ="f6 fw6 dim link black-70 pb2-ns mr2 mr3-m mr4-l " href ="/docs/typography/text-transform " title ="Text Transform "> Text Transform</ a >
67
+ < a class ="f6 fw6 dim link black-70 pb2-ns mr2 mr3-m mr4-l " href ="/docs/typography/text-decoration " title ="Text Decoration "> Text Decoration</ a >
68
+ < a class ="f6 fw6 dim link black-70 pb2-ns mr2 mr3-m mr4-l " href ="/docs/typography/white-space " title ="White Space "> White Space</ a >
69
+ < a class ="f6 fw6 dim link black-70 pb2-ns mr2 mr3-m mr4-l " href ="/docs/typography/font-family " title ="Font Families "> Font Families</ a >
77
70
</ div >
71
+ </ header >
72
+ < article class ="ph3 ph5-ns ">
73
+ < h3 class ="f6 ttu tracked mt0 "> Type Scale</ h3 >
78
74
< p class ="measure f4 f3-ns lh-copy ">
79
75
Often times, websites devote a non-trivial amount of css to setting
80
76
font-size. They declare an unnecessary amount of different
@@ -92,13 +88,13 @@ <h4 class="f4 mv0 fw6 dib mr4">tachyons-type-scale</h4>
92
88
</ p >
93
89
</ article >
94
90
< div class ="ph3 ph5-ns pt4 pb5 ">
95
- < h2 class ="f3 b mb4 "> Scale</ h2 >
96
- < blockquote class ="f5 gray measure lh-copy mh0 mb4 ">
91
+ < blockquote class ="f5 gray measure lh-copy mh0 mb4 mb5-ns ">
97
92
< p class ="i ">
98
93
"The simplest scale is a single note, and sticking with a single note draws more attention to other parameters, such as rhythm and inflection... In the sixteenth century, a series of common sizes developed among European typographers, and the series survived with little change and few additions for 400 years... This is the typographic equivalent of the diatonic scale."
99
94
</ p >
100
95
< p class ="dark-gray f6 "> Robert Bringhurst - < b > The Elements of Typographic Style</ b > </ p >
101
96
</ blockquote >
97
+ < h2 class ="f4 b mb4 "> Font sizes</ h2 >
102
98
< div class ="w-100 overflow-x-auto ">
103
99
< table >
104
100
< tr >
@@ -123,48 +119,56 @@ <h2 class="f3 b mb4">Scale</h2>
123
119
</ tr >
124
120
</ table >
125
121
</ div >
126
- < h2 class ="f3 b mb5 mt5 mt6-ns "> Examples</ h2 >
127
- < code class ="f6 gray "> .f-headline 6rem</ code >
122
+ < h2 class ="f4 b mb5 mt5 mt6-ns "> Examples</ h2 >
123
+ < code class ="f6 pre mb3 db ">
124
+ <h1 class="f-headline lh-solid">Title</h1>
125
+ </ code >
128
126
< p class ="f-headline b lh-solid oh measure mt0 mb5 nowrap ws-normal-ns overflow-hidden word-wrap ">
129
- Jelly-like above the high wire, six quaking pachyderms kept the climax
130
- of the extravaganza in a dazzling state of flux.
127
+ A modular scale, like a musical scale, is a prearranged set of harmonious proportions.
131
128
</ p >
132
129
133
- < code class ="f6 db gray "> .f-subheadline 5rem</ code >
134
- < p class ="f-subheadline lh-solid b measure oh mt0 mb4 mb5-ns word-wrap ">
135
- Ebenezer unexpectedly bagged two tranquil aardvarks with his jiffy vacuum cleaner.
130
+ < code class ="f6 pre mb3 db ">
131
+ <h1 class="f-subheadline lh-title">Title</h1>
132
+ </ code >
133
+ < p class ="f-subheadline lh-title b measure oh mt0 mb4 mb5-ns word-wrap ">
134
+ A modular scale, like a musical scale, is a prearranged set of harmonious proportions.
136
135
</ p >
137
- < code class ="f6 db gray "> .f1 3rem</ code >
138
- < p class ="f1 b lh-solid mt0 mb4 mb5-ns measure word-wrap ">
139
- The public was amazed to view the quickness and dexterity of the juggler.
136
+ < code class ="f6 pre mb3 db ">
137
+ <h1 class="f1 lh-title">Title</h1>
138
+ </ code >
139
+ < p class ="f1 b lh-title mt0 mb4 mb5-ns measure word-wrap ">
140
+ A modular scale, like a musical scale, is a prearranged set of harmonious proportions.
140
141
</ p >
141
- < code class ="f6 db gray "> .f2 2.25rem</ code >
142
+ < code class ="f6 pre mb3 db ">
143
+ <h1 class="f2 lh-copy">Title</h1>
144
+ </ code >
142
145
< p class ="f2 lh-copy mt0 mb4 mb5-ns measure ">
143
- A quart jar of oil mixed with zinc oxide makes a very bright paint.
144
- How razorback-jumping frogs can level six piqued gymnasts.
146
+ A modular scale, like a musical scale, is a prearranged set of harmonious proportions.
145
147
</ p >
146
- < code class ="f6 db gray "> .f3 1.5rem</ code >
148
+ < code class ="f6 pre mb3 db ">
149
+ <h1 class="f3 lh-copy">Title</h1>
150
+ </ code >
147
151
< p class ="f3 lh-copy mt0 mb4 mb5-ns measure ">
148
- The July sun caused a fragment of black pine wax to ooze on the velvet quilt.
149
- We quickly seized the black axle and just saved it from going past him.
152
+ A modular scale, like a musical scale, is a prearranged set of harmonious proportions.
150
153
</ p >
154
+ < code class ="f6 pre mb3 db ">
155
+ <h1 class="f4 lh-copy">Title</h1>
156
+ </ code >
151
157
152
- < code class ="f6 db gray "> .f4 1.25rem</ code >
153
158
< p class ="f4 lh-copy mt0 mb4 mb5-ns measure ">
154
- We promptly judged antique ivory buckles for the next prize. Heavy
155
- boxes perform quick waltzes and jigs. Blowzy night-frumps vex'd Jack Q
159
+ A modular scale, like a musical scale, is a prearranged set of harmonious proportions.
156
160
</ p >
157
- < code class ="f6 db gray "> .f5 1rem</ code >
161
+ < code class ="f6 pre mb3 db ">
162
+ <h1 class="f5 lh-copy">Title</h1>
163
+ </ code >
158
164
< p class ="f5 lh-copy mt0 mb4 mb5-ns measure ">
159
- Jelly-like above the high wire, six quaking pachyderms kept the climax
160
- of the extravaganza in a dazzling state of flux.
161
- Jinxed wizards pluck ivy from the big quilt.
165
+ A modular scale, like a musical scale, is a prearranged set of harmonious proportions.
162
166
</ p >
163
- < code class ="f6 db gray "> .f6 .875rem</ code >
167
+ < code class ="f6 pre mb3 db ">
168
+ <h1 class="f6 lh-copy">Title</h1>
169
+ </ code >
164
170
< p class ="f6 lh-copy mt0 measure word-wrap ">
165
- Forsaking monastic tradition, twelve jovial friars gave up their vocation for a
166
- questionable existence on the flying trapeze. Amazingly few discotheques
167
- provide jukeboxes.
171
+ A modular scale, like a musical scale, is a prearranged set of harmonious proportions.
168
172
</ p >
169
173
< div class ="mt5 cf ">
170
174
< div class ="dib mr4 ">
@@ -181,9 +185,31 @@ <h4 class="f6 fw6">Reference</h4>
181
185
< a href ="https://developer.mozilla.org/en-US/docs/Web/CSS/font-size " class ="link fw6 blue dim "> MDN - Font-size</ a >
182
186
</ div >
183
187
</ div >
184
- < section class ="bg-white black-70 pt4 pb5 overflow-container ">
188
+ < section class ="bg-white black-70 pv4 mb4 bt bb b--black-40 overflow-container ">
185
189
< header class ="ph3 ph5-ns pt4 ">
186
- < kbd > src/_type-scale.css</ kbd >
190
+ < h4 class ="f4 mv0 fw6 dib mr4 "> tachyons-type-scale</ h4 >
191
+ < span class ="f4 b dib pl0 ml0 mr4 "> v6.0.1</ span >
192
+ < span class ="f4 b dib pl0 ml0 mr4 "> 242 B</ span >
193
+ < div >
194
+ < dl class ="dib mr4 mt0 ">
195
+ < dt class ="f6 db "> Declarations </ dt >
196
+ < dd class ="db pl0 ml0 f4 f2-ns b "> 32</ dd >
197
+ </ dl >
198
+ < dl class ="dib mr4 ">
199
+ < dt class ="f6 db pr2 "> Selectors </ dt >
200
+ < dd class ="db pl0 ml0 f4 f2-ns b "> 40</ dd >
201
+ </ dl >
202
+ < dl class ="dib mr4 ">
203
+ < dt class ="f6 db pr2 "> Max. Specificity Score </ dt >
204
+ < dd class ="db pl0 ml0 f4 f2-ns b "> 10</ dd >
205
+ </ dl >
206
+ < dl class ="dib mr4 ">
207
+ < dt class ="f6 db pr2 "> Size of Avg. Rule </ dt >
208
+ < dd class ="db pl0 ml0 f4 f2-ns b "> 1</ dd >
209
+ </ dl >
210
+ </ div >
211
+ < h4 class ="f6 "> Source code</ h4 >
212
+ < kbd > src/_type-scale.css</ kbd >
187
213
</ header >
188
214
< pre class ="ph3 ph5-ns ">
189
215
< code class ="code " style ="font-size: .75rem; ">
0 commit comments