A shared UI utilities package for Tomo Wallet, providing common components and theme configurations.
- 🎨 Unified theme configuration
- 🧩 Common UI components
- 🎭 Shared styles and layouts
- 🛠️ UI utility functions
- 📦 Third-party UI library extensions
pnpm add @tomo-inc/uikit
import { ThemeProvider, defaultTheme } from "@tomo-inc/uikit";
function App() {
return (
<ThemeProvider theme={defaultTheme}>
<YourApp />
</ThemeProvider>
);
}
import { Card, Modal, Toast, Loading } from "@tomo-inc/uikit";
function YourComponent() {
return (
<Card>
<Loading />
<Toast message="Operation successful" />
</Card>
);
}
import { Container, Row, Column, Spacer } from "@tomo-inc/uikit/layout";
function Layout() {
return (
<Container>
<Row>
<Column>Content</Column>
<Spacer size={16} />
<Column>More Content</Column>
</Row>
</Container>
);
}
src/
├── components/ # Common UI components
│ ├── base/ # Basic components
│ ├── layout/ # Layout components
│ └── feedback/ # Feedback components
├── theme/ # Theme configurations
├── styles/ # Shared styles
└── utils/ # UI utility functions
- Button
- Card
- Modal
- Tooltip
- Dropdown
- Container
- Row
- Column
- Spacer
- Divider
- Toast
- Loading
- ErrorBoundary
- Skeleton
- ThemeProvider
- defaultTheme
- darkTheme
- createCustomTheme
- getThemeColor
- getSpacing
- mediaQuery
- styleHelpers
# Install dependencies
pnpm install
# Run tests
pnpm test
# Build package
pnpm build
# Run storybook
pnpm storybook
- Create feature branch
- Make changes
- Add tests
- Submit PR
MIT © Tomo Inc.