Tag

PostCSS

1 views collected around this technical thread.

Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Feb 10, 2025 · Frontend Development

Creating a Custom PostCSS px-to-viewport Plugin for Vite to Achieve Responsive Design

This article explains how to create a custom PostCSS plugin for Vite that converts pixel units to viewport width units, covering meta tag setup, plugin configuration, TypeScript implementation, handling multi‑value properties, and troubleshooting conversion issues.

CSSPostCSSViewport Units
0 likes · 8 min read
Creating a Custom PostCSS px-to-viewport Plugin for Vite to Achieve Responsive Design
37 Interactive Technology Team
37 Interactive Technology Team
Sep 2, 2024 · Frontend Development

Understanding PostCSS: AST Structure, Objects, and Event Listeners

The article explains how PostCSS parses CSS into an abstract syntax tree composed of Declaration, Rule, Root, AtRule and Comment nodes, describes the rule‑ and hook‑based event listeners and depth‑first traversal used in PostCSS 8 versus the walk methods of PostCSS 7, and shows how this knowledge lets developers create custom plugins for tasks such as unit conversion, vendor prefixing, or dark‑mode generation.

CSS ASTCSS ProcessingEvent Listeners
0 likes · 9 min read
Understanding PostCSS: AST Structure, Objects, and Event Listeners
NetEase Cloud Music Tech Team
NetEase Cloud Music Tech Team
Mar 8, 2024 · Frontend Development

RTL Layout Adaptation Practices for Web Front-End Development

The guide outlines a direction‑based RTL adaptation workflow for web front‑ends—detecting language, setting the HTML dir attribute, using a lightweight helper, configuring postcss‑rtlcss (combined mode) to generate mirrored CSS, handling SSR and third‑party components, and providing a dev switch tool for seamless LTR/RTL support.

CSSDirectionInternationalization
0 likes · 18 min read
RTL Layout Adaptation Practices for Web Front-End Development
ByteFE
ByteFE
Jun 30, 2021 · Frontend Development

Understanding AST and Its Application in CSS Processing with PostCSS

This article explains what an Abstract Syntax Tree (AST) is, demonstrates how JavaScript code is transformed into an AST, describes the tokenization and parsing steps used by PostCSS to generate a CSS AST, and shows how plugin mechanisms like AutoPrefixer can extend the toolchain.

ASTAutoprefixerCSS parsing
0 likes · 9 min read
Understanding AST and Its Application in CSS Processing with PostCSS
ByteFE
ByteFE
May 24, 2021 · Frontend Development

Automating Dark‑Mode Color Variable Replacement with Stylelint and PostCSS in Semi Design

This article explains how to automatically replace literal color values with Semi Design CSS variables for dark‑mode support by parsing style files with PostCSS, calculating color similarity with chroma‑js, and applying a custom Stylelint rule that can lint and autofix the code.

AutomationCSSPostCSS
0 likes · 10 min read
Automating Dark‑Mode Color Variable Replacement with Stylelint and PostCSS in Semi Design
37 Mobile Game Tech Team
37 Mobile Game Tech Team
Jan 6, 2021 · Frontend Development

How Tailwind CSS Uses PostCSS and Plugins to Generate Smart, Tree‑Shaken CSS

An in‑depth look at Tailwind CSS reveals how it harnesses PostCSS, JavaScript configuration, and custom plugins to generate and tree‑shake CSS, detailing classic @tailwind at‑rules, screen directives, and a sample z‑index plugin with code examples.

CSS FrameworkFrontend DevelopmentPostCSS
0 likes · 8 min read
How Tailwind CSS Uses PostCSS and Plugins to Generate Smart, Tree‑Shaken CSS
360 Tech Engineering
360 Tech Engineering
May 27, 2019 · Frontend Development

Pixel‑Perfect Layout Adaptation for Mobile H5 Using vw Units and postcss-px-to-viewport

This article explains how to achieve pixel‑perfect restoration of design drafts on mobile H5 pages by adapting to different pixel densities and screen sizes, using global CSS units like rem and vw, and automating px‑to‑vw conversion with the postcss-px-to-viewport plugin.

CSSPostCSSfrontend
0 likes · 15 min read
Pixel‑Perfect Layout Adaptation for Mobile H5 Using vw Units and postcss-px-to-viewport
360 Tech Engineering
360 Tech Engineering
May 5, 2019 · Frontend Development

Pixel‑Perfect Layout Adaptation for Mobile H5 Using vw and postcss-px-to-viewport

This article explains how to achieve pixel‑perfect reproduction of design drafts on mobile H5 pages by adapting to different screen densities and sizes, using global CSS units like vw (and optionally rem), and automating the px‑to‑vw conversion with the postcss-px-to-viewport plugin.

CSSH5PostCSS
0 likes · 15 min read
Pixel‑Perfect Layout Adaptation for Mobile H5 Using vw and postcss-px-to-viewport
Qunar Tech Salon
Qunar Tech Salon
Mar 26, 2019 · Frontend Development

Guide to Using CSS Next (postcss‑cssnext) with Webpack for Modern Front‑End Styling

This article introduces CSS Next, a PostCSS plugin that brings future CSS syntax to current browsers, explains how to integrate it into a Webpack workflow, and demonstrates key features such as custom properties, @apply, calc(), custom media queries, custom selectors, and nesting with code examples compared to Sass and Less.

CSSPostCSSPreProcessor
0 likes · 8 min read
Guide to Using CSS Next (postcss‑cssnext) with Webpack for Modern Front‑End Styling
Qunar Tech Salon
Qunar Tech Salon
Mar 8, 2019 · Frontend Development

Introduction to PostCSS and Developing Custom Plugins

This article introduces PostCSS, explains its role in transforming CSS via JavaScript plugins, demonstrates how to integrate it with tools like Webpack and its JavaScript API, and provides a step‑by‑step guide for creating a simple PostCSS plugin that doubles pixel values, including handling of Less syntax.

CSSJavaScriptLess
0 likes · 8 min read
Introduction to PostCSS and Developing Custom Plugins
UC Tech Team
UC Tech Team
Feb 1, 2019 · Frontend Development

CSS and JS Are at War – How to Stop It

The article examines the perceived conflict between JavaScript and CSS/UX developers, explains how community segregation and social media amplify the divide, and proposes practical steps for fostering collaboration and reducing the "JS vs CSS" war in front‑end development.

CSSCommunityJavaScript
0 likes · 6 min read
CSS and JS Are at War – How to Stop It
Qunar Tech Salon
Qunar Tech Salon
Jun 20, 2017 · Frontend Development

Understanding PostCSS: Tools, Plugins, and Configuration for Modern Frontend Development

This article explains what PostCSS is, distinguishes it from CSS preprocessors, introduces popular plugins such as autoprefixer and precss, and provides detailed configuration examples for Webpack and ykit, helping developers efficiently integrate PostCSS into their front‑end workflows.

AutoprefixerCSS preprocessingFrontend Development
0 likes · 11 min read
Understanding PostCSS: Tools, Plugins, and Configuration for Modern Frontend Development