@hybrid/ui-system provides a complete UI system with consistent dark theme and 11 micro components. One install gives you everything - theme + components for guaranteed visual and behavioral consistency.
npm install github:orchestrate-solutions/ui-systemimport { ThemeProvider } from '@mui/material/styles';
import { lightTheme, darkTheme, hybridTheme } from '@hybrid/ui-system';
export default function App() {
const [isDark, setIsDark] = useState(true);
return (
<ThemeProvider theme={isDark ? darkTheme : lightTheme}>
<YourApp />
</ThemeProvider>
);
}Create your own themes with custom colors:
import { createHybridTheme } from '@hybrid/ui-system';
const customTheme = createHybridTheme({
mode: 'dark',
primaryColor: '#ff6b35',
secondaryColor: '#f7931e',
backgroundColor: '#1a1a2e',
paperColor: '#16213e',
});Use our 11 reusable micro components that automatically inherit the theme:
import { TextField, SelectField, CheckboxField, ThemeToggle } from '@hybrid/ui-system';
export function MyForm() {
return (
<>
<TextField label="Name" required />
<SelectField
label="Type"
options={[
{ value: 'a', label: 'Option A' },
{ value: 'b', label: 'Option B' }
]}
/>
<CheckboxField label="Agree to terms" />
<ThemeToggle label="Theme" />
</>
);
}Create your own themes with custom colors:
import { createHybridTheme } from '@hybrid/ui-system';
const customTheme = createHybridTheme({
mode: 'dark',
primaryColor: '#ff6b35',
secondaryColor: '#f7931e',
backgroundColor: '#1a1a2e',
paperColor: '#16213e',
});- Button - Enhanced button with loading states
- TextField - Text input with validation
- SelectField - Dropdown selection
- DateField - Date picker
- CheckboxField - Checkbox input
- TextareaField - Multi-line text
- FileField - File upload
- PasswordField - Password input
- NumberField - Numeric input
- RadioGroup - Radio buttons
- ThemeToggle - Interactive theme switcher (light/dark mode)
✅ Consistent Design - Same colors, fonts, spacing across all apps
✅ Consistent Behavior - Same validation, error states, accessibility
✅ Easy Integration - Drop-in replacement for standard MUI components
✅ Future-Proof - Updates automatically benefit all applications
✅ Well Tested - 120 Cypress tests ensure reliability
✅ Interactive Docs - Storybook stories with live component playground
✅ Theme Customization - Build your own theme, system ensures consistency
Run interactive component documentation:
npm run storybookAll 11 components include stories showcasing different props, states, and edge cases.
Test the CI pipeline locally using GitHub's act tool:
# Install act (if not already installed)
brew install act
# Run the CI workflow locally
act -j test --matrix node-version:20.x
# Run all jobs
act- 121 Cypress Component Tests - Comprehensive coverage of all components and themes
- TypeScript Type Checking - Ensures type safety across the codebase
- Build Verification - Validates that the library builds correctly and exports are available
- Storybook Build - Ensures documentation builds without issues
- Cross-Platform Testing - Tests across Node.js 18.x, 20.x, and 22.x
The test suite includes comprehensive validation of package exports to prevent issues like missing theme exports that could break Storybook or consumer applications.