Text Body
By default, all text in main
is formatted with as .text_body
class.
Strong and emphasized text is styled accordingly.
Text color
We support 3 different text colors: [default],
.high-emphasis
, and low-emphasis
. The default text has opacity of 82%.
This paragraph has the "atomic" style .high_emphasis
, and should have high emphasis, and thus opacity of 1.00
This paragraph has the "atomic" style .low_emphasis
, and should have low emphasis, and thus opacity of 0.68
The .text_body
class can be used to override default styles for text-elements like this h3
Body text
Quoting?
And a quote!
Lists
Ordered list
- An Item
- Another Item
Unordered list
- An item
- Another item
Styling lists
For condenced lists, we use class .compact
- An item
- Another item
Typography
A longish treatise on typography for the Cyan, Pelilauta, and Mekanismi.
Usage
The following set of Google fonts links are expected to be present at
<link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link href="https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&family=Roboto+Mono:wght@500&display=swap" rel="stylesheet">
h1
The
Desktop and tablet
H1 abc
The large screen variant for 1st level headings follows google material design suggenstions, for the chosen font (Lato). Should you override the font - please also check the material font tool suggestions for full list of suggested font styles.
Mobile
Headline1, downscaled
The downscaled variant of a
Cards
A
h2
The
Desktop and tablet
H2 abc
The large screen variant for 2nd level headings follows google material design suggenstions, for the chosen font (Lato). Should you override the font - please also check the material font tool suggestions for full list of suggested font styles.
Mobile
Headline2, downscaled
The downscaled variant of a
Cards
Headline2, in a card
A
In general, using a
h3
The
Desktop and tablet
H3 abc
The large screen variant for 3rd level headings follows google material design suggenstions, for the chosen font (Lato). Should you override the font - please also check the material font tool suggestions for full list of suggested font styles.
Mobile
Headline3, downscaled
The downscaled variant of a
Cards
Headline3, in a card
A
In general card headings should default to
h4
The
Desktop and tablet
H4 abc
The large screen variant for 4th level headings follows google material design suggenstions, for the chosen font (Lato). Should you override the font - please also check the material font tool suggestions for full list of suggested font styles.
Mobile
Headline4, downscaled
The downscaled variant of a
Cards
Headline4, in a card
A
In general a second level heading in a card should use
Column width
The width of text elements is bounded by artificial
The three "book-sized" paragraphs lend us to following measurements:
- 67ch is roughly 700 px (in 4px increments)
- 42ch is roughly 440 px (in 4px increments)
- 26ch is roughly 272 px (in 4px increments)
If a container is wider than 700px, a paragraph should have 2 columns.