Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stylex locally and use in playground #1010

Merged
merged 1 commit into from
Dec 15, 2021
Merged

Add stylex locally and use in playground #1010

merged 1 commit into from
Dec 15, 2021

Conversation

trueadm
Copy link
Collaborator

@trueadm trueadm commented Dec 14, 2021

This PR adds a local copy of the stylex project to Outline's packages (as an interim solution until stylex is open sourced). For now, to keep this diff simple, we only use stylex on the Playground theme for ltr and rtl properties.

However, it seems that we can't yet sync modules from github that use Stylex because of how the babel-plugins differ. On www they generate stylesheets at compile time, and we have no way of doing that from a sync. The best we can do, is opt certain modules to have different header modules so that they can be processed on www, but this is highly risky.

@facebook-github-bot facebook-github-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 Dec 14, 2021
Fix lint

Fix lint

Fix lint

Fix lint

Fix plugin
@trueadm trueadm merged commit f2c4e04 into main Dec 15, 2021
@trueadm trueadm deleted the introduce-stylex branch December 15, 2021 00:53
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.

2 participants