Tagged articles
Theme Switching
11 articles · Page 1 of 1
This tutorial shows Go developers how to create a Gin web application that supports automatic template hot‑reloading and dynamic multi‑theme switching, covering project structure, core template syntax, configuration, rendering logic, and deployment modes.
GinTemplateTheme Switching
0 likes · 10 min read

This article details the design and implementation of FunTester, a Chrome extension that provides a sidebar for comprehensive tab management, including domain grouping, theme switching, tab actions, custom right‑click menus, dynamic icons, and real‑time status updates, all illustrated with JavaScript code examples.
Chrome extensionContext MenuFrontend Development
0 likes · 10 min read

This article presents a comprehensive solution for integrating ECharts into Vue and React projects, addressing bundle size, API complexity, and lack of CSS‑variable support by introducing custom imports, a draw helper, MutationObserver‑based resizing, theme‑aware color replacement, lazy loading, and usage examples for both frameworks.
MutationObserverReactTheme Switching
0 likes · 18 min read

This article explains how to use React's Context API to implement elegant multi‑theme switching, avoid props drilling, manage multiple contexts, and apply memoization techniques to prevent unnecessary re‑renders, improving performance and maintainability.
Context APIFrontend DevelopmentReact
0 likes · 11 min read

This article demonstrates how to integrate ECharts into a Vue3 + TypeScript project, create a reusable useEcharts hook for rendering charts, implement one‑click theme switching, and generate custom chart themes from user‑selected colors using the tvision‑color library and Pinia store management.
Custom ColorsEChartsFrontend Development
0 likes · 10 min read

This article walks through the author's journey of rebuilding an online resume with Vue 3 and TailwindCSS, explaining core Tailwind concepts, practical code examples, theme switching, and build‑time optimizations to achieve a maintainable, responsive, and lightweight frontend solution.
Build OptimizationCSS UtilityTailwindCSS
0 likes · 36 min read


政采云技术Feb 8, 2022 · Frontend Development
This article explains how to build a one‑click skin‑changing system for a Vue application by defining SCSS variables, creating theme maps, configuring webpack and vue.config.js to inject global styles, and using both CSS custom properties and advanced SCSS features such as loops, maps, and mixins to dynamically switch colors, fonts, and sizes.
CSS-variablesTheme Switchingscss
0 likes · 13 min read

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.
CSSCSS-variablesJSS
0 likes · 11 min read

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 loaderTheme Switching
0 likes · 9 min read

This article explains how to implement a flexible dark‑mode theme using modern CSS custom properties, covering variable definition, runtime theme switching, Sass/Less integration, media‑query detection, image handling, event‑bus notifications, polyfills for older browsers, and the challenges of color mapping.
CSS-variablesTheme Switchingdark mode
0 likes · 16 min read

This article explains how JD’s dark‑mode foundation component enables iOS 9+ apps to support system and manual dark mode, detailing its architecture, integration steps, custom updaters, window‑level overrides, snapshot handling, and lessons learned for reliable night‑mode implementation.
Objective-C++Theme SwitchingUI appearance
0 likes · 11 min read
