https://github.com/patrick91/react-css-modules-variables
https://github.com/patrick91/react-css-modules-variables
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/patrick91/react-css-modules-variables
- Owner: patrick91
- Created: 2017-01-05T22:05:46.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-05T22:06:53.000Z (over 9 years ago)
- Last Synced: 2025-03-01T02:22:15.310Z (over 1 year ago)
- Language: JavaScript
- Size: 49.8 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Example using variables with CSS modules and react
Hi! This is how I handled variables in one of my latest side projects.
The global styles are inside `styles/app.css` which are then imported in the app component,
which is the wrapper of the whole app.
Inside `styles` there are other files that store common variables, like colors, fonts, etc.
To see how I use those variables see `article-hero`'s styles. I basically use [ICSS's import/export system](https://github.com/css-modules/icss#specification).