@jabir0/orbitui-react
v0.1.0
Published
OrbitUI enterprise-ready React component library and design system.
Maintainers
Readme
OrbitUI
OrbitUI is an enterprise-ready React component library and design system focused on accessible primitives, multi-brand theming, and predictable packaging for modern app teams.
Highlights
- Accessible React primitives backed by keyboard and axe-core coverage
- CSS variable token system with light, dark, and brand-aware theming
- Storybook documentation with component docs, token reference, and guides
- ESM and CJS package output with subpath exports and preserved modules
- CI, bundle budget checks, conventional commits, and semantic-release automation
Install
npm install @jabir0/orbitui-react react react-domPeer requirements:
react >= 18.2.0react-dom >= 18.2.0
Quick Start
import React from 'react';
import { Button, Input, OrbitProvider } from '@jabir0/orbitui-react';
export function App() {
return (
<OrbitProvider theme="light">
<div style={{ display: 'grid', gap: '1rem', maxWidth: 320 }}>
<Input label="Email" placeholder="[email protected]" />
<Button variant="primary">Create account</Button>
</div>
</OrbitProvider>
);
}Available Components
Current root exports include:
BreadcrumbsButtonCheckboxInputPaginationRadioGroupTabsTextareaTooltipOrbitProviderorbitTokens
Utility and hook subpath exports are also available:
@jabir0/orbitui-react/hooks/useControllableState@jabir0/orbitui-react/hooks/useId@jabir0/orbitui-react/hooks/useMediaQuery@jabir0/orbitui-react/utils/cn@jabir0/orbitui-react/utils/composeRefs@jabir0/orbitui-react/utils/createContext@jabir0/orbitui-react/utils/polymorphic@jabir0/orbitui-react/providers/OrbitProvider
Theming
OrbitUI ships with generated design tokens and runtime CSS variables. OrbitProvider controls active theme and brand context for the library.
import { OrbitProvider } from '@jabir0/orbitui-react';
export function Root() {
return (
<OrbitProvider theme="dark" brand="brand-a">
{/* app */}
</OrbitProvider>
);
}Supported theming concepts in the current build:
lightanddarksemantic themes- multi-brand overrides for
brand-aandbrand-b - generated token payload exposed as
orbitTokens
Architecture
The package is organized around a few stable layers:
src/tokens: source tokens and generated CSS/JS outputssrc/utils: composition helpers such ascn,composeRefs, and safe context utilitiessrc/hooks: shared state and environment hookssrc/providers: top-level runtime providers likeOrbitProvidersrc/components: accessible UI primitives and compound components.storybook: docs site, MDX guides, and autodocs configuration
Development
npm install
npm run devUseful scripts:
npm run buildbuilds the library with preserved ESM and CJS modulesnpm run testruns the Vitest suite with coveragenpm run lintruns ESLint across the workspacenpm run storybookstarts the docs site locallynpm run storybook:buildbuilds the static docs sitenpm run check:bundleenforces bundle size budgets
Quality Gates
OrbitUI includes automated checks for:
- component tests with Testing Library and Vitest
- accessibility audits with axe-core
- keyboard navigation regression coverage
- Storybook documentation builds
- semantic-release automation for versioning and npm publishing
Package Output
The published package is set up for application and library consumers:
- dual ESM and CJS entry points
- subpath exports for components, hooks, providers, and utilities
- CSS files marked as side effects so styles are not tree-shaken away
- public scoped npm publishing through
@jabir0/orbitui-react
Documentation
Storybook content in this repo includes:
- introduction, installation, and getting started guides
- design token reference with visual swatches
- theming and accessibility guides
- autodocs-backed component reference pages
Roadmap Status
The current release branch includes the foundational system and first component wave. More overlay and complex components remain tracked in task.md.
License
OrbitUI is released under the MIT License.
