Brad Cornes

Results 64 comments of Brad Cornes

Hey @musicaljoeker. We have been through and added/updated types for all of our first-party plugins, so everything should be compatible now 👍 However, it's worth noting that your error message...

Are you using the Tailwind v1 config format by any chance?

@mike360 your config is in the Tailwind v1 format. `tailwind.macro@latest` does not support this. I recommend trying out `tailwind.macro@next`, which is detailed here: https://github.com/bradlc/babel-plugin-tailwind-components/releases/tag/v1.0.0-alpha.2

Hey @muhajirframe I think I would prefer to add instructions for Create React App itself. As of [version 2.0, released a few days ago](https://reactjs.org/blog/2018/10/01/create-react-app-v2.html), CRA supports Babel macros out-of-the-box (without...

Have you tried that with Create React App 2.0? I tried yesterday and it worked with this `babel-plugin-macros.config.js`: ```js module.exports = { tailwind: { config: './src/tailwind.js' } } ```

Also it could be cool to add a section to the readme with links to related repos/packages

Hey @nathan3000 I have added support for this on the [`next` branch](https://github.com/bradlc/babel-plugin-tailwind-components/tree/next). The way it works in dev is by importing a utility function. So you end up with something...

@llaski Hey. The code in my previous comment is an example of what the babel plugin outputs. You wouldn’t actually write code like that yourself. Assuming you’re using `tailwind.macro@next` you...

Hey @Shaderpixel and @davecalnan v1 support is very nearly done on the [`next` branch](https://github.com/bradlc/babel-plugin-tailwind-components/tree/next). The main thing left to do is to update the static styles. I will try to...

Still got a bit to do but here's an initial version for anyone wanting to try it out 🎉 https://github.com/bradlc/babel-plugin-tailwind-components/releases/tag/v1.0.0-alpha.2