Tagged articles
CSS Modules
14 articles · Page 1 of 1

21CTOOct 1, 2026 · Frontend Development
GitHub completed a three-year migration from CSS-in-JS to CSS Modules, reducing server-side rendering time by 55% and component initialization by 25%, using feature flags, visual regression testing, and gradual rollout to migrate 7,760 sx prop usages across 8 engineers and later GitHub Copilot.
CSS ModulesCSS-in-JSFrontend Migration
0 likes · 6 min read

This article presents twelve practical methods—including BEM naming, CSS Modules, Shadow DOM, @scope, custom properties, and dynamic generation—to dramatically reduce CSS style collisions and achieve reliable style isolation in modern front‑end projects.
BEMCSSCSS Modules
0 likes · 4 min read

The article examines the drawbacks of writing raw CSS, explains how preprocessors, naming conventions, modular approaches, CSS‑in‑JS, and atomic‑CSS frameworks like Tailwind and UnoCSS address redundancy, maintenance, and scalability, and provides best‑practice recommendations for modern front‑end development.
CSSCSS ModulesTailwind
0 likes · 26 min read

Discover twelve effective strategies—including BEM naming, CSS Modules, Shadow DOM, @scope rule, and dynamic style generation—to dramatically reduce CSS conflicts and achieve robust style isolation in complex front‑end projects, complete with code examples and visual illustrations.
BEMCSSCSS Modules
0 likes · 4 min read

This guide explains how to improve CSS maintainability and performance in Vite projects by adding global SCSS variables, using CSS Modules, configuring PostCSS autoprefixer, and integrating the Windi CSS atomic framework with attributify and shortcuts, complete with code examples.
CSS EngineeringCSS ModulesVite
0 likes · 7 min read

After initially adopting Tailwind CSS for rapid UI development in a React real‑time chat app, our team reverted to SASS combined with CSS Modules because the growing utility‑class markup hurt readability, increased build times, and bloated the CSS bundle, ultimately delivering a more maintainable codebase and noticeably better performance.
CSS ModulesReactSass
0 likes · 8 min read

This article explains why CSS Modules combined with Less offers the most reliable, maintainable styling solution for micro‑frontend and back‑office projects, covering isolation, variable usage, class composition, third‑party overrides, and enhanced developer experience.
CSS ModulesStylingbest-practices
0 likes · 10 min read

The article explains why traditional global CSS is problematic for component‑based development, reviews several ways to write styles in React—including BEM‑constrained classNames, inline styling, CSS Modules and css‑loader—then introduces CSS‑in‑JS concepts, demonstrates the Emotion library, compares popular packages and offers practical recommendations for choosing a styling solution.
CSS ModulesEmotionfrontend
0 likes · 15 min read

The article examines the evolution of CSS for large projects, compares CSS Modules, CSS‑in‑JS, and Tailwind CSS, highlights their benefits and drawbacks, and provides practical code examples and design‑token strategies for modern component‑based front‑end development.
CSSCSS ModulesCSS-in-JS
0 likes · 11 min read

This article provides a deep technical walkthrough of san-loader, explaining how the Baidu‑developed San framework’s .san files are parsed, split into template, script and style sections, processed by san-loader‑plugin, and finally compiled into browser‑ready code with support for options like compileTemplate, esModule, and CSS Modules.
CSS Modulesfrontendloader
0 likes · 18 min read

This article explains how to automatically enable CSS Modules in React applications by creating a Babel plugin that adds a query parameter to CSS imports and configuring webpack loaders to recognize the parameter, providing a concise and practical solution for scoped styling.
Babel PluginCSS ModulesReact
0 likes · 7 min read


政采云技术Dec 15, 2019 · Frontend Development
This article examines the problem of global CSS scope pollution in React components and presents three practical solutions—namespaces, CSS‑in‑JS, and CSS Modules—detailing their implementation, advantages, and trade‑offs, with code examples and guidance on when to use each approach.
CSSCSS ModulesCSS-in-JS
0 likes · 11 min read

The article examines modern frontend engineering by detailing its four‑stage lifecycle—development, testing, deployment, maintenance—and reviewing modularization of JavaScript and CSS, component‑based frameworks and Web Components, code and workflow standardization, automation tools, and a real‑world migration to ES6 modules, Rollup, CSS Modules, Jest, and CI pipelines.
Build ToolsCI/CDCSS Modules
0 likes · 40 min read

This article shares lessons learned from releasing React Boilerplate 3.0, covering the importance of front‑end scalability, the distinction between container and presentational components, feature‑based code organization, CSS Modules and PostCSS Auto Reset for style isolation, and using redux‑saga for readable, testable asynchronous flows.
CSS ModulesFrontend ArchitectureReact
0 likes · 9 min read
