awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
unocss avatar

unocss/unocss

0
View on GitHub↗
18,854 stars·970 forks·TypeScript·10 viewsunocss.dev↗

Unocss

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 variant generation, enabling developers to define complex design systems that integrate directly into their existing build pipelines.

Beyond core generation, the project provides a comprehensive suite of tools for managing CSS output, including virtual layering for specificity control, responsive breakpoint configuration, and automated source code transformations. It also features robust developer experience enhancements, such as real-time IDE autocompletion, visual documentation previews, and interactive testing environments, to streamline the styling workflow.

The project is designed to integrate into standard frontend build pipelines and includes extensive support for component-based frameworks. It is distributed as a TypeScript-based library with documentation and tooling available for immediate project integration.

Features

  • Utility-First CSS Frameworks - Provides atomic CSS generation, design token management, and customizable presets for building consistent user interfaces.
  • CSS Build Tools - A build-time engine that scans source code to generate and inject only the CSS utilities actually used.
  • CSS Generation Tools - Scans source files to generate only the necessary CSS rules at build-time, minimizing bundle size.
  • CSS Injection - Generates and injects utility-based styles dynamically during the build process to minimize bundle size.
  • Design Tokens - Merges user-defined theme values like colors and spacing into the default style system to ensure consistent design across the project.
  • CSS Styling - A modular library for managing design systems, responsive layouts, and component-based styling through dynamic CSS generation.
  • Content-Scanning - Parses component files to identify and generate atomic CSS utilities from class directives and attributes.
  • Shareable Configurations - Enables the distribution and reuse of configuration settings through shareable packages that merge into project configurations.
  • Design System Implementations - Defines shared design tokens and configuration presets to maintain consistent visual properties across the application.
  • Rule Configuration Engines - Maps utility class patterns to CSS declarations using a centralized theme and rule definition system.
  • CSS Variable Theming - Extracts theme configurations into CSS variables to optimize bundle size and enable dynamic styling.
  • CSS Class-Based Styling - Maps specific utility class names or patterns to CSS declarations, enabling the generation of atomic styles based on project configuration.
  • Class Merging - Groups multiple atomic utility classes into a single hashed CSS class name during build time to reduce HTML markup size.
  • Performance Optimizations - Creates CSS utility classes dynamically based on actual usage patterns to reduce total file weight.
  • Editor Integrations - Integrates utility suggestions, diagnostics, and hover documentation directly into the code editor.
  • Framework-Specific Integrations - Provides specialized plugins to ensure seamless compatibility with component-based architectures.
  • Plugin-Based Architectures - Extends the core engine with modular rule sets and configuration presets to support diverse design systems.
  • Color Themes - Applies color schemes to elements by mapping utility classes to a defined theme color palette.
  • Dark Mode Strategies - Generates class-based CSS selectors to toggle styles when a dark mode parent class is present in the document.
  • Responsive Breakpoints - Defines and applies media query breakpoints through utility classes to create adaptive interfaces.
  • Style Configurations - Provides tools for defining and loading collections of rules, variants, and design system presets.
  • Typography - Applies standardized styling and formatting to text content to ensure consistent visual hierarchy.
  • Attribute-Based Directives - Defines utility classes as HTML attributes instead of long class strings to improve readability and maintainability of markup.
  • CSS Variant Modifiers - Produces multiple CSS rules from a single utility definition, allowing for complex styling like hover states or nested selectors.
  • Configuration Autocompletion - Defines custom patterns and shorthand aliases for CSS utility suggestions to improve developer experience in IDEs and playgrounds.
  • Global Configurations - Defines custom rules, presets, and default settings to control how styles are generated and applied within a browser environment.
  • Build Pipeline Integrations - Hooks into the build pipeline to generate and inject utility-based styles dynamically during bundling.
  • CSS Animation Utilities - Provides a library of animation utilities with support for custom keyframes, durations, and timing functions.
  • Icon Integration Tools - Embeds and transforms SVG icon sets directly into stylesheets to eliminate external dependencies.
  • Breakpoint Configurations - Generates media queries based on named configuration values to simplify responsive layout creation.
  • Dynamic Style Injection - Embeds generated utility CSS directly into component style blocks to eliminate external stylesheet dependencies.
  • CSS Specificity Modifiers - Increases utility specificity by applying important flags or prepending parent selectors to ensure styles override existing CSS rules.
  • CSS Layer Configurations - Assigns custom CSS rules to specific named layers to control their generation order and grouping within the final stylesheet.
  • Component Preprocessing Tools - Integrates utility styles during the build process to create self-contained components without external CSS files.
  • JSX Transformers - Converts JSX attributes into atomic CSS utility classes by parsing element properties and mapping them to defined style rules.
  • Documentation Previewers - Displays CSS previews and documentation when hovering over utility classes within the editor.
  • Interactive REPLs - Provides an interactive environment to experiment with utility classes and preview their resulting CSS output based on the current project configuration.
  • Build Tool Integrations - Integrates styling engines directly into standard frontend build pipelines for automated style injection.
  • Code Transformation Engines - Applies automated code transformations to CSS utilities, such as expanding shorthand variants or processing directives, during the build process.
  • File Change Detection - Monitors source files for modifications and automatically regenerates CSS output during development.
  • Icon Set Integrations - Integrates icon libraries directly into the CSS generation pipeline to serve icons as pure CSS.
  • Utility Filtering Systems - Ensures specific CSS utilities are generated or prevented from being generated to maintain strict design constraints.
  • Editor Visualization Tools - Displays inline decorations and tooltips for CSS utilities directly in the editor to provide immediate visual feedback.
  • Utility Composition Engines - Merges multiple utility classes into a single rule to reduce code repetition and maintain clean stylesheets.
  • Tag-Based Styling Systems - Embeds utility rules directly into HTML tag names to apply styles without requiring class attributes.
  • Color Mode Utilities - Provides utilities to swap text and element colors for dark mode support via container classes.
  • Pointer-Based Hover Restrictions - Applies hover styles conditionally based on device capabilities to prevent persistent hover states on touch screens.
  • Spacing Scales - Adjusts text and spacing using predefined scale variants that integrate with responsive breakpoints.
  • Custom Directives - Processes custom CSS directives like applying utility sets, referencing theme breakpoints, and accessing configuration values directly within style definitions.
  • Standard HTML Attribute Mapping - Applies custom prefixes or ignores specific attributes to prevent naming collisions between styling utilities and standard HTML properties.

