@otaga/shared-utils

v1.3.5

Published

Core utilities and theme management for the Otaga ecosystem.

Downloads

888

Readme

@otaga/shared-utils

Core utilities and theme management for the Otaga ecosystem.

Features

  • Theming: Lightweight theme system for Light/Dark mode support.
  • Hooks: useThemeColor and useColorScheme for easy styling.
  • Constants: Shared color palettes and design tokens.

Installation

npm install @otaga/shared-utils

Usage

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