MelangeCSS Reference

Current Version: 1.0.0-RC5

Typography ( Large Width )

Text rendering can be tricky, however the use of a fixed font scale and a limited number of other tranformations for letter spacing and leading can provide myriad combinations to meet most needs without having to endlessly tweak precise values. The result of the fixed set up typographic features is general consistency and harmony regardless of the styles chosen.

Properties

Aliases

These violate the naming conventions, but are convienient as aliases for more commonly-used needs.

b-l
Aliases Bold
.b-l {
  font-weight: bold;
}
The spice must flow!
i-l
Aliases Italic
.i-l {
  font-style: italic;
}
The spice must flow!
sc-l
Aliases Small Caps
.sc-l {
  font-variant: small-caps;
}
The spice must flow!
u-l
Aliases Underline
.u-l {
  text-decoration: underline;
}
The spice must flow!
p-l
Aliases Content paragraph with measure and lh-copy
.p-l {
  max-width: var(--tw);
  line-height: var(--lh-copy);
}
“God Emperor of Dune” is often considered the best of the series, however the first book—“Dune”—is the safer bet if you intended to read only one.
Font Families
ff*
ff-sans-l
.ff-sans-l {
  font-family: var(--ff-sans);
}
The spice must flow
ff-serif-l
.ff-serif-l {
  font-family: var(--ff-serif);
}
The spice must flow
ff-mono-l
.ff-mono-l {
  font-family: var(--ff-mono);
}
The spice must flow
ff-cursive-l
.ff-cursive-l {
  font-family: var(--ff-cursive);
}
The spice must flow
ff-fantasy-l
.ff-fantasy-l {
  font-family: var(--ff-fantasy);
}
The spice must flow
Font Scale
f*
Modular Scale
f-1-l
.f-1-l {
  font-size: var(--fs-1);
}
The spice must flow!
f-2-l
.f-2-l {
  font-size: var(--fs-2);
}
The spice must flow!
f-3-l
.f-3-l {
  font-size: var(--fs-3);
}
The spice must flow!
f-4-l
.f-4-l {
  font-size: var(--fs-4);
}
The spice must flow!
f-5-l
.f-5-l {
  font-size: var(--fs-5);
}
The spice must flow!
f-6-l
.f-6-l {
  font-size: var(--fs-6);
}
The spice must flow!
f-7-l
.f-7-l {
  font-size: var(--fs-7);
}
The spice must flow!
f-8-l
.f-8-l {
  font-size: var(--fs-8);
}
The spice must flow!
f-9-l
.f-9-l {
  font-size: var(--fs-9);
}
The spice must flow!
Font Style
fs-normal-l
.fs-normal-l {
  font-style: normal;
}
The spice must flow!
fs-italic-l
Font Style Italic
.fs-italic-l {
  font-style: italic;
}
The spice must flow!
Font Variant
fv-sc-l
Font Variant Small Caps
.fv-sc-l {
  font-variant: small-caps;
}
The spice must flow!
fv-normal-l
Font Variant Normal
.fv-normal-l {
  font-variant: normal;
}
The spice must flow!
Font Weights
fw*
fw-normal-l
.fw-normal-l {
  font-weight: normal;
}
The spice must flow!
fw-bold-l
.fw-bold-l {
  font-weight: bold;
}
The spice must flow!
fw-1-l
.fw-1-l {
  font-weight: 100;
}
The spice must flow!
fw-2-l
.fw-2-l {
  font-weight: 200;
}
The spice must flow!
fw-3-l
.fw-3-l {
  font-weight: 300;
}
The spice must flow!
fw-4-l
.fw-4-l {
  font-weight: 400;
}
The spice must flow!
fw-5-l
.fw-5-l {
  font-weight: 500;
}
The spice must flow!
fw-6-l
.fw-6-l {
  font-weight: 600;
}
The spice must flow!
fw-7-l
.fw-7-l {
  font-weight: 700;
}
The spice must flow!
fw-8-l
.fw-8-l {
  font-weight: 800;
}
The spice must flow!
fw-9-l
.fw-9-l {
  font-weight: 900;
}
The spice must flow!
Indent
indent*
indent-0-l
.indent-0-l {
  text-indent: 0;
}
Although “Hunters of Dune” and “Sandworms of Dune” carry on the story started by the original six books, you will get a perfectly fine reading experience from the originals.
indent-1-l
.indent-1-l {
  text-indent: var(--ident-1);
}
Although “Hunters of Dune” and “Sandworms of Dune” carry on the story started by the original six books, you will get a perfectly fine reading experience from the originals.
indent-2-l
.indent-2-l {
  text-indent: var(--ident-2);
}
Although “Hunters of Dune” and “Sandworms of Dune” carry on the story started by the original six books, you will get a perfectly fine reading experience from the originals.
indent-3-l
.indent-3-l {
  text-indent: var(--ident-3);
}
Although “Hunters of Dune” and “Sandworms of Dune” carry on the story started by the original six books, you will get a perfectly fine reading experience from the originals.
indent--1-l
.indent--1-l {
  text-indent: var(--ident--1);
}
Although “Hunters of Dune” and “Sandworms of Dune” carry on the story started by the original six books, you will get a perfectly fine reading experience from the originals.
indent--2-l
.indent--2-l {
  text-indent: var(--ident--2);
}
Although “Hunters of Dune” and “Sandworms of Dune” carry on the story started by the original six books, you will get a perfectly fine reading experience from the originals.
indent--3-l
.indent--3-l {
  text-indent: var(--ident--3);
}
Although “Hunters of Dune” and “Sandworms of Dune” carry on the story started by the original six books, you will get a perfectly fine reading experience from the originals.
Leading/Line Height
lh*
lh-solid-l
.lh-solid-l {
  line-height: var(--lh-solid);
}
Although “Hunters of Dune” and “Sandworms of Dune” carry on the story started by the original six books, you will get a perfectly fine reading experience by reading only “Dune”, “Dune Messiah”, “Children of Dune”, “God Emperor of Dune”, “Heretics of Dune”, and finishing with “Chapterhouse Dune”. Trust me.
lh-title-l
.lh-title-l {
  line-height: var(--lh-title);
}
Although “Hunters of Dune” and “Sandworms of Dune” carry on the story started by the original six books, you will get a perfectly fine reading experience by reading only “Dune”, “Dune Messiah”, “Children of Dune”, “God Emperor of Dune”, “Heretics of Dune”, and finishing with “Chapterhouse Dune”. Trust me.
lh-copy-l
.lh-copy-l {
  line-height: var(--lh-copy);
}
Although “Hunters of Dune” and “Sandworms of Dune” carry on the story started by the original six books, you will get a perfectly fine reading experience by reading only “Dune”, “Dune Messiah”, “Children of Dune”, “God Emperor of Dune”, “Heretics of Dune”, and finishing with “Chapterhouse Dune”. Trust me.
Measure

