- From: Nico André via GitHub <sysbot+gh@w3.org>
- Date: Mon, 26 Aug 2024 16:11:42 +0000
- To: public-design-tokens-log@w3.org
> I wouldn't restrict the proposed Array types to 1, 2, 3, 4 items for borders/dimensions Agreed! Maybe we can have: - Plural: `Dimension` -> `Dimensions` The plural gives a simple rule and an intel on the array-based value. ```ts type Dimensions = Array<Dimension> type Borders = Array<Border> ... ``` - Usage: `Paddings`, `Margins`... Usage-based tokens would convey more context to speed up the UI integration and code generation. Yet it's definitely more challenging to land on specs that would fit most, if not all, the platforms. Probably discussions for later versions of the spec. ```ts type Paddings = [Dimension] | [Dimension, Dimension] … type SquareBorders = [Border] | [Border, Border] … ``` -- GitHub Notification of comment by nclsndr Please view or discuss this issue at https://github.com/design-tokens/community-group/issues/239#issuecomment-2310570635 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 26 August 2024 16:11:43 UTC