Skip to content

Conversation

@bradlc
Copy link
Contributor

@bradlc bradlc commented Aug 30, 2022

This PR fixes theme(fontFamily.*) output when the font family contains fontFeatureSettings configuration:

/* Example config */
module.exports = {
  theme: {
    fontFamily: {
      sans: ['Inter', { fontFeatureSettings: '"cv11"' }],
    },
  },
}
/* Input */
.example {
  font-family: theme('fontFamily.sans');
}

/* Output before fix */
.example {
  font-family: Inter, [object Object];
}

/* Output after fix */
.example {
  font-family: Inter;
}

@bradlc bradlc merged commit edf47a0 into master Aug 30, 2022
@bradlc bradlc deleted the fix-font-family-theme-function branch August 30, 2022 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants