hupe1980 / gatsby-plugin-material-ui

Gatsby plugin for Material-UI with built-in server-side rendering support
MIT License
136 stars 25 forks source link

Material-UI v3 and Styled Components? Can they play nicely together when using this plugin? #22

Closed dante-blitz closed 5 years ago

dante-blitz commented 5 years ago

Hi there,

I would like to use Material UI v3 with Styled Components. I have read this package's issues and readme and am not too clear if it can be achieved with the plugin. Can you please provide some clarity.

If it can be achieved is it possible to also provide a detailed example.

Many thanks in advance.

oliviertassinari commented 5 years ago

@dante-blitz It definitely works with v4. Do you really need to rely on v3?

dante-blitz commented 5 years ago

I'm reluctant to use v4 on an important client project as its still in alpha. My plan is to use v3 for the time being and upgrade once a stable v4 release is available.

oliviertassinari commented 5 years ago

@dante-blitz We are in v4.0.0-beta.1 now. v4 stable will land May 23rd.

dante-blitz commented 5 years ago

Ill give v4 a chance from now then. Can you please provide detail to get both working.

Is it simply a case of setting up gatsby-config as specified in the readme? are any other steps required?

oliviertassinari commented 5 years ago

Nothing more is needed.

dante-blitz commented 5 years ago

Excellent. I'll give it a try. Thanks for your help.