Measure is a convienience for setting max widths appropriate for reading text, and works regardless of font size. It uses ch units to achieve this.

measure*
measure-l
.measure-l {
  max-width: var(--tw);
}
Although “Hunters of Dune” and “Sandworms of Dune” carry on the story started by the original six books, you will get a perfectly fine reading experience by reading only “Dune”, “Dune Messiah”, “Children of Dune”, “God Emperor of Dune”, “Heretics of Dune”, and finishing with “Chapterhouse Dune”. Trust me.
measure-wide-l
.measure-wide-l {
  max-width: var(--tw-wide);
}
Although “Hunters of Dune” and “Sandworms of Dune” carry on the story started by the original six books, you will get a perfectly fine reading experience by reading only “Dune”, “Dune Messiah”, “Children of Dune”, “God Emperor of Dune”, “Heretics of Dune”, and finishing with “Chapterhouse Dune”. Trust me.
measure-narrow-l
.measure-narrow-l {
  max-width: var(--tw-narrow);
}
Although “Hunters of Dune” and “Sandworms of Dune” carry on the story started by the original six books, you will get a perfectly fine reading experience by reading only “Dune”, “Dune Messiah”, “Children of Dune”, “God Emperor of Dune”, “Heretics of Dune”, and finishing with “Chapterhouse Dune”. Trust me.
Text Align
tr-l
Text Align Right
.tr-l {
  text-align: right;
}
The spice must flow!
tc-l
Text Align Center
.tc-l {
  text-align: center;
}
The spice must flow!
tl-l
Text Align Left
.tl-l {
  text-align: left;
}
The spice must flow!
Text Decoration
tdn-l
Text Decoration None
.tdn-l {
  text-decoration: none;
}
The spice must flow!
hover-tdn-l
Text Decoration None
.hover-tdn-l:hover {
  text-decoration: none;
}
The spice must flow!
tdu-l
Text Decoration Underline
.tdu-l {
  text-decoration: underline;
}
The spice must flow!
hover-tdu-l
Text Decoration Underline
.hover-tdu-l:hover {
  text-decoration: underline;
}
The spice must flow!
tds-l
Text Decoration Strike
.tds-l {
  text-decoration: line-through;
}
The spice must flow!
hover-tds-l
Text Decoration Strike
.hover-tds-l:hover {
  text-decoration: line-through;
}
The spice must flow!
tdo-l
Text Decoration Overline
.tdo-l {
  text-decoration: overline;
}
The spice must flow!
hover-tdo-l
Text Decoration Overline
.hover-tdo-l:hover {
  text-decoration: overline;
}
The spice must flow!
Text Tranform
ttn-l
Text Tranform None
.ttn-l {
  text-transform: none;
}
The spice must flow!
ttu-l
Text Tranform Uppercase
.ttu-l {
  text-transform: uppercase;
}
The spice must flow!
ttl-l
Text Tranform Lowercase
.ttl-l {
  text-transform: lowercase;
}
The spice must flow!
ttc-l
Text Tranform Capitalize
.ttc-l {
  text-transform: capitalize;
}
The spice must flow!
Tracking / Letter Spacing
tracked*
tracked-l
.tracked-l {
  letter-spacing: var(--ls);
}
The spice must flow!
tracked-tight-l
.tracked-tight-l {
  letter-spacing: var(--ls-tight);
}
The spice must flow!
tracked-mega-l
.tracked-mega-l {
  letter-spacing: var(--ls-mega);
}
The spice must flow!
tracked-none-l
.tracked-none-l {
  letter-spacing: var(--ls-none);
}
The spice must flow!
Vertical Align

