GitXplorerGitXplorer
f

stylex

public
8508 stars
318 forks
83 issues

Commits

List of commits on branch main.
Verified
f33fb78fdb6a56906cec6298be8948d4d12748f3

release: v0.10.1 (#868)

nnmn committed 2 hours ago
Verified
73e8a982f8331dbe24c6b8a45dec56ab4637c4b1

fix: invalid initial-value in @property (#863)

nnmn committed 8 hours ago
Verified
24e5158292f41ec70452ec4c0c544d17f74feb9e

fix: fix readCache to use custom cache path when set (#851)

mmellyeliu committed 10 hours ago
Verified
95caddc8d0a2c54ef431295d2937095f6561de6d

fix: use ESM imports in CLI (#854)

nnmn committed 4 days ago
Verified
c4f949265ad83229a56c4889a4895521e1d15ebe

fix(babel-plugin): import resolve should respect windows system (#853)

nnonzzz committed 5 days ago
Verified
d16e60e4a4985135d37d20944e4bbcc6c6ff19cb

feat: replace crypto with murmurhash for cli caching (#850)

mmellyeliu committed 5 days ago

README

The README file for this repository.

StyleX · GitHub license npm version tests PRs Welcome

StyleX is a JavaScript library for defining styles for optimized user interfaces.

Documentation

Documentation Website

Documentation for individual packages can be found in their respective README files. Start with @stylexjs/stylex.

Example

Here is a simple example of StyleX use:

import * as stylex from '@stylexjs/stylex';

const styles = stylex.create({
  root: {
    padding: 10,
  },
  element: {
    backgroundColor: 'red',
  },
});

const styleProps = stylex.props(styles.root, styles.element);

Development

This is the development monorepo for StyleX.

Structure

Tasks

First, npm install the npm workspace.

  • build
    • Use npm run build to run the build script in every package.
    • Use npm run build -w <package-name> to run the build script for a specific package.
  • test
    • Use npm run test to run tests for every package.
    • Use npm run test -w <package-name> to run the test script for a specific package. More details can be found in the contributing guide below.

Contributing

Development happens in the open on GitHub and we are grateful for contributions including bug fixes, improvements, and ideas.

Code of Conduct

This project expects all participants to adhere to Meta's OSS Code of Conduct. Please read the full text so that you can understand what actions will and will not be tolerated.

Contributing Guide

Read the contributing guide to learn about our development process, how to propose bug fixes and improvements, and how to build and test your changes.

Architectural Principles

Before proposing a change or addition to the StyleX API, you should familiarize yourself with the goals and architectural principles of the project.

License

StyleX is MIT licensed.