Tag

dark mode

1 views collected around this technical thread.

Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 25, 2024 · Frontend Development

How vueuse Supports Vue 2 & Vue 3 via vue‑demi and Implements Dark Mode

This article explains how the vueuse utility library works with both Vue 2 and Vue 3 by leveraging the vue‑demi compatibility layer, and then dives into the implementation of its useDark hook, showing the underlying media‑query logic and CSS techniques for dark‑mode support.

FrontendVueVueUse
0 likes · 15 min read
How vueuse Supports Vue 2 & Vue 3 via vue‑demi and Implements Dark Mode
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Feb 28, 2022 · Frontend Development

Mastering Dark Mode: Hand‑Crafted CSS & JavaScript Techniques

This article walks through practical ways to implement true dark mode on web pages—including manual toggles, system‑preference detection, CSS variables, stylesheet swapping, filter tricks, and common pitfalls—while providing complete code examples and explanations.

FrontendJavaScriptcss
0 likes · 11 min read
Mastering Dark Mode: Hand‑Crafted CSS & JavaScript Techniques
Xueersi 1-on-1 Technology Team
Xueersi 1-on-1 Technology Team
Oct 14, 2021 · Frontend Development

Mastering Theme Switching: 8 Proven Methods to Implement Dark/Light Modes in Web Apps

This article explores eight practical techniques for implementing theme switching in web applications—including class toggling, stylesheet swapping, CSS variables, alternate rel links, Less modifyVars, Ant Design/Vant custom themes, Element‑UI dynamic theming, and JSS—detailing code snippets, advantages, and limitations of each approach.

CSS variablesFrontendJSS
0 likes · 11 min read
Mastering Theme Switching: 8 Proven Methods to Implement Dark/Light Modes in Web Apps
Taobao Frontend Technology
Taobao Frontend Technology
Oct 11, 2021 · Frontend Development

Top Frontend Updates: ESLint 8 Release, New React Tooling Team, Build Tools & Dark Mode Guide

This roundup covers ESLint 8’s full ES2022 support, React’s new Developer Tooling team, several open‑source build tools such as unbuild, tsup, refine and VS Code’s Webview UI Toolkit, plus featured articles on a TypeScript‑based autonomous parking algorithm and a comprehensive guide to implementing Dark Mode on the web.

ReactTypeScriptbuild tools
0 likes · 5 min read
Top Frontend Updates: ESLint 8 Release, New React Tooling Team, Build Tools & Dark Mode Guide
Taobao Frontend Technology
Taobao Frontend Technology
Aug 16, 2021 · Frontend Development

Latest Frontend Releases: Next.js 11.1, Vue 3.2, and Cutting‑Edge Open‑Source Tools

This roundup highlights the Next.js 11.1 and Vue 3.2 releases with their new features and performance boosts, introduces several emerging open‑source projects such as quickjs‑rs, MDX, mdast, Puerts, wasm‑pack, instant.page and txiki.js, and summarizes practical articles on one‑click dark‑mode support and dramatically shrinking Next.js bundle size.

Next.jsRustVue
0 likes · 8 min read
Latest Frontend Releases: Next.js 11.1, Vue 3.2, and Cutting‑Edge Open‑Source Tools
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.

FrontendPostCSSSemi Design
0 likes · 10 min read
Automating Dark‑Mode Color Variable Replacement with Stylelint and PostCSS in Semi Design
JD Retail Technology
JD Retail Technology
Mar 19, 2021 · Frontend Development

Design and Implementation of JD Skinning PaaS Platform

This article details the background, research, system architecture, specific implementation, SDK integration, and future planning of JD's skinning PaaS platform, which unifies UI theming across web and native apps, supports dark mode, and optimizes resource management.

CMSFrontenddark mode
0 likes · 10 min read
Design and Implementation of JD Skinning PaaS Platform
Ctrip Technology
Ctrip Technology
Feb 4, 2021 · Frontend Development

Front‑end Middle‑Platform Development for Ctrip and Trip: Componentization, Dark Mode, Internationalization, and Automated Testing

The article describes how Ctrip and Trip unified their disparate front‑end stacks by building a shared component library, splitting styles, adapting dark mode, implementing i18n/l10n, integrating automated testing in GitLab pipelines, and streamlining release and monitoring to improve development efficiency and reduce duplication.

CI/CDFrontendReact Native
0 likes · 19 min read
Front‑end Middle‑Platform Development for Ctrip and Trip: Componentization, Dark Mode, Internationalization, and Automated Testing
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-JSFrontendRTL
0 likes · 18 min read
Technical Selection and Design Considerations for a Custom Front-End Component Library
Sohu Tech Products
Sohu Tech Products
Nov 11, 2020 · Frontend Development

Low‑Cost Dark Mode Implementation Using Pure CSS :checked, +/~ Selectors and Filter Functions

This article explains how to create a website‑wide dark mode switch with only HTML and CSS by using an invisible checkbox as a toggle, the :checked pseudo‑class together with +/~ sibling selectors, and CSS filter functions like invert() and hue‑rotate() to transform colors, images and media without any JavaScript.

FrontendPure CSScss
0 likes · 12 min read
Low‑Cost Dark Mode Implementation Using Pure CSS :checked, +/~ Selectors and Filter Functions
政采云技术
政采云技术
Aug 16, 2020 · Frontend Development

Comprehensive Guide to Dark Mode Adaptation for Web and Native Apps

This article provides a detailed guide on implementing dark mode across web (H5) and native mobile applications, covering system compatibility, CSS media queries, CSS variables, postcss handling, component library adaptation, and platform-specific configurations for iOS, Android, and Flutter.

FrontendThemecss
0 likes · 17 min read
Comprehensive Guide to Dark Mode Adaptation for Web and Native Apps
Yuewen Frontend Team
Yuewen Frontend Team
Aug 14, 2020 · Frontend Development

How to Implement Efficient Dark Mode in Mobile Apps Using CSS Custom Variables

Implementing dark mode in the Qidian Reading app, this guide explains using CSS custom variables and a custom SCSS loader to achieve low‑maintenance theme switching across native and embedded web pages, handling low‑end devices, code examples, and best‑practice considerations.

CSS custom variablesSCSS loaderdark mode
0 likes · 9 min read
How to Implement Efficient Dark Mode in Mobile Apps Using CSS Custom Variables
JD Retail Technology
JD Retail Technology
Jul 3, 2020 · Frontend Development

Implementing Dark Mode in H5: Strategies, Code Samples, and Compatibility

This article explains how to add dark mode support to H5 pages by using JavaScript to toggle CSS classes and CSS media queries, discusses system compatibility across platforms, provides practical code examples, and outlines additional media features for broader UI adaptations.

FrontendJavaScriptcss
0 likes · 7 min read
Implementing Dark Mode in H5: Strategies, Code Samples, and Compatibility
58 Tech
58 Tech
Apr 8, 2020 · Mobile Development

Dynamic UI Skinning (Gray‑White Mode) for Mobile Apps: Analysis, Evaluation and Implementation

This article analyses the differences between PC and mobile Internet, evaluates how major Chinese apps adapted their launch, splash and home screens to a gray‑white theme for the Qingming memorial day, and discusses various technical solutions such as theme switching, skin packages, server‑side control and local color manipulation for mobile UI dynamic theming.

AndroidMobile UIdark mode
0 likes · 18 min read
Dynamic UI Skinning (Gray‑White Mode) for Mobile Apps: Analysis, Evaluation and Implementation
58 Tech
58 Tech
Mar 23, 2020 · Mobile Development

Dark Mode Adaptation Practices in the 58.com Mobile App

This article details the motivations, design goals, technical solutions for native iOS, React Native and Web pages, handling of large‑scale parallel development, compatibility strategies, performance measurements and future plans of the dark‑mode adaptation implemented in the 58.com mobile application.

AndroidMobile UIPerformance
0 likes · 20 min read
Dark Mode Adaptation Practices in the 58.com Mobile App
Taobao Frontend Technology
Taobao Frontend Technology
Feb 19, 2020 · Frontend Development

Mastering Dark Mode: CSS & JavaScript Techniques for Modern Web Design

This article explains why dark mode has become a web design priority, describes the system‑level nature of dark/light themes, and provides practical CSS and JavaScript solutions—including media queries, custom properties, color‑scheme, filters, mix‑blend‑mode, and transition effects—to implement seamless dark mode support across browsers.

JavaScriptcssdark mode
0 likes · 25 min read
Mastering Dark Mode: CSS & JavaScript Techniques for Modern Web Design
Youku Technology
Youku Technology
Jan 7, 2020 · Mobile Development

Comprehensive Design and Technical Summary of Full Dark Mode Support for the Youku App

The article delivers a detailed 117‑page, eleven‑chapter overview of Youku’s full Dark Mode implementation, explaining the motivation, battery and accessibility benefits, design methodology—including color token systems and contrast hierarchy—and the coordinated technical execution across iOS and Android platforms.

AndroidMobile UIaccessibility
0 likes · 13 min read
Comprehensive Design and Technical Summary of Full Dark Mode Support for the Youku App