awesome-repositories.com
博客
MCP
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目MCP 服务器关于排名机制媒体报道
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
atlassian-labs avatar

atlassian-labs/compiled

0
View on GitHub↗
2,049 星标·74 分支·TypeScript·Apache-2.0·16 次浏览compiledcssinjs.com↗

Compiled

Compiled 是一个 React 样式框架,可在构建过程中将组件级样式转换为静态的原子 CSS 文件。通过利用构建时的抽象语法树(AST)转换,该库消除了对运行时样式注入的需求,确保样式在应用程序执行前得到处理和优化。

该框架通过将复杂的样式对象分解为独立的、可复用的工具类来减少总样式表大小,从而脱颖而出。它通过将动态组件属性映射到 CSS 自定义变量来保持对动态属性的支持,在保留静态提取性能优势的同时,允许运行时样式调整。为了确保渲染的可预测性,该库采用了确定性的层叠顺序,将生成的规则组织到优先级桶中以防止冲突。

该项目包含用于构建流水线集成的全面工具,包括支持转换标记语言,以及通过自动化的 Linting 和验证规则强制执行样式一致性。这些功能确保了组件样式在整个代码库中保持惯用且易于维护。

Features

  • CSS-in-JS Compilers - Converts component-level styles into static atomic CSS files during the build process for React applications.
  • Component Styling - Enables the creation of reusable user interface components with encapsulated styles that support dynamic property-based adjustments.
  • Zero-Runtime Styling Engines - Integrates styling engines into development pipelines to eliminate runtime style injection and ensure predictable rendering.
  • Atomic CSS Generators - Decomposes complex style objects into individual, reusable utility classes to minimize total stylesheet size.
  • Build-Time CSS Extraction - Transforms component-level styling declarations into static CSS files during the build process to eliminate runtime overhead.
  • Static Style Generators - Compiles component-level styles into static CSS files during the build process to eliminate runtime style injection overhead.
  • JavaScript AST Transformations - Parses source code into an abstract syntax tree to identify and replace styling patterns with optimized static equivalents.
  • Styling Frameworks - Defines encapsulated component styles using familiar JavaScript syntax while ensuring high performance through static extraction.
  • Component Styling Tools - Provides a syntax for building user interface components with encapsulated styles that compile into optimized atomic class names.
  • Dynamic Style Injection - Applies runtime style variations by injecting CSS variables into generated atomic rules while maintaining static extraction.
  • CSS Custom Property Injections - Maps dynamic component properties to CSS custom properties to maintain static stylesheet extraction while supporting runtime adjustments.
  • Style Cascading Engines - Organizes generated atomic rules into prioritized buckets to ensure consistent style application and prevent conflicts.
  • JSX Transformers - Transforms custom styling properties into valid markup during the build process to ensure correct rendering across environments.

Star 历史

atlassian-labs/compiled 的 Star 历史图表atlassian-labs/compiled 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

常见问题解答

atlassian-labs/compiled 是做什么的?

Compiled 是一个 React 样式框架,可在构建过程中将组件级样式转换为静态的原子 CSS 文件。通过利用构建时的抽象语法树(AST)转换,该库消除了对运行时样式注入的需求,确保样式在应用程序执行前得到处理和优化。

atlassian-labs/compiled 的主要功能有哪些?

atlassian-labs/compiled 的主要功能包括:CSS-in-JS Compilers, Component Styling, Zero-Runtime Styling Engines, Atomic CSS Generators, Build-Time CSS Extraction, Static Style Generators, JavaScript AST Transformations, Styling Frameworks。

atlassian-labs/compiled 有哪些开源替代品?

atlassian-labs/compiled 的开源替代品包括: mui/pigment-css — Pigment CSS is a framework-agnostic styling tool that moves component style processing from the browser runtime to the… callstack/linaria — Linaria is a zero-runtime CSS-in-JS library and static CSS generator. It evaluates JavaScript expressions at build… facebook/stylex — StyleX is a type-safe CSS-in-JS library and atomic CSS compiler that transforms JavaScript style definitions into… vanilla-extract-css/vanilla-extract — vanilla-extract is a type-safe CSS-in-JS library and zero-runtime CSS framework. It uses TypeScript to define styles… snackui/snackui — SnackUI is a cross-platform UI framework and universal component library designed to share styling and components… stitchesjs/stitches — Stitches is a CSS-in-JS library and near-zero runtime CSS engine designed to define styles in JavaScript with minimal…

Compiled 的开源替代方案

相似的开源项目,按与 Compiled 的功能重合度排序。
  • mui/pigment-cssmui 的头像

    mui/pigment-css

    1,125在 GitHub 上查看↗

    Pigment CSS is a framework-agnostic styling tool that moves component style processing from the browser runtime to the build phase. By parsing component source code and theme configurations during compilation, it generates standalone, optimized CSS files and standard class names, effectively eliminating the need for runtime style calculation. The library provides a system for managing design tokens, such as colors and spacing, by transforming them into native CSS variables. This approach allows for dynamic styling and theme-aware logic without requiring a JavaScript-based engine. It also supp

    TypeScript
    在 GitHub 上查看↗1,125
  • callstack/linariacallstack 的头像

    callstack/linaria

    12,335在 GitHub 上查看↗

    Linaria is a zero-runtime CSS-in-JS library and static CSS generator. It evaluates JavaScript expressions at build time to extract styles from tagged template literals into standalone, static CSS files, removing the need for a runtime style injection engine. The library distinguishes itself by mapping component props to CSS custom properties, enabling dynamic styling and runtime property updates without regenerating stylesheets. It utilizes a build-time evaluation engine to resolve interpolations and a hashing system to generate scoped class names that prevent style collisions. The project c

    TypeScript
    在 GitHub 上查看↗12,335
  • facebook/stylexfacebook 的头像

    facebook/stylex

    9,126在 GitHub 上查看↗

    StyleX is a type-safe CSS-in-JS library and atomic CSS compiler that transforms JavaScript style definitions into optimized static CSS and type-safe class names. It functions as a multi-framework styling tool, generating standard CSS assets compatible with various JavaScript UI frameworks and server components. The system includes a CSS design token system and theme engine for managing shared constants and composing visual schemes. It allows for the creation of light, dark, and custom themes through variable overrides and token inheritance. The project covers component styling through object

    JavaScript
    在 GitHub 上查看↗9,126
  • vanilla-extract-css/vanilla-extractvanilla-extract-css 的头像

    vanilla-extract-css/vanilla-extract

    10,387在 GitHub 上查看↗

    vanilla-extract is a type-safe CSS-in-JS library and zero-runtime CSS framework. It uses TypeScript to define styles and design tokens, compiling these definitions into static CSS files during the build process to eliminate styling overhead in the browser. The system acts as a scoped CSS generator, producing unique class names and local variables to prevent global style leakage and naming collisions. It provides a type-safe styling tool that validates CSS property values and ensures design tokens adhere to defined themes during development. The framework covers comprehensive styling utilitie

    TypeScript
    在 GitHub 上查看↗10,387
查看 Compiled 的所有 30 个替代方案→

包含 Compiled 的精选搜索

收录 Compiled 的精选合集。
  • 零运行时 CSS-in-JS 库