Pasang Tailwind menggunakan benang
yarn add tailwindcss
Elahy Shikder
yarn add tailwindcss
yarn add tailwindcss
import {create} from 'tailwind-rn';
import styles from './styles.json';
const {tailwind, getColor} = create(styles);
export {tailwind, getColor};
import {create} from 'tailwind-rn';
import styles from './styles.json';
const {tailwind, getColor} = create(styles);
tailwind('text-blue-500 text-opacity-50');
//=> {color: 'rgba(66, 153, 225, 0.5)'}
$ npm install tailwind-rn