Skip to content
This repository has been archived by the owner on Jun 3, 2019. It is now read-only.

Internal Styles #518

Open
sergiokopplin opened this issue Oct 6, 2017 · 1 comment
Open

Internal Styles #518

sergiokopplin opened this issue Oct 6, 2017 · 1 comment
Labels

Comments

@sergiokopplin
Copy link
Collaborator

sergiokopplin commented Oct 6, 2017

Is there a way to use Internal CSS? I din't find any info from docs or from issues.
My first try was looking into assets.json, but we have just js there.
Important, i'm not using styled components.
cc @oyeanuj.


e.g.

<head>
...
<style>
.hashClass { border: 1px solid #ccc; }
</style
...
</head>
```.
@mschipperheyn
Copy link

You can use e.g. css-loader to import a global styles class

`import './global.css'

and then include "per class" css files to implement local styles

`import styles as './myComponent.css''

There is also the option to use jss-in-css or styled components

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants