@vyke/sx
v0.0.2
Published
Simple helper function to create styles for React Native similar to Tailwind CSS
Maintainers
Readme
Simple helper function to create styles for React Native similar to Tailwind CSS
Installation
npm i @vyke/sxAPI
createCx
Create the cx function that can be used to create styles
const cx = createCx({ create })
const styles = cx('bg-red', 'text-white', 'rounded-full')
const moreComplexStyles = cx('bg-red rounded-full', {
'text-white': !isDarkMode,
'text-black': isDarkMode,
})