7 Repos
Tools that compile dynamic styles into static CSS at build time.
Distinguishing note: Focuses on build-time compilation to remove runtime overhead.
Explore 7 awesome GitHub repositories matching web development · Static Style Generators. Refine with filters or upvote what's useful.
This project is a utility-first component library that provides a comprehensive suite of pre-styled, reusable interface elements. It functions as a build-time engine that generates design-system-compliant styles by mapping semantic tokens to standard HTML elements and utility classes. By compiling all component styles into static CSS at build time, the library eliminates the need for client-side style calculation, ensuring efficient performance. The library distinguishes itself through a configuration-driven architecture that manages color palettes and visual styles, enabling dynamic switchin
Compiles all component styles into static CSS at build time to eliminate the need for client-side style calculation.
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
Compiles styles into static files during the build process to eliminate browser-side computation.
Critical is a tool for extracting and inlining the minimum CSS required to render above-the-fold content. It identifies the styles necessary for the initial visible portion of a page to reduce render-blocking requests and improve page load speed. The project generates resolution-specific stylesheets to optimize the initial paint across different device dimensions. It includes a utility to rebase asset URLs within extracted styles, ensuring that images and fonts load correctly when stylesheets are moved to different directories or content delivery networks. The tool provides a command-line in
Functions as a build-time tool that compiles critical styles into static CSS to optimize initial paint.
Polished is a specialized toolkit for programmatically managing color palettes, converting CSS units, and optimizing style execution at build time. It provides a set of functions for manipulating colors, sizes, and spacing within JavaScript styles to maintain consistent visual themes. The toolset includes a color manipulation library for adjusting lightness, saturation, and transparency, as well as a CSS unit converter for calculating size values between pixels and rems. It also functions as a static style compiler that resolves static styling function calls during the build process to elimin
Compiles dynamic style function calls into static values during the build process to reduce runtime overhead.
Dieses Projekt ist ein responsives Layout-Framework für Angular, das ein System von Direktiven bereitstellt, um adaptive Benutzeroberflächen mittels CSS Flexbox und CSS Grid zu erstellen. Es enthält spezialisierte Bibliotheken zur Verwaltung der Ausrichtung flexibler Boxen und zur Strukturierung komplexer zweidimensionaler Seitengitter. Das Framework bietet einen Breakpoint-Monitoring-Service, um Media-Query-Änderungen programmatisch zu beobachten und Logik auszulösen, wenn Viewport-Dimensionen definierte Grenzen überschreiten. Zur Performance-Optimierung enthält es einen Build-Time-CSS-Generator, der SASS-Mixins verwendet, um statische Media-Query-Stylesheets zu erstellen, was den Bedarf an Laufzeit-Stilberechnungen reduziert. Das System deckt ein breites Spektrum an Layout-Funktionen ab, einschließlich Viewport-gesteuerter Sichtbarkeit, Drucklayout-Optimierung und suffixbasiertem responsivem Markup. Es bietet Werkzeuge zur Verwaltung von Container-Flow, Element-Skalierung und Layout-Abständen für sowohl Flexbox- als auch Grid-basierte Positionierung.
Compiles responsive layout rules into static CSS files at build time using SASS mixins to optimize runtime performance.
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. Das Framework zeichnet sich dadurch aus, dass es komplexe Style-Objekte in einzelne, wiederverwendbare Utility-Klassen zerlegt, was die Gesamtgröße der Stylesheets minimiert. Es unterstützt dynamische Komponenten-Eigenschaften durch Mapping auf CSS-Custom-Properties, was Laufzeit-Anpassungen ermöglicht, während die Performance-Vorteile der statischen Extraktion erhalten bleiben. Für ein vorhersehbares Rendering verwendet die Bibliothek eine deterministische Kaskaden-Reihenfolge, die generierte Regeln in priorisierte Gruppen sortiert, um Konflikte zu vermeiden. Das Projekt enthält umfassende Tools für die Integration in Build-Pipelines, einschließlich Unterstützung für die Transformation von Markup und die Durchsetzung von Styling-Konsistenz durch automatisierte Linting- und Validierungsregeln. Diese Funktionen stellen sicher, dass Komponenten-Styles idiomatisch und wartbar bleiben.
Compiles component-level styles into static CSS files during the build process to eliminate runtime style injection overhead.
Pigment CSS ist ein Framework-agnostisches Styling-Tool, das die Verarbeitung von Komponenten-Styles von der Browser-Runtime in die Build-Phase verlagert. Durch das Parsen von Komponenten-Quellcode und Theme-Konfigurationen während der Kompilierung generiert es eigenständige, optimierte CSS-Dateien und Standard-Klassennamen, wodurch die Notwendigkeit für Laufzeit-Style-Berechnungen effektiv eliminiert wird. Die Bibliothek bietet ein System zur Verwaltung von Design-Tokens, wie Farben und Abstände, indem sie diese in native CSS-Variablen umwandelt. Dieser Ansatz ermöglicht dynamisches Styling und Theme-bewusste Logik, ohne eine JavaScript-basierte Engine zu benötigen. Sie unterstützt auch komponentenbasierte Style-Kapselung, wodurch Entwickler wiederverwendbare Styles und variantenbasierte Logik definieren können, die isoliert und wartbar bleiben. Über das Kern-Styling hinaus enthält das Tool automatisierte Unterstützung für internationalisierte Benutzeroberflächen durch die Generierung bidirektionaler CSS-Regeln für Right-to-Left-Layouts. Es bietet zudem Funktionen zum Definieren globaler Styles, zum Erstellen wiederverwendbarer Animations-Keyframes und zum Bereitstellen von Komponenten-Slots für Theme-basierte Overrides. Das Framework integriert sich in moderne Webumgebungen, indem es kolokierte Styles während des Build-Prozesses in statische Assets extrahiert.
Compiles dynamic component styles into optimized, static CSS files during the build process to eliminate runtime styling overhead.