Theemo / @theemo/figma / getNameFromStyle
Function: getNameFromStyle()
ts
function getNameFromStyle(style): string;
Defined in: packages/figma/src/defaults.ts:63
Default implementation for `getNameFromStyle()`
Does the following things:
- replaces
/
with.
- removes a
.
when it is a prefix - turns string into lower case
Parameters
Parameter | Type | Description |
---|---|---|
style | Style | Figma Style |
Returns
string
normalized name