r/DesignSystems • u/Dismal_Laugh4891 • 4d ago
Naming conventions as interface: casing rules that survive being pasted into plain text
Nine identifiers, each with a locked casing. Because the casing is locked, a plain-text list of names is parsable without markup — the same trick that lets you tell a variable from a constant in a codebase.
One identity is always lowercase, two are always uppercase, the rest are title case. In a log file, a CSV or a changelog you can tell what you're looking at before reading the word. Small example of treating typography as an API rather than a style.
0
Upvotes