Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix theme(fontFamily.*) output when family contains fontFeatureSettings config #9217

Merged
merged 1 commit into from Aug 30, 2022

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.

None yet

1 participant