@meetdomaine/tailwind-syrah
Advanced tools
Comparing version 1.0.20 to 1.0.21
{ | ||
"name": "@meetdomaine/tailwind-syrah", | ||
"version": "1.0.20", | ||
"version": "1.0.21", | ||
"description": "A TailwindCSS plugin for Domaine", | ||
@@ -5,0 +5,0 @@ "main": "src/index.ts", |
@@ -37,4 +37,6 @@ import set from "lodash/set"; | ||
export const getFontFamilyVariable = (fontFamily: FontFamilyKey): string => | ||
`var(--font-family-${kebabCase(fontFamily)})`; | ||
export const getFontFamilyVariable = ( | ||
fontFamily: FontFamilyKey, | ||
defaultValue: string = "system-ui" | ||
): string => `var(--font-family-${kebabCase(fontFamily)}, "${defaultValue}")`; | ||
@@ -62,3 +64,5 @@ export const getFontFamilyFromMapping = ( | ||
return asVariable ? getFontFamilyVariable(currentValue) : currentValue; | ||
return asVariable | ||
? getFontFamilyVariable(currentValue, manifestFontFamily) | ||
: currentValue; | ||
}; | ||
@@ -65,0 +69,0 @@ |
39170
19
1256