buttered

A less than 1KB css-in-js solution

Usage no npm install needed!

<script type="module">
  import buttered from 'https://cdn.skypack.dev/buttered';
</script>

README

Buttered

An opinionated fork of Goober.

Thanks to Cristian for his great work! 🙏

Install

yarn add buttered

Features

  • Set up for React
  • Built-in Autoprefixer
  • Automatic ref forwarding
  • A familiar API

About

Goober is the greatest thing that happened to CSS-in-JS in years (imo) but the repetitive setup is a bit cumbersome. Thats where Buttered comes into play. Buttered is already set up with the options that most React developers want.

API

The API is exactly like Goober's, but you don't have to call the setup function.