Including custom css in Plugin


#1

I’m building a plugin following this tutorial:
https://docs.reactioncommerce.com/reaction-docs/master/creating-a-plugin

In that plugin I want to include some css files, but I don’t know where to place them.

Any ideas?

Thanks in advance.


#2

The styles are generally kept in a separate theme (take a look at imports/plugins/included/default-theme).

You can also place the css files within the same plugin also, just import them in client/index.js file of your plugin.

Checkout the guide here to get some idea:
https://docs.reactioncommerce.com/reaction-docs/master/creating-a-theme


#3

Check out the best CSS books & tutorials for adding CSS in your plugin.