Petter Envall


CSS to go

  • css
  • npm
  • web

I recently published an npm package with some CSS in it. It is used for quickly styling a plain HTML document to look somewhat* nice** without applying any CSS at all — only an “activation” class on a desired container element.

The idea is not to have to write any css at all. Just include the file css-to-to.min.css:

    <link rel="stylesheet" href="https://unpkg.com/css-to-go">

(or install it via npm and bundle it with your app), and then do something like this:

<body class="ctg-root">
    ... the document is now looking.. spiffy

This is quite useful when the content itself is generated from markdown or something of that ilk.

The repository and examples are on github, check them out (oh yeah, only the repo can be literally checked out).

* For some values of “somewhat”
** For some values of “nice”