(property: string, value: CSSValue)
| 54 | isVariable && !family.endsWith(' Variable') ? `${family} Variable` : family; |
| 55 | |
| 56 | const renderDeclaration = (property: string, value: CSSValue): string => { |
| 57 | if (!Array.isArray(value)) { |
| 58 | return `${declarationIndent}${property}: ${value};`; |
| 59 | } |
| 60 | |
| 61 | const continuationIndent = ' '.repeat( |
| 62 | `${declarationIndent + property}: `.length, |
| 63 | ); |
| 64 | |
| 65 | return `${declarationIndent}${property}: ${value.join(`,\n${continuationIndent}`)};`; |
| 66 | }; |
| 67 | |
| 68 | const renderFontFace = ( |
| 69 | face: FontFace, |