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

Lazily evaluate values in the extend section #775

Merged
merged 1 commit into from Mar 18, 2019

Conversation

Projects
None yet
2 participants
@CvX
Copy link
Contributor

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.

Lazily evaluate values in the extend section
In a way this combines PRs #655 and #774.
@adamwathan

This comment has been minimized.

Copy link
Member

commented Mar 18, 2019

Ah good catch, thanks!

@adamwathan adamwathan merged commit a4e896e into tailwindcss:next Mar 18, 2019

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.