We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c96b0d commit 5d5b716Copy full SHA for 5d5b716
packages/backend/src/tailwind/tailwindTextBuilder.ts
@@ -36,6 +36,7 @@ export class TailwindTextBuilder extends TailwindDefaultBuilder {
36
color,
37
this.fontSize(segment.fontSize),
38
this.fontWeight(segment.fontWeight),
39
+ this.fontFamily(segment.fontName),
40
textDecoration,
41
textTransform,
42
lineHeightStyle,
@@ -95,10 +96,9 @@ export class TailwindTextBuilder extends TailwindDefaultBuilder {
95
96
return `pl-${Math.round(indentation)}`;
97
};
98
- // todo fontFamily
99
- // fontFamily(node: TextNode): this {
100
- // return this;
101
- // }
+ fontFamily = (fontName: FontName): string => {
+ return "font-['" + fontName.family + "']";
+ };
102
103
/**
104
* https://tailwindcss.com/docs/font-size/
0 commit comments