question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RFC: CSS in JS with fela

See original GitHub issue

Motivation: this comment

We’ve considered CSS in JS for a long time. We have our hands tied right now when it comes to CSS. We cannot create new components (e.g. DateTime) as we cannot create new styles. We also cannot fix CSS issues when they arise.

CSS in JS also offers us a solution to far better theming capabilities than CSS preprocessors. If done well we could, in fact, compile down to CSS, LESS, and SCSS if users would like to still use those flavors.

I’ve been researching and prototyping around this issue for a couple years now. I’ve held off due to lack of stability and maturity in the CSS in JS community, which I’m mostly now satisfied with. I am also finally in a position where I need a CSS in JS framework for business purposes. I wish I could have used SUIR for this new task, however, due to the lack of CSS in JS, I cannot.

Help!

This leaves me with two choices, port SUIR to CSS in JS and use it or write a new framework using all the utils and patterns from SUIR.

Pinging @Semantic-Org/react-admins, @Semantic-Org/react-maintainers, and @Semantic-Org/react-collaborators. If I were to kick off a css-in-js branch, would this be something you would want to contribute to?

I know the community would love to have this as well.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:7
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
fracmakcommented, Apr 17, 2018

It’ll be very useful if you could document how the class names are changing to help build a migration guide to ease anyone like me who’ve written override styles occasionally when it’s needed.

0reactions
layershiftercommented, Jun 25, 2018

Closing this issue for housekeeping 🏠

See stardust for CSS in JS: https://github.com/stardust-ui/stardust

Read more comments on GitHub >

github_iconTop Results From Across the Web

Advanced / Global & Third-Party Styles - Fela
Global & Third-Party Styles. It is a common technique to start the whole styling process by adding some global styles such as CSS...
Read more >
Fluent UI - HackMD
CSS-in-JS means styles are added to the DOM using sheet.insertRule API on their first use. Atomic means that for every unique [CSS property;value]...
Read more >
Cascading Style Sheets (CSS) Requirements for RFCs
This document describes the requirements for the default CSS used by the RFC Editor. The class names are based on the classes defined...
Read more >
Projects | Eyelidlessness
Created and open sourced at Reup to optimize redundant CSS rules as a simple DSL ... A ClojureScript wrapper for rrule.js, with common...
Read more >
what do numbers in react query devtools mean - You.com | The ...
I have a react.js app that I want to profile for performance issues. ... End-users find themselves with two CSS-in-JS libraries in their...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found