Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/drwpow/sc-test
Styled Components 3.2 example repo
https://github.com/drwpow/sc-test
Last synced: 9 days ago
JSON representation
Styled Components 3.2 example repo
- Host: GitHub
- URL: https://github.com/drwpow/sc-test
- Owner: drwpow
- Created: 2018-03-13T17:42:11.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-13T19:12:40.000Z (almost 7 years ago)
- Last Synced: 2024-10-15T00:40:13.363Z (2 months ago)
- Language: JavaScript
- Size: 75.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Styled Components test
When using variables in Styled Components, they’re stripped out in the build.
See https://github.com/styled-components/styled-components/issues/1607.
## Reproduction
1. Navigate to [App.js](https://github.com/dangodev/sc-test/blob/master/src/App.js#L6) to see the styled component setup.
2. Run `yarn build`
3. Inspect the built JS file to find `background-color: ",";\n color: ","` rather than the expected values.