Skip to content

Lazily evaluate values in the extend section #775

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

Merged
merged 1 commit into from
Mar 18, 2019

Conversation

CvX
Copy link
Contributor

@CvX CvX commented Mar 17, 2019

In a way this combines PRs #655 and #774. I've stumbled upon this use case when trying out the 1.0 beta:

module.exports = {
  theme: {
    colors: {
      red: 'red',
      green: 'green',
      blue: 'blue',
    },
    extend: {
      borderColor: theme => ({
        default: theme('colors.red'),
      }),
    },
  },
};

With 1.0.0-beta.2 you have to choose between using the extend section and having lazy evaluated value.

@adamwathan
Copy link
Member

Ah good catch, thanks!

@adamwathan adamwathan merged commit a4e896e into tailwindlabs:next Mar 18, 2019
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