Skip to content
SckyzOPublic

About

React design system for admin panels, dashboards and monitoring tools: Tailwind 4 theme (4 themes, 12 accents), 174 React 19 components and 22 Recharts chart wrappers, in English or French.

Topics

Resources

Contributing

Security policy

Stars

4 stars

Watchers

0 watching

Forks

Latest commit

 

History

2,917 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cosmos

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.

A workspace home: a sidebar, the tasks due this week, an activity feed and recent projects
App Shell
An orders list: status tabs, a search field, and a sortable, selectable table
List
A support ticket: the conversation with an internal note, a reply box and a details panel
Detail
An organization settings page: section tabs, form rows and a save bar
Settings
A subscription dashboard: KPI cards with sparklines, a revenue chart and a donut
Dashboard
A cluster overview: alert counts by severity, four gauges with their ok, warning and critical zones, and a rack by node status matrix
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.

Packages

Package Description npm
@sckyzo/cosmos-theme Tailwind 4 theme: design tokens, fonts, 4 themes, 12 accents npm
@sckyzo/cosmos-react React 19 component library, ESM + CJS + DTS npm
@sckyzo/cosmos-charts Chart wrappers (Recharts) that follow the theme and accent, published separately npm

The three packages share one version number: install the same version of each.

Getting started

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.

1. Install

npm install @sckyzo/cosmos-theme @sckyzo/cosmos-react

2. Set up the styles

In 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';

3. Use a component, and set the theme on <html>

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).

Documentation

The documentation index lists the same pages.

Storybook groups

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

Development (everything in Docker)

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 target

make 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

Versions

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.

Contributing

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.

License

MIT, see LICENSE.

About

React design system for admin panels, dashboards and monitoring tools: Tailwind 4 theme (4 themes, 12 accents), 174 React 19 components and 22 Recharts chart wrappers, in English or French.

Topics

Resources

Contributing

Security policy

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages