Skip to content
المشاريع

حول

StyleX هو نظام تنسيق لواجهات المستخدم الطموحة.

تطوير الويب والتطبيقات

كيف تُقاس هذه الأرقام

10,547 نجمة521 التفرعات +3 خلال 24 ساعة

النمو المقاس للنجوم

خلال 24 ساعة
+٣
خلال 7 أيام
+١٢
خلال 15 يومًا
+٣٥
خلال شهر
+٩٥

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

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, yarn install the yarn workspace.

  • build
    • Use yarn build to run the build script in every package.
    • Use yarn workspace <package-name> build to run the build script for a specific package.
  • test
    • Use yarn test to run tests for every package.
    • Use yarn workspace <package-name> test 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.

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…