stylex
stylex copied to clipboard
Write CSS-in-JS with atomic support. Like Facebook's Stylex!
 Argument of type 'CssStyle | CssStyle[] | undefined' is not assignable to parameter of type 'CssStyle | CssStyle[]'.
I would like to define styles once and import throughout my app. ``` [styles.js] import { margin } from './margin' const styles = stylex.create({ margin }); export default styles ```...
This is my file webpack.config.js ```const path = require('path') const webpack = require('webpack') const HtmlWebpackPlugin = require('html-webpack-plugin') const MiniCssExtractPlugin = require('mini-css-extract-plugin') const { CleanWebpackPlugin } = require('clean-webpack-plugin') const StylexPlugin =...
Need check: ```css statsMain: { gridArea: 'main', position: 'relative', borderRadius: 'var(--radius)', background: '#fff', display: 'flex', alignItems: 'center', justifyContent: 'center', marginTop: -25, marginBottom: -25, marginRight: 0, marginLeft: 0, boxShadow: '0 0...
We might need to support SWC since the current boilerplate to integrate stylex with NextJS (app folder) will have performance impacts
I noticed that this repo hasn't changed recently, and also that Meta still didn't open source Stylex, so I wonder if it's working well for you. Are you happy with...