Performance-first styling

Goober - tiny, fast, and just enough CSS-in-JS

A lightweight CSS-in-JS library built for modern developers who care about performance and simplicity. No bloat, no magic-just clean styling that works.

What is Goober?

Goober is a minimal CSS-in-JS solution designed to do one thing well: style your components without slowing you down. With a tiny footprint and straightforward API, it fits seamlessly into modern JavaScript frameworks like React and Preact.

It's built for developers who want control without complexity, and performance without compromise.

Why choose Goober?

Most styling solutions try to do everything. Goober focuses on doing less-faster. It keeps your bundle small, your code readable, and your app responsive.

Whether you're building a small project or scaling a large application, Goober stays out of your way while delivering consistent, reliable styling.

Core Features

Tiny bundle size

Under 1KB compressed, making it one of the smallest CSS-in-JS libraries available.

Framework agnostic

Works seamlessly with React, Preact, and other modern frameworks.

Simple API

Write styles using familiar syntax without learning a new system.

High performance

Minimal runtime overhead ensures fast rendering and smooth user experience.

Scoped styles

Avoid naming conflicts with automatically scoped class names.

Server-side rendering support

Works cleanly in SSR environments without extra configuration.

Simple to use

Get started with just a few lines of code. Define your styles and apply them directly to your components.

import { styled } from 'goober';

const Button = styled('button')`
  background: #4f46e5;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
`;

export default () => <Button>Click me</Button>;

Install in seconds

Add Goober to your project using your favorite package manager and start styling immediately.

npm install goober
yarn add goober

Open source and growing

Goober is open source and actively maintained. Contributions, feedback, and ideas are always welcome. Join the community and help shape the future of lightweight styling.