mattdesl / mattdesl/dom-css

css string support

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

Description

Hi @mattdesl!
I’ve noticed that sometimes it is useful to pass css string directly instead of css object:

``` js
css(el, `
font-size: 12px;
font-family: ${fontFamily};
...
`);
```

Because it alows for avoiding css-in-js notation, which is copy-paste compatible and in other ways handy.

Is there any sense to add **css.set(element, string)** clause?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the public css API and comparing the proposed css.set(element, string) entry point with the existing css(element, object) usage shown in the issue. Define the expected string-input behavior and verify the example’s result before considering the request complete.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 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.