docs: add ADR 0015 — Figma component property naming convention - #5347
Merged
Conversation
eddiman
requested review from
Chibuzor-Nwemambu,
millus and
pomfrida
as code owners
August 19, 2026 10:24
3 tasks
alexlvrs
approved these changes
Aug 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds ADR 0015 — Name Figma component properties by one internally consistent convention.
Numbered 0015 to stay clear of the ADR PRs already open: #5199 (0010), #5195 (0011), #5196 (0012), #5200 (0013), #5178 (0014).
Why
An audit of the whole EDS Core Components Figma library — 51 components, 210 properties — found 31% failing at least one mechanical rule:
Variant,Variants,Style,Type,Emphasis). Button carried two at once.Typemeant something different on all seven components using it.Text area, including on Search and Select.This matters because the library is increasingly read by machines — Code Connect, the Figma MCP server, codegen, AI tooling. Inconsistent names mean every consumer guesses and the mapping gets re-invented per component.
How
Title Case names plus one deterministic transform. Names and values are Title Case with single spaces; a single rule derives the code identifier — collapse the spaces, camelCase.
Leading Icon→leadingIcon,High Contrast→highContrast.Two framing points the ADR is explicit about:
The decision covers ten rules — casing and the transform, the five property types, decorator glyphs, uniqueness of derived identifiers, one canonical name per concept, value order as a functional property, mapping/Figma-only classification, not advertising unreachable states, the
#idsuffix, and property order as guidance only — plus a canonical glossary, the constraints Figma imposes, and how it gets enforced.Two of the rules catch real defects, not style
Leading Icon+Has Leading Icon, neverLeading Icon+Leading Icon.CheckedandIndeterminateas independent booleans, advertising 32 combinations while implementing 24. It becameSelection: Unchecked / Checked / Indeterminate.Status
Applied to the library on a Figma branch already: 31% → 2 of 191 properties, and both remaining cases are deliberate Figma-only axes with no identifier to derive.
Relates to #4974