@ec-europa/ecl-typography-paragraphs
Advanced tools
Comparing version 0.4.1 to 0.5.0
@@ -5,3 +5,3 @@ { | ||
"license": "EUPL-1.1", | ||
"version": "0.4.1", | ||
"version": "0.5.0", | ||
"description": "ECL Paragraphs", | ||
@@ -8,0 +8,0 @@ "main": "_paragraphs.scss", |
# Paragraphs | ||
Text paragraphs. | ||
Different sizes are available, by using specific modifiers. | ||
<table class="ecl-table"> | ||
<thead> | ||
<tr> | ||
<th></th> | ||
<th>Size</th> | ||
<th>Leading</th> | ||
<th>Weight</th> | ||
<th>Colour</th> | ||
<th>Usage</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>Leading</td> | ||
<td>L</td> | ||
<td>36px</td> | ||
<td>Regular</td> | ||
<td>White / EC Dark Grey</td> | ||
<td>Page header introduction (page header)</td> | ||
</tr> | ||
<tr> | ||
<td>Medium</td> | ||
<td>M</td> | ||
<td>30px</td> | ||
<td>Regular</td> | ||
<td>White / EC Dark Grey</td> | ||
<td>Paragraphs</td> | ||
</tr> | ||
<tr> | ||
<td>Small</td> | ||
<td>S</td> | ||
<td>26px</td> | ||
<td>Regular</td> | ||
<td>EC Dark Grey</td> | ||
<td>Lists views</td> | ||
</tr> | ||
<tr> | ||
<td>Extra Small</td> | ||
<td>XS</td> | ||
<td>22px</td> | ||
<td>Regular</td> | ||
<td>EC Dark Grey</td> | ||
<td>Captions / Meta</td> | ||
</tr> | ||
<tr> | ||
<td>Extra Extra Small</td> | ||
<td>XXS</td> | ||
<td>20px</td> | ||
<td>Regular</td> | ||
<td>EC Dark Grey</td> | ||
<td>Copyrights / Labels</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
## Line height | ||
Line-height, traditionally known as leading, is one of several factors that directly contribute to readability and pacing of copy. Line-heights are based on the size of the font itself. Ideal line-heights for standard copy has a ratio of 1.66. For example, a type at 1em/16px would have a line-height of 24px (16 x 1.66). The exception to this rule are headings, which need less spacing and therefore have a line-height ratio of 1.1. | ||
**Standard line-height**: type size x 1.66 | ||
## Line-length | ||
"Research shows that reading slows and retention rates fall as line length begins to exceed the ideal width, because the reader then needs to use the muscles of the eye and neck to track from the end of one line to the beginning of the next line. If the eye must traverse great distances on the page, the reader is easily lost and must hunt for the beginning of the next line. Quantitative studies show that moderate line lengths significantly increase the legibility of text." | ||
Web Style Guide – Basic Design Principles for Creating Website | ||
Patrick J. Lynch and Sarah Horton | ||
2nd edition, page 97. | ||
**Line-length**: 44 to 77 characters. | ||
## Spacing | ||
The spacing between a Heading and a paragraph should be always 30px. | ||
The spacing between Headings should be (H1) 80px, (H2) 60px, (H3) 40px. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6134
9
78