chenglou / chenglou/RCSS

Support un-'px'ed styles

Open
#30 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
284
Forks
17
PR merge metrics
No merged PRs in 30d

Description

We should support the same CSS style objects as React. For example, we should allow for `{ width: 10}` to be a valid style object.

In general, why don't we utilize `CSSPropertyOperations.createMarkupForStyles` to generate a string of CSS? We could call it after checking for pseudo-selectors and media queries, and performing whatever pre-processing we want to support. I've already implemented this and can merge it in, if you agree.

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no files or tests; start by locating the style-object serialization entry point and compare its handling with React's CSSPropertyOperations.createMarkupForStyles. Done means numeric values such as { width: 10 } serialize as valid CSS while pseudo-selectors, media queries, and existing preprocessing continue to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, javascript, react
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.