Design system for dashboards and monitoring tools: a Tailwind 4 theme, React 19 components and Recharts-based chart wrappers, documented in Storybook 10.
The live Storybook has the 174 React components and the 22 chart wrappers, each with its docs and stories, in four themes, twelve accent colors, three densities, four corner radii, both reading directions, and in English or French.
App Shell |
List |
Detail |
Settings |
Dashboard |
Monitoring |
The six screens are the Storybook's Examples, shown light or dark to match your system. Each one opens its story.
Cosmos is for React teams that build admin panels, dashboards, monitoring tools and status pages and want one themeable, accessible set of components for them. It was extracted from rackscope.
| Package | Description | npm |
|---|---|---|
@sckyzo/cosmos-theme |
Tailwind 4 theme: design tokens, fonts, 4 themes, 12 accents | |
@sckyzo/cosmos-react |
React 19 component library, ESM + CJS + DTS | |
@sckyzo/cosmos-charts |
Chart wrappers (Recharts) that follow the theme and accent, published separately |
The three packages share one version number: install the same version of each.
You need React 19 and Tailwind CSS 4 with its plugin for your bundler. The steps below are the short version; the full guide explains each line and has a recipe for Vite and one for Next.js.
npm install @sckyzo/cosmos-theme @sckyzo/cosmos-reactIn the CSS file your app imports at its root. The @source line is mandatory: Tailwind does not
scan node_modules, so without it no Cosmos class is generated and every component renders
unstyled.
@import 'tailwindcss';
/* Required. The path is relative to this file. */
@source '../node_modules/@sckyzo/cosmos-react/dist/**/*.{js,cjs}';
@import '@sckyzo/cosmos-theme/tailwind';
@import '@sckyzo/cosmos-theme/vars';
@import '@sckyzo/cosmos-theme/fonts';import { Button } from '@sckyzo/cosmos-react';
export default () => <Button>Hello Cosmos</Button>;<html lang="en" class="dark" data-accent="teal"></html>The theme, the accent, the font, the text size, the density, the corner radius and the reading
direction are all a class or an attribute on <html>. The words the components write are English
by default; LabelsProvider takes your dictionary, and French ships with the packages
(Translating).
- Getting started: requirements, install, the CSS setup explained, and recipes for Vite and Next.js (App Router).
- Guides
- Appearance: themes, accents, fonts, text size, density, radius, the pickers, and the theme without Tailwind.
- Tokens and focus: the design tokens and the focus utilities.
- Charts:
@sckyzo/cosmos-charts. - Optional entries:
/code,/editor,/mapand/qr, and their peer dependencies. - Right to left.
- Refs and routing: refs, and sending links through your router.
- Translating: the text the components write, in your language; French ships with the packages.
- Components, by Storybook group: Tables, Data, Feedback, Monitoring, Navigation, Lists, Chat, Forms, Layout, Media, Typography and variants worth knowing.
- Themes and accents specification: how the themes and accents are built.
- Storybook: every component, with its props, stories and accessibility checks. Its Welcome page lists the components by group and has a search.
- cosmos-demo: a demo app built only from Cosmos and installed from npm, with routes, shared state and the appearance settings on every page. In progress; its plan is cosmos-demo#1.
The documentation index lists the same pages.
Stories are grouped by what a component does, not by where its file lives (Storybook's story-hierarchy convention):
Welcome → Examples → Foundations → Typography → Atoms → Actions → Forms → Data
→ Media → Status → Monitoring → Feedback → Overlays → Navigation
→ Layout → Lists → Chat → Tables → Settings → Charts
Notable groups:
- Examples: six screen recipes, each in its states (content, empty, loading, error, extreme content, phone): App Shell, List, Detail, Settings, Dashboard and Monitoring; then the auth forms and the error page
- Typography: Headings, Paragraphs, Text, Blockquote, Kbd, Figure, Link, List, Description List, Divider, Highlight
- Forms: inputs, selects, pickers, upload and editing controls (Input, Select, Combobox, MultiSelect, TagInput, DatePicker, Slider, Rich Text Editor, Line Items Editor, Permission Grid, Card Fields, …)
- Media: Carousel, Image Grid, Lightbox, Video Embed, CodeBlock, code highlighting, Map View, QR Code
- Charts:
@sckyzo/cosmos-charts, one entry per chart type: line and area, bar and column, donut, radial bar, gauges, realtime, sparkline, treemap, sunburst, heatmap, calendar, radar, scatter and bubble, box plot, range bar, mixed, bump, funnel, waterfall and world map
The host needs only docker, git, gh, make and bash: Node, pnpm and Playwright run in
the cosmos-dev image.
make build-image # Build cosmos-dev image (first time only)
make install # pnpm install + Playwright browsers, inside the container
make storybook # Start Storybook on http://localhost:6006
make check-quick # Before every push: lint, typecheck, unit tests and the stories you changed
make check-changed # To reproduce a CI failure: the CI pipeline cut down to what you changed
make ci # The full CI pipeline, one step after the other
make test # Unit + e2e tests only
make build # Build all package dists
make help # See every available targetmake check-quick takes a few minutes and leaves the long story passes to the pull request's CI,
which runs everything on every push. make ci mirrors .github/workflows/ci.yml (lint,
format:check, typecheck, build, storybook:build, tests) and bails on the first failure. make check-changed runs the part of it the changed files can break, and all of it when a change
touches the theme, the config or the dependencies.
Playwright browsers are not baked into the dev image: their revision is tied to
the exact Playwright version in the lockfile. make install fetches them into
.cache/ms-playwright (gitignored), and the test targets top them up if a
version bump needs a new revision. After pulling a Playwright bump, make install is enough; no image rebuild.
Alternative wrapper (./devctl) for ad-hoc commands:
./devctl shell # Interactive shell inside cosmos-dev
./devctl run pnpm <anything> # Arbitrary pnpm command
./devctl storybook # Storybook dev server| Tool | Version |
|---|---|
| Node | ≥22 (dev image: 26) |
| pnpm | 10 |
| React | 19 |
| Tailwind CSS | 4 |
| Storybook | 10 |
| Vite | 8 |
| TypeScript | 6 |
| Playwright | 1.6x |
The packages are below 1.0, so a breaking change bumps the minor version (0.4.0 to 0.5.0). The
release notes and the CHANGELOG.md of each package
list breaking changes under "BREAKING CHANGES": read them before you bump.
See CONTRIBUTING.md. All commits must be signed (SSH
signing). The repo uses Conventional Commits: feat, fix, refactor,
chore, docs, test, build, ci, perf, style, revert.
MIT, see LICENSE.