Theemo / @theemo/figma / getNameFromStyle
Function: getNameFromStyle()
ts
function getNameFromStyle(style): stringDefault 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