@tansuk/rott-ui
v0.2.0
Published
This is property based full built-in UI Kit for React-Native
Maintainers
Readme
@tansuk/rott-ui
This is property based full built-in UI Kit for React-Native
Installation
npm install @tansuk/rott-uiUsage
import {multiply} from '@tansuk/rott-ui'
// ...
const result = await multiply(3, 7)Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library
Using rott.config.ts for type-safe theming
- Create
rott.config.tsin your app root:
import { defineRottConfig } from '@tansuk/rott-ui'
export const config = defineRottConfig({
colors: {
brandPrimary: '#123456',
brandAccent: '#ff00aa',
},
} as const)- Map the module in your
tsconfig.jsonso the library can resolve it:
{
"compilerOptions": {
"paths": {
"rott.config": ["./rott.config.ts"]
}
}
}Now, components that accept a variant prop will autocomplete the keys defined in your colors.
