15 रिपॉजिटरी
Plugins and loaders for minifying, extracting, and purging unused CSS styles.
Explore 15 awesome GitHub repositories matching part of an awesome list · CSS Optimization. Refine with filters or upvote what's useful.
Layui is a web UI component library, frontend layout framework, and CSS asset optimizer. It provides a collection of pre-styled visual elements and layout patterns used to build browser-native web interfaces. The framework enables the composition of structured web pages through standardized design assets and CSS components. It includes tools for compressing stylesheets and resolving imports to improve loading speeds across different web browsers. The library covers web UI development and frontend layout composition, facilitating rapid interface prototyping by assembling functional frontends
Includes tools for minifying and optimizing CSS to improve page load times and rendering.
PostCSS is a CSS post-processor and abstract syntax tree transformation tool that parses stylesheets into a structured tree for programmatic analysis and modification. It functions as a plugin-driven pipeline where JavaScript plugins can modify, insert, or delete nodes to transform styles. The project provides a framework for building a custom plugin ecosystem to extend the CSS language with non-standard features such as loops, conditionals, and shorthand properties. It supports multi-syntax parsing through pluggable parsers and stringifiers, allowing it to process various style formats and c
Implements a pipeline for minifying and purging unused CSS styles to optimize website performance.
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
Zero-runtime CSS-in-JS library using build-time transformations.
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
Generates tailored stylesheets for different screen dimensions to ensure optimal above-the-fold rendering across various devices.
PurifyCSS is a CSS unused style remover and payload optimizer that analyzes HTML and templates to identify and delete unused CSS selectors from stylesheets. It functions as a frontend build automation tool that integrates into development pipelines to automatically strip redundant styles and minify assets during the compilation phase. The tool provides specific optimization for single page applications, identifying and removing redundant CSS while ensuring necessary styles are preserved across dynamic views and states. The utility covers a range of capabilities including static content analy
Remove unused CSS selectors from stylesheets.
Uncss is a build pipeline CSS optimizer and optimization tool designed to remove unused styles from stylesheets. It analyzes HTML files to identify and strip selectors that do not match any elements in the markup, reducing the final stylesheet size and overall web page weight. The tool functions as a DOM-based CSS analyzer that can simulate runtime document states. It provides mechanisms to preserve required selectors through the use of literal names, regular expressions, and specialized CSS comment markers to ensure styles triggered by user interactions are not deleted. The project supports
Provides a utility for purging unused CSS styles to optimize stylesheet size.
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
Optimizes style definitions into minified and efficient CSS to improve loading speeds.
PurgeCSS is a build-pipeline CSS purger and optimizer designed to reduce the final size of stylesheets. It functions as a tree shaking tool that scans HTML and JavaScript files to identify and remove unused selectors from CSS. The tool optimizes CSS payloads by performing static content analysis to detect which styles are actually used in the markup. It uses regex-based pattern matching to find potential class names without executing code and employs a PostCSS-based AST transformation to safely delete unused rules. The project provides capabilities for frontend build automation, allowing the
Remove unused CSS to reduce file size.
loadCSS एक एसिंक्रोनस CSS लोडर और नॉन-ब्लॉकिंग स्टाइलशीट इंजेक्टर है। यह एक उत्तरदायी यूज़र इंटरफेस बनाए रखने के लिए ब्राउज़र रेंडरिंग प्रक्रिया को अवरुद्ध किए बिना स्टाइलशीट लोड करने के लिए एक तकनीकी कार्यान्वयन प्रदान करता है। यह प्रोजेक्ट यह पता लगाने के लिए एक विशिष्ट CSS लोडिंग पैटर्न को लागू करता है कि एसिंक्रोनस स्टाइलशीट ने विभिन्न वेब ब्राउज़रों में लोड होना कब समाप्त कर लिया है। यह सुसंगत विज़ुअल व्यवहार सुनिश्चित करने के लिए स्टाइलशीट के पूरी तरह से लोड होने के बाद ही कॉलबैक फंक्शन्स के निष्पादन की अनुमति देता है। यह टूल प्रोग्रामेटिक स्टाइलशीट इंसर्शन, एप्लिकेशन लॉजिक के आधार पर डायनामिक इंजेक्शन और स्टाइलशीट लोड डिटेक्शन को कवर करता है। यह फ्रंटएंड प्रदर्शन को ऑप्टिमाइज़ करने के लिए स्टाइल के अनुरोध के तरीके को प्रबंधित करता है।
Asynchronously load CSS files to prevent render-blocking.
cssnano is a CSS compression tool and minifier that reduces the file size and gzip footprint of stylesheets. It operates as a build pipeline optimizer and code transformer that removes whitespace and comments while shortening colors and gradients into their smallest possible representations. The tool uses a modular plugin architecture and preset-based optimization levels to balance compression intensity with browser compatibility. It allows for the adjustment of output based on a target list of supported browsers to ensure minified styles remain compatible across different environments. The
Provides advanced CSS optimization by minifying styles and shortening colors and gradients for improved page performance.
North एक रिस्पॉन्सिव वेब डिज़ाइन पद्धति और Sass-आधारित CSS आर्किटेक्चर फ्रेमवर्क है। यह विभिन्न ब्राउज़र क्षमताओं और स्क्रीन साइज़ों में एक कंसिस्टेंट अनुभव सुनिश्चित करने के लिए फ्लूइड ग्रिड और प्रोग्रेसिव एन्हांसमेंट तकनीकों का उपयोग करके मोबाइल-फर्स्ट यूज़र इंटरफेस बनाने के लिए एक सिस्टम प्रदान करता है। इस प्रोजेक्ट में एक स्टैंडर्ड CSS नेमिंग सिस्टम है जो प्रोग्रामेटिक रूप से क्लास नाम उत्पन्न करने के लिए Sass मिक्सिन्स का उपयोग करता है, जो कंपोनेंट्स, लेआउट्स और स्टेट्स के बीच अंतर करता है। यह एक फ्रंटएंड प्रोजेक्ट स्कैफोल्डिंग टूल के रूप में भी कार्य करता है, जो प्री-कॉन्फ़िगर स्टाइलशीट और टास्क रनर्स के साथ नए वातावरण को बूटस्ट्रैप करने के लिए एक जनरेटर प्रदान करता है। स्टाइलिंग से परे, यह फ्रेमवर्क RDFa मेटाडेटा और वेब एक्सेसिबिलिटी ऑडिटिंग के साथ सिमेंटिक HTML कार्यान्वयन सहित वेब डेवलपमेंट स्टैंडर्ड्स के एक व्यापक दायरे को कवर करता है। इसमें कंटेंट-फर्स्ट डिज़ाइन रणनीति और सूचना आर्किटेक्चर और यूज़र पर्सोना से प्रोडक्शन-रेडी कंपोनेंट्स तक के ट्रांज़िशन को कोऑर्डिनेट करने के लिए एक एजाइल फ्रंटएंड वर्कफ़्लो शामिल है। इस सिस्टम में प्रारंभिक सेटअप को तेज़ करने के लिए CSS नेमिंग और स्कैफोल्डिंग प्रोजेक्ट टेम्पलेट्स को स्वचालित करने के लिए टूल्स शामिल हैं।
Reduces stylesheet bloat by preventing the duplication of properties across selectors.
This is a Webpack extension used to extract CSS from JavaScript files into separate, standalone stylesheets for production builds. It functions as a CSS bundler and asset optimizer that separates styles from script bundles to enable parallel loading and prevent flashes of unstyled content. The project provides utilities for generating JavaScript module exports that map local style definitions to application components. It also implements dynamic theme management by conditionally loading different CSS variants via resource queries and supports long-term browser caching through the use of conte
Optimizes CSS delivery by extracting styles from JS to enable parallel loading and prevent FOUC.
यह प्रोजेक्ट एक क्रॉस-प्लेटफॉर्म मोबाइल प्रोजेक्ट टेम्प्लेट और TypeScript बॉयलरप्लेट है जिसे Expo इकोसिस्टम का उपयोग करके React Native एप्लिकेशन को बूटस्ट्रैप करने के लिए डिज़ाइन किया गया है। यह प्रारंभिक विकास में तेज़ी लाने के लिए एक मानकीकृत फ़ोल्डर संरचना के साथ पहले से कॉन्फ़िगर किया गया आर्किटेक्चर प्रदान करता है। यह टेम्प्लेट अपनी फीचर-आधारित प्रोजेक्ट आर्किटेक्चर और व्यापक ऑटोमेशन सूट के कारण अलग है। यह नेविगेशन के लिए फाइल-आधारित रूटिंग, स्टाइलिंग के लिए यूटिलिटी-फर्स्ट मोबाइल UI किट, और रिमोट API डेटा को फेच और कैश करने के लिए सर्वर स्टेट मैनेजमेंट लेयर को एकीकृत करता है। सेटअप में एप्लिकेशन बाइनरीज़ के निर्माण, परीक्षण और वितरण को स्वचालित करने के लिए GitHub Actions और EAS का उपयोग करने वाली एक मोबाइल CI/CD पाइपलाइन शामिल है। इसकी व्यापक क्षमताओं में स्कीमा-आधारित फॉर्म वैलिडेशन, सेशन पर्सिस्टेंस के लिए एन्क्रिप्टेड लोकल स्टोरेज, और ट्रांसलेशन फाइल वैलिडेशन के साथ मल्टी-लैंग्वेज लोकलाइजेशन शामिल है। इसमें लिंटिंग और टाइप चेक के लिए git हुक्स, और स्वचालित यूनिट और एंड-टू-एंड UI टेस्टिंग जैसे गुणवत्ता प्रवर्तन टूल्स भी शामिल हैं।
Scans styles to prevent unknown classes and unnecessary whitespace in utility-first CSS implementations.
astroturf lets you write CSS in your JavaScript files without adding any runtime layer, and with your existing CSS processing pipeline.
Zero-runtime CSS-in-JS library that extracts styles to CSS files.
analyze-css
Analyze CSS complexity and identify performance bottlenecks.