MelangeCSS Reference

Current Version: 1.0.0-RC5

Typography ( High Contrast )

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-hc
Aliases Bold
.b-hc {
  font-weight: bold;
}
The spice must flow!
i-hc
Aliases Italic
.i-hc {
  font-style: italic;
}
The spice must flow!
sc-hc
Aliases Small Caps
.sc-hc {
  font-variant: small-caps;
}
The spice must flow!
u-hc
Aliases Underline
.u-hc {
  text-decoration: underline;
}
The spice must flow!
p-hc
Aliases Content paragraph with measure and lh-copy
.p-hc {
  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-hc
.ff-sans-hc {
  font-family: var(--ff-sans);
}
The spice must flow
ff-serif-hc
.ff-serif-hc {
  font-family: var(--ff-serif);
}
The spice must flow
ff-mono-hc
.ff-mono-hc {
  font-family: var(--ff-mono);
}
The spice must flow
ff-cursive-hc
.ff-cursive-hc {
  font-family: var(--ff-cursive);
}
The spice must flow
ff-fantasy-hc
.ff-fantasy-hc {
  font-family: var(--ff-fantasy);
}
The spice must flow
Font Scale
f*
Modular Scale
f-1-hc
.f-1-hc {
  font-size: var(--fs-1);
}
The spice must flow!
f-2-hc
.f-2-hc {
  font-size: var(--fs-2);
}
The spice must flow!
f-3-hc
.f-3-hc {
  font-size: var(--fs-3);
}
The spice must flow!
f-4-hc
.f-4-hc {
  font-size: var(--fs-4);
}
The spice must flow!
f-5-hc
.f-5-hc {
  font-size: var(--fs-5);
}
The spice must flow!
f-6-hc
.f-6-hc {
  font-size: var(--fs-6);
}
The spice must flow!
f-7-hc
.f-7-hc {
  font-size: var(--fs-7);
}
The spice must flow!
f-8-hc
.f-8-hc {
  font-size: var(--fs-8);
}
The spice must flow!
f-9-hc
.f-9-hc {
  font-size: var(--fs-9);
}
The spice must flow!
Font Style
fs-normal-hc
.fs-normal-hc {
  font-style: normal;
}
The spice must flow!
fs-italic-hc
Font Style Italic
.fs-italic-hc {
  font-style: italic;
}
The spice must flow!
Font Variant
fv-sc-hc
Font Variant Small Caps
.fv-sc-hc {
  font-variant: small-caps;
}
The spice must flow!
fv-normal-hc
Font Variant Normal
.fv-normal-hc {
  font-variant: normal;
}
The spice must flow!
Font Weights
fw*
fw-normal-hc
.fw-normal-hc {
  font-weight: normal;
}
The spice must flow!
fw-bold-hc
.fw-bold-hc {
  font-weight: bold;
}
The spice must flow!
fw-1-hc
.fw-1-hc {
  font-weight: 100;
}
The spice must flow!
fw-2-hc
.fw-2-hc {
  font-weight: 200;
}
The spice must flow!
fw-3-hc
.fw-3-hc {
  font-weight: 300;
}
The spice must flow!
fw-4-hc
.fw-4-hc {
  font-weight: 400;
}
The spice must flow!
fw-5-hc
.fw-5-hc {
  font-weight: 500;
}
The spice must flow!
fw-6-hc
.fw-6-hc {
  font-weight: 600;
}
The spice must flow!
fw-7-hc
.fw-7-hc {
  font-weight: 700;
}
The spice must flow!
fw-8-hc
.fw-8-hc {
  font-weight: 800;
}
The spice must flow!
fw-9-hc
.fw-9-hc {
  font-weight: 900;
}
The spice must flow!
Indent
indent*
indent-0-hc
.indent-0-hc {
  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-hc
.indent-1-hc {
  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-hc
.indent-2-hc {
  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-hc
.indent-3-hc {
  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-hc
.indent--1-hc {
  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-hc
.indent--2-hc {
  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-hc
.indent--3-hc {
  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-hc
.lh-solid-hc {
  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-hc
.lh-title-hc {
  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-hc
.lh-copy-hc {
  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-hc
.measure-hc {
  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-hc
.measure-wide-hc {
  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-hc
.measure-narrow-hc {
  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-hc
Text Align Right
.tr-hc {
  text-align: right;
}
The spice must flow!
tc-hc
Text Align Center
.tc-hc {
  text-align: center;
}
The spice must flow!
tl-hc
Text Align Left
.tl-hc {
  text-align: left;
}
The spice must flow!
Text Decoration
tdn-hc
Text Decoration None
.tdn-hc {
  text-decoration: none;
}
The spice must flow!
hover-tdn-hc
Text Decoration None
.hover-tdn-hc:hover {
  text-decoration: none;
}
The spice must flow!
tdu-hc
Text Decoration Underline
.tdu-hc {
  text-decoration: underline;
}
The spice must flow!
hover-tdu-hc
Text Decoration Underline
.hover-tdu-hc:hover {
  text-decoration: underline;
}
The spice must flow!
tds-hc
Text Decoration Strike
.tds-hc {
  text-decoration: line-through;
}
The spice must flow!
hover-tds-hc
Text Decoration Strike
.hover-tds-hc:hover {
  text-decoration: line-through;
}
The spice must flow!
tdo-hc
Text Decoration Overline
.tdo-hc {
  text-decoration: overline;
}
The spice must flow!
hover-tdo-hc
Text Decoration Overline
.hover-tdo-hc:hover {
  text-decoration: overline;
}
The spice must flow!
Text Tranform
ttn-hc
Text Tranform None
.ttn-hc {
  text-transform: none;
}
The spice must flow!
ttu-hc
Text Tranform Uppercase
.ttu-hc {
  text-transform: uppercase;
}
The spice must flow!
ttl-hc
Text Tranform Lowercase
.ttl-hc {
  text-transform: lowercase;
}
The spice must flow!
ttc-hc
Text Tranform Capitalize
.ttc-hc {
  text-transform: capitalize;
}
The spice must flow!
Tracking / Letter Spacing
tracked*
tracked-hc
.tracked-hc {
  letter-spacing: var(--ls);
}
The spice must flow!
tracked-tight-hc
.tracked-tight-hc {
  letter-spacing: var(--ls-tight);
}
The spice must flow!
tracked-mega-hc
.tracked-mega-hc {
  letter-spacing: var(--ls-mega);
}
The spice must flow!
tracked-none-hc
.tracked-none-hc {
  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-hc
Vertical Align Baseline
.va-baseline-hc {
  vertical-align: baseline;
}
The spice must flow!
va-middle-hc
Vertical Align Middle
.va-middle-hc {
  vertical-align: middle;
}
The spice must flow!
va-top-hc
Vertical Align Top
.va-top-hc {
  vertical-align: top;
}
The spice must flow!
va-bottom-hc
Vertical Align Bottom
.va-bottom-hc {
  vertical-align: bottom;
}
The spice must flow!
White Space
ws-normal-hc
White Space Normal
.ws-normal-hc {
  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-hc
White Space No Wrap
.ws-nowrap-hc {
  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-hc
White Space Pre
.ws-pre-hc {
  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.