Tag

CSS-in-JS

0 views collected around this technical thread.

DeWu Technology
DeWu Technology
Jun 24, 2024 · Frontend Development

Feishu Cloud Document to HTML Email: Architecture Redesign and Implementation

The article details a complete redesign of Feishu’s cloud‑document‑to‑HTML‑email converter, introducing IoC/DI architecture, inline‑style utilities, and specialized renderers for headings, lists, tables, images, code blocks, and equations, resulting in high‑fidelity Outlook‑compatible emails while shrinking the core code to under three hundred lines.

CSS-in-JSFeishuHTML email
0 likes · 31 min read
Feishu Cloud Document to HTML Email: Architecture Redesign and Implementation
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jan 11, 2024 · Frontend Development

Ant Design Theme Customization: From Less Variables to CSS‑in‑JS and Performance Strategies

This article examines the evolution of Ant Design's theming—from the less‑based Antd 4.x approach to the CSS‑in‑JS design‑token system in Antd 5.x—analyzes the performance trade‑offs of CSS‑in‑JS, and presents the official antd‑style solution for high‑performance, extensible, and compatible style overrides.

Ant DesignCSS-in-JSFrontend Development
0 likes · 18 min read
Ant Design Theme Customization: From Less Variables to CSS‑in‑JS and Performance Strategies
Ctrip Technology
Ctrip Technology
Dec 28, 2023 · Frontend Development

Understanding Atomic CSS and Facebook’s Stylex: Concepts, Trade‑offs, and Practical Usage

This article explains the principles of Atomic CSS, discusses its advantages and drawbacks, shows how Facebook’s open‑source Stylex implements Atomic CSS with Babel, and demonstrates practical usage patterns such as stylex.create, stylex.props, defineVars, and createTheme to improve front‑end performance and maintainability.

Atomic CSSCSS-in-JSPerformance
0 likes · 16 min read
Understanding Atomic CSS and Facebook’s Stylex: Concepts, Trade‑offs, and Practical Usage
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 6, 2023 · Frontend Development

Should We Switch Component Libraries? A Critical Comparison of Alibaba Fusion and Ant Design

The article examines why a Lazada front‑end team is questioning the switch from the long‑standing Alibaba Fusion component library to Ant Design, analyzing design quality, iteration speed, performance, stability, ecosystem impact, CSS‑in‑JS trends, and the overall cost of migration.

CSS-in-JSPerformanceant-design
0 likes · 10 min read
Should We Switch Component Libraries? A Critical Comparison of Alibaba Fusion and Ant Design
DaTaobao Tech
DaTaobao Tech
Sep 29, 2022 · Frontend Development

Understanding the Implementation of CSS-in-JS with Styled-Components

The article explains CSS‑in‑JS fundamentals, examines styled‑components’ source code—including its styled function, createStyledComponent factory, and runtime style injection—compares it with emotion, demonstrates a simple SolidJS MVP implementation, and discusses the technique’s rise, limitations, and possible compile‑time or atomic‑CSS future.

CSS-in-JSImplementationSolidJS
0 likes · 11 min read
Understanding the Implementation of CSS-in-JS with Styled-Components
ByteDance ADFE Team
ByteDance ADFE Team
Aug 20, 2021 · Frontend Development

Introducing broken-css: A Zero‑Runtime Atomic CSS‑in‑JS Solution

The article explains broken-css, a zero‑runtime, atomic CSS‑in‑JS library inspired by linaria and stylex, detailing its design, installation, API, compilation process, support for pseudo‑classes, @‑rules, CSS variables, and integration with webpack and VSCode, while also providing code examples and performance benefits.

Atomic CSSCSS-in-JSLinaria
0 likes · 11 min read
Introducing broken-css: A Zero‑Runtime Atomic CSS‑in‑JS Solution
ByteDance Dali Intelligent Technology Team
ByteDance Dali Intelligent Technology Team
Jul 28, 2021 · Frontend Development

Advanced Techniques and Best Practices for Using styled-components in React

This article shares practical tips, patterns, and mental models for mastering styled-components in React, covering CSS variables, context styling, component encapsulation, inheritance, margin handling, z-index management, the "as" prop, priority tricks, and related tooling to write cleaner, more maintainable UI code.

CSS variablesCSS-in-JSPerformance
0 likes · 19 min read
Advanced Techniques and Best Practices for Using styled-components in React
ByteDance ADFE Team
ByteDance ADFE Team
May 13, 2021 · Frontend Development

CSS‑in‑JS in React: Problems with Traditional CSS, Various Styling Approaches and Comparison of Popular Solutions

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 ModulesCSS-in-JSemotion
0 likes · 15 min read
CSS‑in‑JS in React: Problems with Traditional CSS, Various Styling Approaches and Comparison of Popular Solutions
ByteFE
ByteFE
Jan 25, 2021 · Frontend Development

Technical Selection and Design Considerations for a Custom Front-End Component Library

This article outlines the decision‑making process for styling, icon, dark‑mode, RTL, and global configuration choices when building a custom front‑end component library, comparing Sass/Less, Atomic CSS, CSS‑in‑JS, various icon strategies, and implementation patterns for maintainability and scalability.

CSS-in-JSRTLcomponent library
0 likes · 18 min read
Technical Selection and Design Considerations for a Custom Front-End Component Library
政采云技术
政采云技术
Dec 15, 2019 · Frontend Development

How to Write CSS Elegantly in React

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
How to Write CSS Elegantly in React