import StyleDictionary from "style-dictionary"; StyleDictionary.registerTransform({ name: "attribute/font", type: "attribute", matcher: (token) => token.attributes.category === "asset" && token.attributes.type === "font", transformer(token) { const [ category, type, family, weight, style, ] = token.path; return { category, type, family, weight, style, }; }, });