Star history

Star history chart for unocss/unocssStar history chart for unocss/unocss

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Open-source alternatives to Unocss

Similar open-source projects, ranked by how many features they share with Unocss.
  • emotion-js/emotionemotion-js avatar

    emotion-js/emotion

    18,017View on GitHub↗

    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

    JavaScriptbabel-plugincsscss-in-js
    View on GitHub↗18,017
  • tailwindlabs/tailwindcsstailwindlabs avatar

    tailwindlabs/tailwindcss

    95,592View on GitHub↗

    Utility-first CSS framework for fast, design-system-friendly styling.

    TypeScriptcssframeworkutility
    View on GitHub↗95,592
  • tailwindlabs/tailwindcss-typographytailwindlabs avatar

    tailwindlabs/tailwindcss-typography

    6,249View on GitHub↗

    Tailwind CSS Typography is a plugin for the Tailwind CSS framework that provides hand-tuned typographic defaults for blocks of vanilla HTML content, such as content from Markdown or a CMS. It applies beautiful prose styles to HTML content using a single class, eliminating the need for custom CSS to style rich text. The plugin distinguishes itself by offering deep customization and control over typography. Users can adjust the overall font size of prose content across five predefined sizes, select from five built-in gray-scale palettes to match a project's color scheme, and seamlessly adapt ty

    JavaScript
    View on GitHub↗6,249
  • webstudio-is/webstudiowebstudio-is avatar

    webstudio-is/webstudio

    8,240View on GitHub↗

    Webstudio is a visual CMS and website builder that provides a visual development environment for designing and publishing websites. It functions as an AI-powered design tool, a REST and GraphQL API client, and an atomic CSS compiler. The platform distinguishes itself through generative AI capabilities for creating layout variants and refining visual styles from text prompts. It integrates a headless CMS workflow that maps external data sources to visual components and utilizes a specialized compiler to convert design tokens into deduplicated atomic CSS for optimized page load speeds. The sys

    TypeScriptaccessibilityalternativecloudflare
    View on GitHub↗8,240
See all 30 alternatives to Unocss→

Frequently asked questions

What does unocss/unocss do?

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.

What are the main features of unocss/unocss?

The main features of unocss/unocss are: Utility-First CSS Frameworks, CSS Build Tools, CSS Generation Tools, CSS Injection, Design Tokens, CSS Styling, Content-Scanning, Shareable Configurations.

What are some open-source alternatives to unocss/unocss?

Open-source alternatives to unocss/unocss include: emotion-js/emotion — This project is a styling library and framework designed for component-based architectures, enabling developers to… tailwindlabs/tailwindcss — Utility-first CSS framework for fast, design-system-friendly styling. tailwindlabs/tailwindcss-typography — Tailwind CSS Typography is a plugin for the Tailwind CSS framework that provides hand-tuned typographic defaults for… webstudio-is/webstudio — Webstudio is a visual CMS and website builder that provides a visual development environment for designing and… vuejs/vue — Vue is a progressive, component-based JavaScript framework designed for building reactive user interfaces and… windicss/windicss — Windi CSS is a utility-first CSS framework that generates only the CSS classes actually used in a project, scanning…