27 dépôts
Wraps raw strings for inclusion in component style definitions to allow programmatic generation of CSS values.
Distinct from Dynamic Styling Systems: Distinct from general dynamic styling: focuses on string-based injection for programmatic CSS generation.
Explore 27 awesome GitHub repositories matching user interface & experience · Dynamic Style Injection. Refine with filters or upvote what's useful.
Lit is a library for building lightweight, interoperable web components. It provides a base class that leverages native browser APIs to encapsulate state, logic, and styles, allowing developers to create custom elements that function consistently across any modern web project. The framework distinguishes itself through a reactive property system that automatically triggers efficient, batched DOM updates. By utilizing tagged template literals, it defines declarative UI structures that are compiled into optimized update instructions. Its architecture emphasizes modularity through a reactive con
Wraps raw strings for inclusion in component style definitions to allow programmatic generation of CSS values while maintaining safety.
Leptos is a full-stack Rust web framework designed for building reactive applications that share logic and types between the server and the browser. It provides a comprehensive toolkit for developing web interfaces where specific DOM nodes update automatically in response to changes in underlying reactive signals, rather than re-rendering entire component trees. The framework distinguishes itself through a fine-grained reactivity model that tracks dependencies at the individual data point level. It utilizes compile-time template transformation to convert declarative HTML-like syntax into opti
Injects scoped styles dynamically during execution to style components based on application logic.
huashu-design is a design system infrastructure and a set of specialized design engines for high-fidelity HTML prototyping, quality evaluation, and presentation conversion. It provides tools for generating interactive single-file HTML mockups, frame-based motion design, and a visual evaluator that analyzes design quality across five dimensions using radar charts. The system distinguishes itself through a translation pipeline that converts HTML slide decks into editable PowerPoint and PDF objects rather than flat images. It includes a motion design engine that uses a time-slice model to render
Updates visual attributes in real-time by mapping a control interface to CSS variables.
UnoCSS is an atomic CSS engine and utility-first framework that generates styles on-demand based on the specific classes used in your source code. By scanning your project files during the build process, it produces only the CSS necessary for your application, effectively minimizing bundle size and eliminating unused styles. The engine distinguishes itself through a highly modular, configuration-driven architecture that allows for deep customization of design tokens, rules, and presets. It supports advanced styling patterns such as attribute-based styling, tag-based styling, and dynamic varia
Embeds generated utility CSS directly into component style blocks to eliminate external stylesheet dependencies.
This project is a styling library and framework designed for component-based architectures, enabling developers to define and manage visual styles directly within JavaScript or TypeScript. It functions as a styling engine that generates unique class names from style definitions, ensuring encapsulated, predictable, and maintainable visual presentation across applications. By integrating with component logic, it allows for the creation of reusable UI elements with styles defined through template literals or object syntax. The library distinguishes itself through a comprehensive suite of build-t
Generates unique CSS class names and injects style rules dynamically during application execution.
Sass is a stylesheet compilation engine and CSS preprocessor that extends standard CSS with variables, nested rules, mixins, and functions. It functions as a comprehensive design system tool, enabling developers to organize complex stylesheets into modular, reusable components while automating the transformation of advanced syntax into browser-compatible CSS. The project distinguishes itself through its sophisticated build automation and language-level extensibility. It provides robust support for programmatic style generation, including conditional logic, iterative loops, and unit-aware math
Uses interpolation to dynamically inject variables and function results into selector names.
Auto-animate is a framework-agnostic JavaScript animation library used to automatically animate the entry, exit, and movement of elements within a document. It functions as a transition tool that adds smooth motion to web application elements to prevent abrupt layout jumps during content changes. The utility is designed to be reduced motion compliant, automatically detecting and respecting system-level accessibility settings to disable animations for users with motion sensitivities. It also features a plugin system that allows the replacement of default fade and scale transitions with custom
Allows the programmatic injection of custom CSS keyframes to override default transition logic.
React is a JavaScript library for building user interfaces through the composition of modular, self-contained components. It employs a declarative programming model where developers describe the desired visual state, and the library automatically manages the underlying document updates and state synchronization. By utilizing a virtual representation of the document, it calculates and applies minimal changes to the browser, ensuring efficient rendering even in complex applications. The library distinguishes itself through a sophisticated scheduling system that manages rendering work in increme
Enables programmatic generation and injection of CSS rules for component styling.
styled-jsx is a CSS-in-JS library and styling framework for JSX components. It functions as a scoped CSS engine that uses compile-time transformations to generate unique class names, preventing style leakage between components. The system includes a server-side CSS renderer that flushes styles into HTML to prevent layout flicker during the first paint. It ensures security compliance by attaching per-request nonces to generated style tags to satisfy Content Security Policy requirements. The framework covers global CSS management with deduplication, dynamic styling via template interpolation,
Uses template interpolation to inject dynamic CSS values derived from component state into styles at runtime.
Radium is a CSS-in-JS styling library that transforms static inline styles into dynamic, responsive, and animated CSS for React components. It functions as a component style toolchain and React inline style enhancer, allowing developers to define styles using plain JavaScript objects while gaining capabilities like browser state handling, vendor prefixing, and style composition. The library extends React's inline style system by automatically resolving browser state styles for hover, focus, and active interactions without manual event handlers. It supports inline media queries that evaluate a
Generates unique animation names and injects @keyframes rules into the document at runtime.
This project is a jQuery plugin and animation extension that enables hardware-accelerated CSS3 transitions and transformations. It serves as a wrapper that shifts animation logic from script-based updates to native browser style transitions. The library provides tools for managing the scale, rotation, and orientation of page elements. It uses relative-value coordinate calculations to handle element movement and maps generic transformation properties to browser-specific vendor prefixes. The capability surface covers high-performance visual effects, including the management of timing and easin
Calculates and applies inline CSS values to trigger visual state changes programmatically.
bounce.js est une bibliothèque JavaScript et un wrapper programmatique pour générer et appliquer des animations CSS3 keyframe et des transformations 3D. Il fournit un outil pour créer des séquences d'animation complexes sans avoir besoin d'écrire manuellement des règles de feuille de style. La bibliothèque permet la création d'animations en enchaînant des transformations d'échelle, de rotation, de translation et d'inclinaison. Ces séquences générées peuvent être enregistrées sous des noms uniques pour être réutilisées sur plusieurs éléments. Le système gère le cycle de vie de l'animation via des fonctions de rappel qui se déclenchent lorsqu'une séquence visuelle se termine. Il inclut également un vérificateur de compatibilité pour vérifier si l'environnement du navigateur prend en charge les transformations 3D et les spécifications de keyframe requises.
Dynamically generates unique animation names and injects the corresponding CSS keyframe rules into the document head.
Android-Iconics est une bibliothèque d'icônes pour les applications Android qui permet d'utiliser des polices d'icônes et des vecteurs SVG en tant que drawables. Elle fournit un système pour le rendu de graphiques vectoriels et l'importation de jeux d'icônes personnalisés via des fichiers de police et des mappages CSS. Le projet inclut un moteur de rendu vectoriel SVG dédié et un outil pour intégrer des polices d'icônes personnalisées. Il dispose également d'un utilitaire de mise en miroir qui inverse automatiquement les icônes pour les mises en page de droite à gauche (RTL) afin de maintenir une cohérence visuelle entre les différentes locales. La bibliothèque couvre la personnalisation du style des icônes pour des propriétés telles que la couleur, la taille et la marge, et prend en charge l'intégration des icônes directement dans les chaînes de texte. Elle gère en outre la conversion des ressources vectorielles en drawables natifs pour une utilisation au sein des interfaces utilisateur et des mises en page.
Provides a configurable styling layer to apply visual properties like color and size to vector graphics at runtime.
react-burger-menu est un composant de navigation latérale pour les applications React. Il implémente un pattern de menu hors-canevas (off-canvas) utilisant des transitions CSS et des animations SVG pour créer des effets de glissement. Le composant fournit des animations de transition configurables, incluant des effets de glissement, d'empilement et de mise à l'échelle. Il utilise le morphing de chemin SVG pour animer l'icône hamburger lors des interactions avec le menu. La bibliothèque prend en charge la personnalisation du style du menu via des objets de configuration et des feuilles de style externes. Elle est conçue pour une navigation web réactive en masquant les liens derrière un bouton bascule pour économiser de l'espace à l'écran.
Allows programmatic generation of menu styles through configuration objects and dynamic injection.
GitHub Corners est une collection de widgets d'appel à l'action web personnalisables conçus pour promouvoir des projets open source. Il fournit un composant UI léger qui agit comme un lien visuel, dirigeant les visiteurs du site web vers un dépôt de projet. Le projet permet une personnalisation étendue du style, permettant aux utilisateurs d'ajuster les couleurs et les tailles pour correspondre à une identité de marque spécifique. Ces rubans fonctionnent comme des éléments d'appel à l'action pour encourager les utilisateurs à voir ou forker le code source. Le système génère ces graphiques sous forme de graphiques vectoriels évolutifs (SVG) via un rendu d'image serverless. Les styles visuels et le contenu textuel sont déterminés en analysant les paramètres d'URL, qui sont ensuite mappés aux propriétés CSS en temps réel.
Implements programmatic CSS generation by mapping request parameters to specific style properties in real time.
move.js est un moteur de mouvement JavaScript et un framework d'animation CSS3 conçu pour animer les éléments DOM. Il fonctionne comme une bibliothèque d'animation DOM qui modifie les propriétés des éléments visuels et les couleurs au fil du temps. La bibliothèque sert de contrôleur d'accélération (easing) de courbe de Bézier CSS, utilisant des courbes cubiques pour gérer l'accélération et la décélération de l'animation. Elle permet une conception de mouvement séquentielle, autorisant plusieurs étapes visuelles à s'exécuter dans un ordre spécifique. Le framework couvre l'animation des propriétés d'élément telles que la position, la rotation, l'échelle, l'inclinaison et les couleurs. Il fournit des capacités pour les transitions de composants d'interface et l'application de fonctions d'accélération pour créer un mouvement naturel.
Updates the DOM by dynamically injecting CSS properties into element style objects to trigger visual shifts.
stroll.js est une bibliothèque d'animation UI frontend conçue pour transformer les listes web standard en affichages à défilement tridimensionnel. Elle fonctionne comme un outil pour créer des perspectives basées sur la profondeur en utilisant les transformations CSS3. La bibliothèque se spécialise dans les animations web 3D et le design de listes interactives. Elle implémente des effets visuels qui répondent au mouvement de l'utilisateur, ajoutant une profondeur spatiale et une perspective aux éléments de liste au fur et à mesure qu'ils sont parcourus.
Directly modifies the element style object in real time to trigger visual state changes based on scroll position.
zoom.js is a jQuery image zoom plugin and frontend image viewer designed to manage image expansion and high-resolution viewing. It functions as an image magnification library that enables smooth transitions from thumbnail images to full-size views within a web browser. The library provides visual detail magnification to increase the visibility of fine details and includes a trigger to open high-resolution versions of images in new browser tabs. These capabilities are implemented through coordinate-based position mapping and CSS-transition-driven animations to handle image gallery interaction
Programmatically modifies inline CSS properties to match the exact dimensions and offsets of the source image.
Typography.js is a configuration-driven engine designed to standardize web design systems by generating consistent CSS rules for font scales, line heights, and vertical rhythm. It functions as a centralized toolkit where developers define typographic settings within a single JavaScript object, which the engine then translates into a complete set of style rules for an entire project. The project distinguishes itself through its portability and extensibility, allowing design themes to be packaged as reusable objects that maintain a unified visual language across multiple applications. A modular
Inserts generated style sheets directly into the document or returns them as strings to ensure consistent visual rendering.
grunt-uncss is a CSS dead code eliminator and static analysis build tool. It functions as a Grunt CSS optimization plugin that identifies and deletes redundant style rules to reduce stylesheet file sizes and improve frontend performance. The tool analyzes HTML files and headless browser DOM states to detect styles that do not match any elements in the markup. It supports the protection of specific selectors through whitelists to ensure that styles for dynamically injected elements are preserved during the cleanup process. The project covers frontend asset minification by compressing cleaned
Ensures CSS remains functional for dynamically injected content by protecting specific selectors during cleanup.