devup-ui

Extract CSS from React components at build time using a Rust/WASM engine.

363|31|Updated Dec 31, 2024
One-click install
npx skills add https://github.com/dev-five-git/devup-ui --skill devup-ui
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: devup-ui
Source: https://github.com/dev-five-git/devup-ui/tree/main
Command: npx skills add https://github.com/dev-five-git/devup-ui --skill devup-ui

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Zero-runtime CSS-in-JS for React is achieved by extracting styles at build time, producing static CSS and compile-time placeholders, eliminating runtime style computation and FOUC.

Core Features & Use Cases

  • Build-time CSS extraction from JSX styles, with no client-side JS for styling
  • Theme tokens and responsive design supported via CSS variables and tokens
  • Plugins ecosystem: Vite, Next.js, Webpack, Rsbuild, Bun integration for CSS extraction
  • Use cases: building design systems, component libraries, server components, and high-performance apps

Quick Start

Install @devup-ui/react and configure devup.json to begin extracting CSS at build time.

Frequently Asked Questions about devup-ui

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is zero-runtime CSS-in-JS and how does build-time extraction work?

Zero-runtime CSS-in-JS extracts styles at build time to produce static CSS, eliminating client-side style computation. Build-time extraction uses a Rust/WASM engine to parse JSX styles and generate compile-time placeholders, preventing flash of unstyled content (FOUC).

Does build-time CSS extraction work with Vite, Next.js, and Webpack?

Yes, build-time CSS extraction supports Vite, Next.js, Webpack, Rsbuild, and Bun through a dedicated plugin ecosystem. These plugins integrate the Rust/WASM extraction engine into your build pipeline to automatically generate static CSS from React components.

How do I set up zero-runtime CSS-in-JS for a React component library?

Install the @devup-ui/react package and configure devup.json to begin build-time CSS extraction. This setup allows you to author styles in JSX while a Rust/WASM engine outputs static CSS files, ideal for high-performance component libraries and design systems.

Can I use CSS variables and theme tokens for responsive design with build-time CSS extraction?

Yes, build-time CSS extraction supports theme tokens and responsive design via CSS variables. You can define token-driven styles in your React components, and the extraction engine will convert them into static CSS while preserving the dynamic theming capabilities.

What are the limitations of build-time CSS extraction for React server components?

Build-time CSS extraction eliminates runtime style computation, which limits dynamic styling that depends on client-side runtime values. It is optimized for static CSS generation and compile-time placeholders, making it best suited for server-rendered apps and design systems rather than highly dynamic runtime themes.