Skip to content

Conversation

@mellyeliu
Copy link
Member

@mellyeliu mellyeliu commented Nov 26, 2025

Adding a docs section for style authoring. We should follow this up with a block for setup instructions.

This should be expanded to include:

  • Documentation on APIs and API usage
  • Bundler setup instructions
  • ESLint fixer guide for LLMs and instructions to disallow certain CSS properties or practices (border shorthands, disalllowed properties within StyleX, prefer conditional styles over dynamic styles when possible, etc)

...etc

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 26, 2025
@mellyeliu mellyeliu marked this pull request as draft November 26, 2025 19:36
Comment on lines +91 to +92
});

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
});
});
```

unclosed codeblock? would it also help to have an example of using the dynamic style?

## Common Patterns

### Variants Pattern
```javascript
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
```javascript
```jsx

```

### Composing styles across components
```javascript
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
```javascript
```jsx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants