uioh
v1.0.2
Published
> **One System, Every Screen.** > A high-performance, universal design system for React and React Native.
Readme
UI-OH
One System, Every Screen. A high-performance, universal design system for React and React Native.
UI-OH is a foundational design system built to power Web (React / Next.js) and Mobile (React Native / Expo) applications from a single codebase. It leverages platform-specific resolution logic to provide high-fidelity components on Web (HTML/CSS) and Native (View/Text) with zero configuration for the consumer.
🌐 Demos & Documentation
| Platform | Tech Stack | Live Demo | Source Code | | :--------- | :------------ | :------------------------------------------------ | :-------------------------------------------------------- | | Web | Next.js 15+ | View Demo ↗ | GitHub ↗ | | Mobile | Expo / Router | Scan QR ↗ | GitHub ↗ |
✨ Key Features
- 🎯 Single Source of Truth: Centralized tokens for colors, spacing, and typography.
- 🌗 Native Theming: Built-in Light/Dark mode with a unified
useThemehook. - 🔄 Platform Parity: Use
<Heading>on Web (renders<h2>) and Native (renders<Text>) with the exact same API. - ⚡ Performance First: Optimized for tree-shaking and zero-runtime overhead.
- TypeScript First: Deeply typed tokens and components for a superior DX.
📦 Installation
npm install uioh🧱 Usage
Wrap your app
import { UiOhProvider } from "uioh";
export default function RootLayout({ children }) {
return <UiOhProvider defaultMode="light">{children}</UiOhProvider>;
}Use components
import { Heading, Text, ColorModeToggle, useTheme } from "uioh";🧠 Theming
const t = useTheme();
t.color.bg.canvas;