benoitvallon / react-native-nw-react-calculator

Mobile, desktop and website Apps with the same code
MIT License
5.21k stars 863 forks source link

Make general css #18

Open anorudes opened 8 years ago

anorudes commented 8 years ago

Hello, benoitvallon, it's a very nice example :+1: But i think that you may make general css for components. You may delete "styles/main.css" and transfer all styles from "main.css" to component. https://github.com/gajus/react-css-modules - a good library for this idea. Will it have a problem with this task? )

benoitvallon commented 8 years ago

At the beginning of the project I wanted just to focus on tools around react/react-native so that's why I stayed very classical with choices for css. As people seem to be interested in more complex tools as well in the project I think this is a great suggestion.

If you want to add it to the project, fell free to submit a PR.

Vadorequest commented 7 years ago

I'd rather recommend https://github.com/cssinjs/jss

It is clean and really effective. Supports media queries and basically everything CSS does.