Skip to content

strokeWeight

How thick the stroke is.

Path

…elements.<element>.styles.strokeWeight

Elements Supported

component · container · ellipse · line · polygon · rectangle · slot · star · vector

Value

TokenReference

A design token, written as a $token path plus a $type, as in { $token: Color/On surface, $type: color }. The consuming platform resolves it to a value.

Sides

Per-side values using logical inline-axis directions (start/end). Used for padding and strokeWeight when sides differ.

top: 0
end: 0
bottom: 1
start: 0

number (default: 0)

null

Themes

A TokenReference written here resolves under the theme in force on this element — the one it selects in themes, or the nearest ancestor’s. The same token path yields a different value under a different theme.

Platform bindings

Figma

Disposition: bound · Realised by: node.strokeWeight

A number sets the weight; a token also binds the variable to all four per-side fields; a per-side object expands to Figma’s physical stroke-weight properties.

CSS

Disposition: bound · Realised by: rule strokeRendering

Resolved jointly with

This key does not map on its own. Its rule’s ordered case table is linked above.

strokeRendering — CSS

Decisions

  • ADR-010 — Sides and Corners Composite Types
  • ADR-113 — Style defaults belong to the schema

Rules

RuleStatement
DSPEC-44Every property of Styles declares a default, and its value validates against that property’s own schema
DSPEC-45A declared default is a literal, never a TokenReference, PropBinding or Conditional
DSPEC-47Jointly resolved keys are stated as an ordered case table over a declared operand set, not as prose

Source

FormatFile
JSON Schemapackages/schema/schema/styles.schema.json
TypeScriptpackages/schema/types/Styles.ts
Specification§4.1a, §11