jsxstyle
Radium
Our great sponsors
jsxstyle | Radium | |
---|---|---|
1 | 3 | |
2,106 | 7,432 | |
0.5% | - | |
7.6 | 0.7 | |
6 months ago | about 2 years ago | |
TypeScript | JavaScript | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
jsxstyle
-
Panda CSS: build time and type-safe CSS-in-JS
Works in both React and Preact. It's designed to support generating styles at build time, but I've never bothered. For the sorts of things I work on, being able to quickly bang out a component is more important than golfing the bundle size or maintaining a design system.
jsxstyle feels like I can sculpt in code. It's really satisfying to hammer out some props and see a component come to life, especially when you've got hot module replacement working.
Based on a quick perusal of linked page, Panda seems like perhaps a more mature version of jsxstyle, but also more fidgety. As an army of one, I'm happy to optimize for iteration speed, but if I needed to maintain a system, maybe I'd consider switching to Panda.
https://www.npmjs.com/package/jsxstyle
Radium
-
Object spread vs. Object.assign
options = Object.assign({}, optionsDefault, options); This is the commit that made me wonder.
-
The React roadmap for beginners you never knew you needed.
Radium
-
Tagged Template Literals - The Magic Behind Styled Components
If you have some experience with React, you probably came across styled-components. In the last few years, the concept of css-in-js became more popular, and there are multiple libraries that are available for us to use. styled-components is one of them, but you can also find Emotion, Radium, JSS, and more. In this post I'm not going to cover the pros and cons of traditional stylesheet files vs. styled-components, and instead - I'm going to focus on tagged template literals - the "magic" that let us use the styled-components syntax.
What are some alternatives?
CSSX - CSS in JavaScript
styled-components - Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress 💅
Aphrodite - Framework-agnostic CSS-in-JS with support for server-side rendering, browser prefixing, and minimum CSS generation
classnames - A simple javascript utility for conditionally joining classNames together
glamor - inline css for react et al
React CSS Modules - Seamless mapping of class names to CSS modules inside of React components.
React Figma - ⚛️ A React renderer for Figma
inline-style-prefixer - Autoprefixer for JavaScript style objects
ReactCSS - :lipstick: Inline Styles in JS
emotion - 👩🎤 CSS-in-JS library designed for high performance style composition