lvarayut / relay-fullstack

:point_up::running: Modern Relay Starter Kit - Integrated with Relay, GraphQL, Express, ES6/ES7, JSX, Webpack, Babel, Material Design Lite, and PostCSS
https://lvarayut.github.io/relay-fullstack/
MIT License
986 stars 126 forks source link

Loading custom css for external libraries #35

Closed rohit-ravikoti closed 8 years ago

rohit-ravikoti commented 8 years ago

Hi! This starter kit has been tremendously helpful in helping me get started. Just wanted to say thanks!

I was wondering how I would be able to include custom css files to override those provided by an external library (like auth0-lock). It looks like how stylesheets are currently loaded are through local scoping. Is there anything in place for global scoping?

Thanks!

lvarayut commented 8 years ago

Hi @rohit-ravikoti! I'm very glad that this project's helpful to you. We're using css-modules to handle our css files, which are local scope by default. You can use :global keyword to switch to global scope, please take a look at the example on the Exceptions for more details.

rohit-ravikoti commented 8 years ago

got it! Thanks!