0.0.2 • Published 6 months ago
@vyke/sx v0.0.2
Simple helper function to create styles for React Native similar to Tailwind CSS
Installation
npm i @vyke/sx
API
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,
})
Others vyke projects
0.0.2
6 months ago