stylex
stylex copied to clipboard
StyleX is the styling system for ambitious user interfaces.
**The problem** When importing a variable file like is listed in [the docs](https://stylexjs.com/docs/learn/theming/defining-variables/), the build is only succeeding if the import path is a relative path (i.e. ../src/lib/theme/theme.stylex), but fails...
https://stylex-docusaurus-nxsbvzf80-nmn.vercel.app For now, this is a proof of concept. I have used a webcontainer to successfully compile and show the output of a file. The next step is to make...
Please remove `const` from: ``` export type Stylex$Create = < const S extends { [key: string]: UserAuthoredStyles | ((...args: any) => UserAuthoredStyles); }, >( styles: S, ) => MapNamespaces; ```...
## What changed / motivation ? Removed redundant 'as const' assertions from constant declarations.
## What changed / motivation ? This PR fixes the bug, where consumers cannot create `keyframes` directly inside `defineVars`. ``` export const vars = stylex.defineVars({ fadeIn: stylex.keyframes({ '0%': { opacity:...
Can anybody help me to turn the below code into stylex: this works in dev but I get the below error. ``` "::-webkit-scrollbar": { width: "8px", height: "8px" }, "::-webkit-scrollbar-thumb":...
## Object postion We can use pixels and percentages in values as well. I have seen the only string we can use in numbers as well.
**Is your feature request related to a problem? Please describe.** The current implementation of the NextJS plugin doesn't use Flow as other packages like @stylexjs/babel-plugin, so it doesn't include TypeScript...
**The problem** Not omitting the `return` keyword when creating dynamic styles causes a `Styles must be represented as JavaScript objects, not ArrowFunctionExpression` error. | Synxtax | Type | | -...