An open API service indexing awesome lists of open source software.

https://github.com/tinyhref/use-stylex

A utility that makes using Facebook's StyleX easier, with support for Tailwind-style syntax
https://github.com/tinyhref/use-stylex

stylex tailwind tailwindcss use-stylex

Last synced: 3 months ago
JSON representation

A utility that makes using Facebook's StyleX easier, with support for Tailwind-style syntax

Awesome Lists containing this project

README

          

# use-stylex

## Installation

```bash
npm install use-stylex
or
yarn add use-stylex
```

## Use It

```js
import * as stylex from '@stylexjs/stylex';
import { useStyleX } from 'use-stylex';

const styles = stylex.create({
wrapper: {
position: 'relative'
},
base: {
display: 'flex',
color: '#fff'
},
primary: {
color: 'blue'
}
})

const Component = () => {
const { classes } = useStyleX(styles);

return (


Component

)
}
```