Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

stylex

> 编程语言
Open source

StyleX is the styling system for ambitious user interfaces.

9.7K stars0 likes1 views
WebsiteGitHub

About

StyleX is the styling system for ambitious user interfaces.

StyleX ·

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:

javascript
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

  • .github
    • Contains workflows used by GitHub Actions.
    • Contains issue templates and contribution guidelines.
  • examples
    • Contains examples using StyleX and its integration with build tools.
  • packages
    • Contains the public and private packages managed in the monorepo.
    • babel-plugin
    • benchmarks
    • cli
    • docs
    • eslint-plugin
    • postcss-plugin
    • rollup-plugin
    • scripts
    • shared
    • style-value-parser
    • stylex

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.

Issues· 213 open

View all issuesOpen on GitHub
  • #1919

    [unplugin] Vite dev: CSS for a lazily loaded module is applied after the module has evaluated

    bugUpdated Sep 29, 2026
  • #1918

    [unplugin] CSS-only change renames the CSS asset but not the chunk that references it

    Updated Sep 29, 2026
  • #1916

    Bun media query parser sometimes consumes EOF token as trailing syntax

    Updated Sep 29, 2026
  • #1915

    [babel-plugin] `firstThatWorks('var(--z)', 100)` throws `varName.startsWith is not a function`

    Updated Sep 29, 2026
  • #1913

    [unplugin] Vite dev on Windows: runtime/CSS URLs built with path.join reach the browser as "\\virtual:…" and never load

    Updated Sep 28, 2026
  • #1912

    [unplugin] Vite dev: import walk calls this.load() on dependencies (react), deadlocking the cold-start dependency optimizer

    Updated Sep 28, 2026
  • #1909

    Support boolean evaluation for media features like `@media (prefers-reduced-motion)`

    enhancementUpdated Sep 28, 2026
  • #1798

    Container query order is not preserved.

    bugUpdated Sep 27, 2026
  • #1908

    Transformed media queries leave gaps between breakpoints

    enhancementUpdated Sep 27, 2026
  • #1356

    [roadmap] StyleX v1.0.0

    Updated Sep 23, 2026

> Tags

JavaScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言