Compiled ist ein Styling-Framework für React, das Komponenten-Styles während des Build-Prozesses in statische, atomare CSS-Dateien umwandelt. Durch die Nutzung von Build-Time-AST-Transformationen (Abstract Syntax Tree) eliminiert die Bibliothek die Notwendigkeit für Runtime-Style-Injection und stellt sicher, dass Styles vor der Ausführung der Anwendung verarbeitet und optimiert werden.
Die Hauptfunktionen von atlassian-labs/compiled sind: 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.
Open-Source-Alternativen zu atlassian-labs/compiled sind unter anderem: 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…
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
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
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
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