MCPcopy Index your code
hub / github.com/bernaferrari/FigmaToCode / getFeatureTag

Function getFeatureTag

packages/backend/src/tailwind/tailwindMain.ts:144–148  ·  view source on GitHub ↗
(features: Record<string, boolean>)

Source from the content-addressed store, hash-verified

142 layoutBuilder.addAttributes(segment.style);
143
144 const getFeatureTag = (features: Record<string, boolean>): string => {
145 if (features.SUBS === true) return "sub";
146 if (features.SUPS === true) return "sup";
147 return "";
148 };
149
150 const additionalTag = getFeatureTag(segment.openTypeFeatures);
151 content = additionalTag

Callers 1

tailwindTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected