@otaga/shared-utils
v1.3.5
Published
Core utilities and theme management for the Otaga ecosystem.
Downloads
888
Maintainers
Readme
@otaga/shared-utils
Core utilities and theme management for the Otaga ecosystem.
Features
- Theming: Lightweight theme system for Light/Dark mode support.
- Hooks:
useThemeColoranduseColorSchemefor easy styling. - Constants: Shared color palettes and design tokens.
Installation
npm install @otaga/shared-utilsUsage
Using Theme Colors
import { useThemeColor } from '@otaga/shared-utils';
function MyComponent() {
const backgroundColor = useThemeColor({ light: '#fff', dark: '#000' }, 'background');
return <View style={{ backgroundColor }} />;
}License
MIT