We just published Creu: 126 React components as @crystalplatforms/creu on npm, wrapped in a visual language we call Creumorphism. Neutral surfaces, a single green accent, components that press into the page when you click them. React 18 and 19 are peer dependencies. Zero runtime dependencies beyond that.
This post is the practical tour: what you install, how theming works, what is in the box, and why we build docs the way we did.
Quick start
Two lines and one attribute.
npm install @crystalplatforms/creu
import '@crystalplatforms/creu/creu.css';
<html data-theme="dark">
That CSS import is the entire styling story. No Tailwind config, no CSS-in-JS runtime, no theme provider to wrap your app in. Dark is the default; set data-theme="light" on <html> and the whole system flips.
Then components work the way you expect:
import { Button } from '@crystalplatforms/creu';
<Button variant="accent">Save changes</Button>
Theming is CSS variables, not an API
Every visual value in Creu lives in a --creu-* custom property: surfaces, text colors, the green accent, radii, shadows, the 160 ms motion duration. The dark and light palettes are two variable sets in the same stylesheet, which is why the theme switch costs nothing at runtime.
Want to tune it? Override variables on :root:
:root {
--creu-accent: #0f62fe;
}
Every component that paints with the accent now paints with yours. A full third theme is the same move at larger scale: no fork, no build step. The docs Theming page lists the key tokens with dark and light values side by side.
What is in the box
126 components across eight groups. The usual suspects are all there: buttons, inputs, selects, dialogs, tabs, toasts. A few are worth naming, because "component library" undersells them.
Data Grid: virtualized rows (only what is visible is in the DOM), column resizing and drag reordering, pinned columns, full keyboard navigation.
Charts: line, bar, area, donut and sparkline, drawn in SVG by the library itself. No charting dependency anywhere in the tree.
Toast: a stacked pile. The newest on top, older ones peeking out behind, swipe to dismiss, a loading variant that turns into its result.
App Shell, Sidebar, Stat Card: app scaffolding that already speaks the design language.
Icons, deliberately, are not included. Components take them as ReactNode props, so your app keeps its own icon set. Our docs demos use Tabler; the package credits the borrowed paths in a NOTICE file.
The docs are part of the library
Every component page at creu.pages.dev has a running demo and a code example with a copy button: the exact code that renders the demo, importable as-is. Search opens on ⌘K / Ctrl+K. Four guide pages (Introduction, Theming, Changelog, License) cover setup and customization.
Under the hood the docs are prerendered. All 131 routes ship as static HTML, unknown URLs return a real 404, and the fonts are self-hosted. The site is also the reference for how light a Creu app can be. The main JavaScript chunk is 133 kB gzipped, with per-page chunks in the single-digit kilobytes.
Versions and license
React 18 and 19, as peer dependencies. ESM-only: any bundler that handles ES modules and a CSS import will run it.
The split is deliberate. The library is GPL-3.0-or-later. Every code example on the docs is MIT. Read the docs, copy the examples into commercial work without thinking about it, and if your app depends on the component library itself, the GPL applies to that dependency the way it does for any open-source library you ship.
Links
- Docs: creu.pages.dev
- npm: @crystalplatforms/creu
- Source, issues, discussions: CrystalPlatforms/creudocs
Top comments (0)