diff --git a/.changeset/fair-bees-smoke.md b/.changeset/fair-bees-smoke.md new file mode 100644 index 0000000..d46f7be --- /dev/null +++ b/.changeset/fair-bees-smoke.md @@ -0,0 +1,5 @@ +--- +'@tokens-studio/sd-transforms': patch +--- + +Add hairline and ultra to fontWeightsMap, reflect to 1 and 1000 respectively. diff --git a/src/transformFontWeights.ts b/src/transformFontWeights.ts index f3c76dc..7410f14 100644 --- a/src/transformFontWeights.ts +++ b/src/transformFontWeights.ts @@ -1,4 +1,5 @@ export const fontWeightMap = { + hairline: 1, thin: 100, extralight: 200, ultralight: 200, @@ -23,6 +24,7 @@ export const fontWeightMap = { heavy: 900, super: 900, extrafett: 900, + ultra: 1000, }; export const fontWeightReg = /(?.+?)\s?(?