News for hackers. Stuff that matters.
Re:Show HN: Polished – A lightweight toolset for writing sty... by gibbitz on Tuesday March 28, 2017 @11:10AM (#13977201)
I found that the killer application for Javascript would be to write github repos for Javascript wrappers for typescript. Seriously, why is CSS as Javascript objects a thing? Are we so bored with the stack we've been using that we can only make things interesting by cross compiling everything? It makes me think of this video: https://www.destroyallsoftware.com/talks/the-birth-and-death...
Re:Show HN: Polished – A lightweight toolset for writing sty... by mxstbr on Tuesday March 28, 2017 @11:13AM (#13977243)
That's exactly why we made styled-components![0]

I really dislike writing styles as JavaScript objects, so styled-components let's you write actual CSS in JavaScript. We have also added support for a bunch of editors, so you don't miss out on syntax highlighting just because of that.

I'd encourage you to check it out!

[0]: https://www.styled-components.com

Re:Show HN: Polished – A lightweight toolset for writing sty... by pygy_ on Tuesday March 28, 2017 @11:52AM (#13977635)
I just discovered http://typestyle.io/ which should make it much easier to write CSS in JS... Auto-completion everywhere...

I'll probably steal the approach for my own CSS-in-JS lib (j2c).

Re:Show HN: Polished – A lightweight toolset for writing sty... by roboguy12 on Tuesday March 28, 2017 @01:28PM (#13978613)
+1 for typestyle. My team and I have been using it for the past few weeks in trying to clean up a rather monolithic css project, and it's been really cool to work with.