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

Add option to override path to colors in config. #4

Merged
merged 2 commits into from
Jul 7, 2020

Conversation

dsturm
Copy link
Sponsor Contributor

@dsturm dsturm commented Jul 7, 2020

To be able to declare colors independently of the Tailwind´s overall colors and specific for the WordPress Block Editor, this PR adds an option to specify the path in the tailwind config object, with the theme key as root.

For example you can declare the palettes´ colors in:

module.exports = {
  theme: {
    palette: {
      colors: {
        indigo: '#667eea',
      }
    }
  }
}

and set the option to:

{
  /* ... */
  tailwind: {
    config: './tailwind.config.js',
    shades: false,
    path: 'palette.colors'
  }
  /* ... */
}

@Log1x Log1x merged commit a7e142e into roots:master Jul 7, 2020
@Log1x
Copy link
Sponsor Member

Log1x commented Jul 7, 2020

Awesome! Thanks man

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

2 participants