Standard lib for styles in JS
See original GitHub issueHi! I’m porting over “'widgets” on our websites from PHP/SASS to to React using styled-components
. In doing this, I’ve been looking for JS-friendly replacements for:
From my own research, I’ve found that:
color
works great for color manipulation.grid-styled
is a fairly new answer for grids.- …not much else.
Personally, I’ve used both Bootstrap and Bulma (my current favorite!) for styling React components.
But, what I suppose I was looking for were recommendations on what libs in the ecosystem would work well with styled-components
to fill in the holes that CSS doesn’t cover (but Bourbon & Compass do). That is, until this project deems it appropriate to own that functionality…
Issue Analytics
- State:
- Created 7 years ago
- Reactions:4
- Comments:28 (22 by maintainers)
Top Results From Across the Web
JavaScript Standard Style
Adopting standard style means ranking the importance of code clarity and community conventions higher than personal style. This might not make sense for...
Read more >Google JavaScript Style Guide
1 Introduction. This document serves as the complete definition of Google's coding standards for source code in the JavaScript programming language.
Read more >9 CSS in JS Libraries you should Know in 2019
Discover how to use CSS IN Javascript to style your React or other components with the best libraries: Styled components, Glamorous, Radium, Fela, ......
Read more >Style Libraries | JavaScript Stuff
The most common type of style library is a CSS processor. These take as input a language similar to CSS but with more...
Read more >7 Best CSS-in-JS Libraries for Front-End Developers
6. Styletron ... Styletron is a framework-agnostic CSS-in-JS library that lets you define CSS styles using JavaScript objects. You can use Styletron together...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here is an initial list that I think gets us to a good starting spot. I’ve filtered out any mixins that are purely for adding prefixes only. Also filtered out anything that is reliant on asset pipline functionality (like sprite generation) or helpers that are easily recreated in JS (that don’t have some underlying formula) This includes things like guards, loops, etc. Open to discussion on any of these, or if there are suggestions for any that might be missing:
Mixins
Shorthand
Utils
RGB
HSL
Opacity
Misc Color
Dang, so is polished!
:trollface: