textAlignVertical
Where text sits within the height available to it.
Path
…elements.<element>.styles.textAlignVertical
Elements Supported
Value
"TOP"(default) — Text sits at the top of the height available to it."CENTER"— Text centres within the height available to it."BOTTOM"— Text sits at the bottom of the height available to it.
Platform bindings
Figma
Disposition: bound · Realised by: node.textAlignVertical
Passed through unchanged. The schema types this as an open string, and Figma’s own values match, so the identity mapping loses nothing. Text nodes only.
CSS
Disposition: unsupported · Realised by: —
Not emitted for an element’s styles. The key is absent from the style pipeline entirely, so a plain element carrying it produces nothing. The separate contentStyles member of the same name IS handled for a text primitive filling a slot, and only where that slot admits no components — two different members with one name, and only one of them is realised.
Decisions
- ADR-064 — Tighten
textAlignHorizontalto a Logical-Direction String Enum - ADR-113 — Style defaults belong to the schema
- ADR-115 — Closed Style Value Sets
Rules
| Rule | Statement |
|---|---|
| DSPEC-44 | Every property of Styles declares a default, and its value validates against that property’s own schema |
| DSPEC-45 | A declared default is a literal, never a TokenReference, PropBinding or Conditional |
Source
| Format | File |
|---|---|
| JSON Schema | packages/schema/schema/styles.schema.json |
| TypeScript | packages/schema/types/Styles.ts |
| Specification | §4.1a, §11 |