0.0.2 • Published 6 months ago

@vyke/sx v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

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