andreypopp / andreypopp/styling

Question: can Styling be full CSS replacement?

Aberta
#9 3 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
JavaScript
Estrelas
130
Forks
4
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

I really love idea of Styling and how easy it could be integrated into the project, but from the docs and current state looks like it only suitable for providing additional styles for the web components.

But what if I need an ability to describe all my styles via Styling? Yes, still using some normalization library like `normalize.css`, but no other CSS Frameworks, like Bootstrap, Foundation and others. Is it possible?

---

In theory I'm thinking that my `app.js` could have something like,

``` javascript
import "normalize.css/normalize.css";
import "./styles/Global";

...
```

when `./styles/Global.js` contains,

``` javascript
import styling, {tagStyling} from "styling";

const html = styling({
backgroundColor: "#eee"
});

export default tagStyling({
html
});
```

Does it make sense? Or maybe there is other solution for my needs?

---

ps. I've seen [JSS](https://github.com/jsstyles/jss) initiative, but have feeling that Styling fits my needs much better than JSS

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.