- From: Pavel Laptev via GitHub <sysbot+gh@w3.org>
- Date: Wed, 19 Jul 2023 00:24:34 +0000
- To: public-design-tokens-log@w3.org
@lukasoppermann is there a problem, just to add your own type? I mean DTCG standardizes types but not restrict them.
I actually have the same issue with my Figma plugin — I have a few custom types like `grid` and `blur`. Because we don't have a standard for them yet, I just wrote my own.
```
/**
* Grid token propoasal
*/
interface GridTokenI extends GenericTokenI {
$type: "grid";
$value: {
columnCount?: number;
columnGap?: DimensionStringType;
columnWidth?: DimensionStringType;
columnMargin?: DimensionStringType;
rowCount?: number;
rowGap?: DimensionStringType;
rowHeight?: DimensionStringType;
rowMargin?: DimensionStringType;
};
}
/**
* Blur token propoasal
*/
interface BlurTokenI extends GenericTokenI {
$type: "blur";
$value: {
role: "layer" | "background";
blur: DimensionStringType;
};
}
```
--
GitHub Notification of comment by PavelLaptev
Please view or discuss this issue at https://github.com/design-tokens/community-group/issues/223#issuecomment-1641193958 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 19 July 2023 00:24:35 UTC