Functional CSS, but only the good parts.

Fractures is the atomic CSS toolkit that helps you create resilient design systems and rapid prototypes by providing a set of non-blocking utility classes.

npm i fractures @ 2.0.0-beta-0

Beta

Looking for v1?

Goals

Atomic
Framework agnostic
No UI
Fast in every way
Small cognitive load
Tiny footprint

Features

<article className="article-block__item flex p-4">  <span/></article>

Encourages composition

No more class flooding. Do better than flex flex-wrap items-baseline pl-52 -mt-6 -mr-6 -ml-52 py-6 pr-6 bg-black text-white.

<header className="flex md:flex-column">  <a className="blue-700 hover:blue-900"/>  <span/></header>

Easy but powerful

An opinionated breakpoint and customizable color system built in. No javascript.

<div className="flex bg-gray-900">  <span className="    teal-700 hover:teal-100    dark:teal-900  "/></div>

Extendible

Fractures was created at the CSS level, and it's incomplete by design. Configure CSS variables at :root and follow the outlined patterns with your own code.

Manifesto

Fractures is a relaxed, long term take on design systems and prototyping, trying to abstract away some complexities interface design has to offer. You can build around it or on top of it, but would not replace the work you have to do.

Ask a question on GitHub, say hi on twitter.