Skip to main content

@yummacss/cdn

Generate CSS in the browser, with no build step.

Usage

index.html
<!doctype html><html>  <head>    <script src="https://unpkg.com/@yummacss/cdn"></script>  </head>  <body>    <div class="c:indigo fw:500">Hello World</div>  </body></html>

There is nothing else to set up. No config file, no marker in a stylesheet, no install step.

When To Use It

You can use this for a single HTML file, a CodePen, or anything static where a build pipeline would be more trouble than it is worth, or if you just want to try things out, create quick design prototypes and test new ideas.

Renamed From Runtime

This package was @yummacss/runtime, which is gone from npm. A script tag pointing at the old name 404s, so change it to @yummacss/cdn.