While vertical alignemnt can be specified in artbirary lengbths and percentages, baseline, top, middle, and bottom are sufficient for most use-cases.

va-baseline-l
Vertical Align Baseline
.va-baseline-l {
  vertical-align: baseline;
}
The spice must flow!
va-middle-l
Vertical Align Middle
.va-middle-l {
  vertical-align: middle;
}
The spice must flow!
va-top-l
Vertical Align Top
.va-top-l {
  vertical-align: top;
}
The spice must flow!
va-bottom-l
Vertical Align Bottom
.va-bottom-l {
  vertical-align: bottom;
}
The spice must flow!
White Space
ws-normal-l
White Space Normal
.ws-normal-l {
  white-space: normal;
}
Although “Hunters of Dune” and “Sandworms of Dune” carry on the story started by the original six books, you will get a perfectly fine reading experience by reading only “Dune”, “Dune Messiah”, “Children of Dune”, “God Emperor of Dune”, “Heretics of Dune”, and finishing with “Chapterhouse Dune”. Trust me.
ws-nowrap-l
White Space No Wrap
.ws-nowrap-l {
  white-space: nowrap;
}
Although “Hunters of Dune” and “Sandworms of Dune” carry on the story started by the original six books, you will get a perfectly fine reading experience by reading only “Dune”, “Dune Messiah”, “Children of Dune”, “God Emperor of Dune”, “Heretics of Dune”, and finishing with “Chapterhouse Dune”. Trust me.
ws-pre-l
White Space Pre
.ws-pre-l {
  white-space: pre;
}
Although “Hunters of Dune” and “Sandworms of Dune” carry on the story started by the original six books, you will get a perfectly fine reading experience by reading only “Dune”, “Dune Messiah”, “Children of Dune”, “God Emperor of Dune”, “Heretics of Dune”, and finishing with “Chapterhouse Dune”. Trust me.