@@ -100,8 +100,9 @@ export class TailwindTextBuilder extends TailwindDefaultBuilder {
100100 if ( config . fontFamily . mono . includes ( fontName . family ) ) {
101101 return "font-mono" ;
102102 }
103+ const underscoreFontName = fontName . family . replace ( / \s / g, "_" ) ;
103104
104- return "font-['" + fontName . family + "']" ;
105+ return "font-['" + underscoreFontName + "']" ;
105106 } ;
106107
107108 /**
@@ -241,8 +242,7 @@ export class TailwindTextBuilder extends TailwindDefaultBuilder {
241242 if ( this . node && ( this . node as TextNode ) . effects ) {
242243 const effects = ( this . node as TextNode ) . effects ;
243244 const blurEffect = effects . find (
244- ( effect ) =>
245- effect . type === "LAYER_BLUR" && effect . visible !== false ,
245+ ( effect ) => effect . type === "LAYER_BLUR" && effect . visible !== false ,
246246 ) ;
247247 if ( blurEffect && blurEffect . radius && blurEffect . radius > 0 ) {
248248 const blurSuffix = pxToBlur ( blurEffect . radius ) ;
@@ -266,8 +266,7 @@ export class TailwindTextBuilder extends TailwindDefaultBuilder {
266266 if ( this . node && ( this . node as TextNode ) . effects ) {
267267 const effects = ( this . node as TextNode ) . effects ;
268268 const dropShadow = effects . find (
269- ( effect ) =>
270- effect . type === "DROP_SHADOW" && effect . visible !== false ,
269+ ( effect ) => effect . type === "DROP_SHADOW" && effect . visible !== false ,
271270 ) ;
272271 if ( dropShadow ) {
273272 const ds = dropShadow as DropShadowEffect ;
0 commit comments