1 Design
Every design rules and assets, colors, icons, etc.
1.1 Colors
Description
Every colors in this Colettes are variables. If an overwrite of the color is needed, checkout the stylus variables on the settings.
Layout and UI generic colors
1.1.3 Theme colors
Description
The color palette is based upon 20 Minutes editorial color chart:
- each editorial section has a related color
- we use section names as aliases to define color variables and classes names
- this colors should respect at least a 4.5 (
$contrast
) ratio relatively to white - if ratio is insufficient some modules add a text-shadow or swith to a darker color
1.2 Fonts
Description
The standard fonts used in 20 Minutes digital projects are Open Sans and Helvetica.
Helvetica is used as the body text font.
Open Sans is included in the project and available in 3 weights: Regular, Semi Bold and Bold. Open Sans must be systematically used for content titles :
- bold weight, in block teaser or content view,
- regular in listed teaser view.
Name | Demo |
---|---|
Open Sans Regular | The quick brown fox jumps over the lazy dog |
Open Sans Regular italic | The quick brown fox jumps over the lazy dog |
Open Sans Semi Bold | The quick brown fox jumps over the lazy dog |
Open Sans Bold | The quick brown fox jumps over the lazy dog |
Open Sans Bold italic | The quick brown fox jumps over the lazy dog |
1.3 Rounded corners
Description
Radius for rounded corners of .box
Parameters
$radius ?= _rem(8px)
: used by .box
1.4 SVG symbols
Description
Colette use a collection of svg symbols built with svgstore.
By default svg fill
are colored by current text color.
-
arrow
-
social
1.5 Contrast
Description
Contrast ratio for accessibility from WCAG recommendations.
Parameters
$contrast
: 4.5
$contrast-low
: 3
$contrast-high
: 7
1.6 Typography
Description
See default typographic styles below:
Example
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Paragraph / Body text
Example of a small text
Example of a abbr
Example of a link
Example of a blockquote
on multiple lines
Example of a table |
---|
Odd row |
Even row |
We should think about styling tables' footer |
- List, item 1
- List, item 2
- List, item 3
- List, item 1
- List, item 2
- List, item 3
- List, item 1
- List, item 2
- List, item 3
- Ordered list, item 1
- Ordered list, item 2
- Ordered list, item 3
- Ordered list, item 1
- Ordered list, item 2
- Ordered list, item 3
- Ordered list, item 1
- Ordered list, item 2
- Ordered list, item 3
Markup
- Compiled HTML
- Template
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
<p>Paragraph / Body text</p>
<p>Example of a <small>small text</small></p>
<p>Example of a <abbr title="abbreviation">abbr</abbr></p>
<p>Example of a <a href="#">link</a></p>
<blockquote>
<p>Example of a blockquote<br />on multiple lines</p>
</blockquote>
<table>
<thead>
<tr>
<th>Example of a table</th>
</tr>
</thead>
<toby>
<tr>
<td>Odd row</td>
</tr>
<tr>
<td>Even row</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>We should think about styling tables' footer</td>
</tr>
</tfoot>
</table>
<ul>
<li>List, item 1</li>
<li>List, item 2</li>
<li>List, item 3
<ul>
<li>List, item 1</li>
<li>List, item 2</li>
<li>List, item 3
<ul>
<li>List, item 1</li>
<li>List, item 2</li>
<li>List, item 3</li>
</ul>
</li>
</ul>
</li>
</ul>
<ol>
<li>Ordered list, item 1</li>
<li>Ordered list, item 2</li>
<li>Ordered list, item 3
<ol>
<li>Ordered list, item 1</li>
<li>Ordered list, item 2</li>
<li>Ordered list, item 3
<ol>
<li>Ordered list, item 1</li>
<li>Ordered list, item 2</li>
<li>Ordered list, item 3</li>
</ol>
</li>
</ol>
</li>
</ol>
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
<p>Paragraph / Body text</p>
<p>Example of a <small>small text</small></p>
<p>Example of a <abbr title="abbreviation">abbr</abbr></p>
<p>Example of a <a href="#">link</a></p>
<blockquote>
<p>Example of a blockquote<br />on multiple lines</p>
</blockquote>
<table>
<thead>
<tr>
<th>Example of a table</th>
</tr>
</thead>
<toby>
<tr>
<td>Odd row</td>
</tr>
<tr>
<td>Even row</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>We should think about styling tables' footer</td>
</tr>
</tfoot>
</table>
<ul>
<li>List, item 1</li>
<li>List, item 2</li>
<li>List, item 3
<ul>
<li>List, item 1</li>
<li>List, item 2</li>
<li>List, item 3
<ul>
<li>List, item 1</li>
<li>List, item 2</li>
<li>List, item 3</li>
</ul>
</li>
</ul>
</li>
</ul>
<ol>
<li>Ordered list, item 1</li>
<li>Ordered list, item 2</li>
<li>Ordered list, item 3
<ol>
<li>Ordered list, item 1</li>
<li>Ordered list, item 2</li>
<li>Ordered list, item 3
<ol>
<li>Ordered list, item 1</li>
<li>Ordered list, item 2</li>
<li>Ordered list, item 3</li>
</ol>
</li>
</ol>
</li>
</ol>
Source: src/styl/_base/_typography.styl
, line 1
1.6.1 Default line height
Parameters
$lh ?= _rem(27px)
: default line-height
for default font-size
.
$lh-gap ?= _rem(2px)
: minimal difference between line-height
and font-size
.
$lh-division ?= .5
: minimal division off lines in vertical rythm