Skip to content

Conversation

@adamwathan
Copy link
Member

This PR fixes an issue where theme('fontSize.xl') and similar would no longer work as expected after introducing a default line-height into your config.

It fixes it by adding support for theme-key-specific "transforms" when resolving the theme value. Unfortunately this means only core plugins get to benefit from this flexibility. We can likely add a plugin API in the future that lets plugin authors register their own transform function here though.

@adamwathan adamwathan merged commit 037416a into master Aug 7, 2020
@adamwathan adamwathan deleted the fix-font-size-theme-bug branch August 7, 2020 18:40
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