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

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

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

mui/pigment-css

0
View on GitHub↗
1,125 星标·55 分支·TypeScript·MIT·7 次浏览github.com/mui/pigment-css/discussions/424↗

Pigment Css

Pigment CSS 是一款与框架无关的样式工具,将组件样式处理从浏览器运行时转移到了构建阶段。通过在编译期间解析组件源代码和主题配置,它生成独立、优化的 CSS 文件和标准类名,从而消除了运行时样式计算的需求。

该库提供了一个管理设计令牌(如颜色和间距)的系统,将其转换为原生的 CSS 变量。这种方法允许在不需要 JavaScript 引擎的情况下实现动态样式和主题感知逻辑。它还支持基于组件的样式封装,使开发者能够定义可重用的样式和基于变体的逻辑,并保持隔离和可维护性。

除了核心样式功能外,该工具还通过为从右到左(RTL)布局生成双向 CSS 规则,提供了对国际化用户界面的自动化支持。它还提供了定义全局样式、创建可重用动画关键帧以及为主题覆盖暴露组件插槽的功能。该框架通过在构建过程中将共存样式提取为静态资产,从而集成到现代 Web 环境中。

Features

  • CSS-in-JS Compilers - Provides a zero-runtime styling framework that compiles component-level CSS-in-JS definitions into static assets during the build phase.
  • Design Tokens - Configures central theme objects containing design values that inject into styles during the build process.
  • Build-Time Style Compilers - Analyzes component logic at build time to convert shorthand properties and style objects into standard CSS class names.
  • Zero-Runtime Styling Engines - Resolves all component styles and variants during compilation to remove the need for a browser-side styling library.
  • Build-Time CSS Extraction - Extracts component styles into standalone CSS files during the build process to eliminate runtime overhead.
  • Static Style Generators - Compiles dynamic component styles into optimized, static CSS files during the build process to eliminate runtime styling overhead.
  • CSS Variable Theming - Transforms centralized design tokens into native CSS variables to enable dynamic, theme-aware styling without a JavaScript runtime engine.
  • Design Token Systems - Provides a configuration-driven system for managing design tokens and transforming them into CSS variables for consistent application styling.
  • Right-To-Left Support - Automatically generates mirrored CSS rules for right-to-left languages during the build process.
  • RTL Generation Tools - Automatically generates mirrored stylesheets for right-to-left languages by detecting layout direction attributes.
  • Component Styling - Defines encapsulated component styles and variant-based logic that compiles into standard class names and CSS rules.
  • Style Encapsulations - Supports encapsulated, reusable component styles that remain isolated and maintainable through build-time processing.
  • Global CSS Stylings - Injects site-wide styles into the application bundle from a top-level entry point for consistent visual presentation.
  • Static Style Extraction - Extracts colocated styles into static CSS files during the build process to eliminate runtime styling overhead.
  • CSS Styling - Creates static CSS classes from style objects or theme-aware callbacks that extract into external files.

Star 历史

mui/pigment-css 的 Star 历史图表mui/pigment-css 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

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

Start searching with AI

Pigment Css 的开源替代方案

相似的开源项目,按与 Pigment Css 的功能重合度排序。
  • atlassian-labs/compiledatlassian-labs 的头像

    atlassian-labs/compiled

    2,049在 GitHub 上查看↗

    Compiled is a styling framework for React that converts component-level styles into static, atomic CSS files during the build process. By utilizing build-time abstract syntax tree transformations, the library eliminates the need for runtime style injection, ensuring that styles are processed and optimized before the application executes. The framework distinguishes itself by decomposing complex style objects into individual, reusable utility classes, which minimizes total stylesheet size. It maintains support for dynamic component properties by mapping them to CSS custom variables, allowing f

    TypeScriptbabelcsscss-in-js
    在 GitHub 上查看↗2,049
  • 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
查看 Pigment Css 的所有 30 个替代方案→

常见问题解答

mui/pigment-css 是做什么的?

Pigment CSS 是一款与框架无关的样式工具,将组件样式处理从浏览器运行时转移到了构建阶段。通过在编译期间解析组件源代码和主题配置,它生成独立、优化的 CSS 文件和标准类名,从而消除了运行时样式计算的需求。

mui/pigment-css 的主要功能有哪些?

mui/pigment-css 的主要功能包括:CSS-in-JS Compilers, Design Tokens, Build-Time Style Compilers, Zero-Runtime Styling Engines, Build-Time CSS Extraction, Static Style Generators, CSS Variable Theming, Design Token Systems。

mui/pigment-css 有哪些开源替代品?

mui/pigment-css 的开源替代品包括: atlassian-labs/compiled — Compiled is a styling framework for React that converts component-level styles into static, atomic CSS files during… 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… seek-oss/treat — Treat is a styling library that extracts CSS from JavaScript definitions during the build process to eliminate runtime… tamagui/tamagui — Tamagui is a cross-platform user interface framework designed to build high-performance, themeable applications that…

包含 Pigment Css 的精选搜索

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