Skip to content

Constants and subtypes

constants

The names of subtypes of measurement types are completely inconsistent. They can easily be standardized, reducing the need to open the file of constants to make sure i am using the right one. The first column below are my proposed subtypes. The other columns are the names of subtypes, each column being a type.

type➜septhickgapcornerfontsizeheightwidthfwem
micromicro
faintfaintdetailscredit
tinynrmaltightbannerlabeltracking
smallbigmildsmallbuildcontrolsvgdetailssmall
normalhugenormaldefaultmainbasecontrolcontrolwindownormallaunch
bigboldbannerhamburgerhideablecontentbannerbig
fatfatfatlargebuttonbannermodal
hugehugehugetitle

the ladder — built 2026, August 8

The table above is history now. Every type below uses the same words, and the styling names match: --font-tiny, --gap-tiny, --thick-small.

type➜thickgapcornerfontsizeheightwidthfwem
micro1.3
faint0.561.948.75
tiny3.891010.42.1950.03
small0.784.3211.6711.719.6917.072451.4
normal1.117.7817.51321.8821.883005502
big1.679.721424.528.443506508
fat2.2216.3317.52842605.5
huge7.7838.8924.5750

gap and thickness and size

can they have non-overlapping ranges? size of interleaving lines

proposal

rewrite -> summary of the code One set of eight subtypes — micro, faint, tiny, small, normal, big, fat, huge — and every type uses those words and no others. A step a type has no use for simply does not exist there; nothing is invented to fill a gap. Then reaching for a size is one decision, not two: pick the type, pick the subtype, and never open the file to check what this type happens to call its middle.

What it changes. Only names. Every number stays exactly what it is, so nothing on screen moves. It is one pass over the constants and one over everything that reads them.

What it buys. --font-label and --gap-tight become --font-tiny and --gap-tiny, and the two read as the same step of two different ladders — which is what they are. Today nothing says so.

Combined. separator and thickness are both thicknesses of a line. The two collapse into one type -> thickness. The ladder, however does not get shorter.

Some names carry a why, not a size — launchbannertitle. Renaming them to steps loses that, so each wants its note kept in a comment: normal, // the setting-up words.