Tagged articles
BEM
16 articles · Page 1 of 1
The article explains how excessive use of the !important declaration creates CSS specificity wars, makes styles hard to maintain and debug, and offers practical techniques—including ID selectors, selector chaining, attribute selectors, repeated selectors, pseudo‑classes, and BEM architecture—to manage specificity responsibly.
BEMBest PracticesCSS
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

This article explains how excessive use of the CSS !important declaration leads to maintainability and debugging problems, details the CSS specificity calculation, compares specificity rules, and provides practical techniques—including ID selectors, selector chaining, attribute selectors, repeated selectors, pseudo‑classes, and BEM methodology—to increase specificity responsibly.
BEMBest PracticesCSS
0 likes · 8 min read

Using !important may seem like a quick fix for CSS conflicts, but it leads to tangled code, difficult debugging, and maintenance headaches; understanding CSS specificity, leveraging proper selectors, and adopting modern architecture like BEM can eliminate the need for !important and improve code quality.
BEMCSSSpecificity
0 likes · 7 min read

The article explains how excessive use of the !important declaration leads to maintainability issues, debugging difficulty, and style conflicts, then details CSS specificity calculation, comparison rules, practical techniques to increase specificity, and modern architecture approaches like BEM to write cleaner, more maintainable styles.
BEMBest PracticesCSS
0 likes · 6 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 article explains why infinite scrolling is essential for large‑screen dashboards, analyses three implementation strategies, and provides a complete Vue 3 component—including BEM‑styled markup, GSAP‑driven animation, slot‑based content insertion, and optional hover‑pause behavior—to achieve a smooth, endless scrolling list.
BEMGSAPVue3
0 likes · 14 min read

This article explains how Element Plus applies CSS architecture concepts such as OOCSS and BEM, demonstrates generating BEM class names with JavaScript hooks and SCSS mixins, and compares the approach with classic ITCSS layering to improve maintainability and scalability of front‑end styles.
BEMCSSDesign Patterns
0 likes · 21 min read

This article explores essential CSS optimization strategies—including shorthand properties, selector merging, semantic class naming, property ordering, parent selector references, and modern methodologies like BEM, Atomic CSS, preprocessors, PostCSS, and CSS-in-JS—while providing practical code examples and tool recommendations for cleaner, more maintainable front‑end styles.
BEMCSSCSS-in-JS
0 likes · 15 min read

This article explores how to write maintainable, readable, and scalable CSS by adopting consistent team guidelines, covering major architectures like OOCSS, BEM, SMACSS, ITCSS, and ACSS, as well as commenting, spacing, and core design principles for high‑quality front‑end code.
BEMBest PracticesCSS
0 likes · 11 min read

This article explores the challenges of CSS class naming, reviews the evolution from chaotic early practices through atomic and modular approaches, explains BEM conventions, and provides practical rules and code examples for creating clear, maintainable class structures in modern front‑end development.
BEMBest PracticesCSS
0 likes · 15 min read

This article explains the BEM (Block‑Element‑Modifier) naming convention, why it is needed for style isolation, readability and maintainability, outlines its syntax and common patterns, and provides practical guidelines for page, shared, and local component naming in modern front‑end projects.
BEMCSSNaming Convention
0 likes · 10 min read

The article argues that despite some programmers dismissing CSS as merely declarative, CSS selectors are powerful conditional tools that can express complex logic, and explains why methodologies like BEM and OOCSS intentionally limit their use to keep styles maintainable.
BEMCSSFrontend Development
0 likes · 4 min read

This article explains how to level up your CSS skills by using proper semantic markup, modular component structures, a unified naming system like BEM, and the single‑responsibility principle, providing practical code examples and visual illustrations for robust, maintainable front‑end styling.
BEMCSSSingle Responsibility
0 likes · 9 min read

This article explains what design patterns are, why they matter for CSS, and provides practical guidance on structuring, naming, and organizing styles—including recommendations on nesting, selector usage, file ordering, and an overview of popular patterns such as OOCSS, SMACSS, Meta CSS, and BEM—to help front‑end developers write maintainable, scalable code.
BEMBest PracticesCSS
0 likes · 17 min read

This article explores the challenges of CSS class naming, traces its evolution from chaotic practices through atomic and modular approaches to the widely adopted BEM methodology, and provides practical rules, keyword lists, and code examples for creating clear, maintainable, and conflict‑free class structures.
BEMBest PracticesCSS
0 likes · 15 min read
