Analog Liquid Glass for DSH: Adding a Layer of Simulated Liquid Glass Texture to Input Boxes

Introduction

By default, the conversation input area of DeepSeek Harness (DSH) uses a feature-oriented card style. If you want to keep the original interactions in the Web client but change only the visual style of the input box to a more “liquid glass” look—specular highlight, inner white rim, and a thinking-time bubble effect—without altering the DOM structure, the community plugin Analog Liquid Glass for DeepSeek Harness (repo Siloet-phy/analog-liquid-glass-for-dsh) is a “fun reskin” extension designed for exactly that. This document explains what it does, how to install it, and what environment/permissions to be aware of when using it.

What This Is

The maintainer Siloet-phy has open-sourced this plugin on GitHub (current package version 0.1.0, licensed under MIT). The Analog in the name refers to an analog-gauge aesthetic (meniscus, sight glass, tick marks), not the “analog vs. digital” technical meaning. The icon—a vertical glass sight tube with a liquid column and rising bubbles—corresponds to three things: a container, a level-style progress indicator, and “the model is thinking.”

The plugin overlays a glass layer on top of the input box by using the DSH conversation.input.overlay slot, and it fits geometrically by measuring the native card’s bounding rectangle. “Whether the model is thinking” is primarily derived from useSession((s) => s.running); if that is unavailable, it falls back to observing the native send/stop button state. It does not manage themes on its own; instead, it consumes DSH’s --dsw-* tokens and body[data-ds-dark-theme], and when switching between light and dark themes it lets the glass transition slower than the whole page (about 1.7s vs 0.9s).

Core Features

The README summarizes the visible elements in a table; verified against the description, they can be summarized as follows:

Element Behavior
Frosted layer White haze + heavy blur to create a glassy feel (not just a simple translucent overlay)
Top specular highlight Soft glow commonly seen along the top edge of glass
Inner white rim A hairline white line along the top edge
Outer diffuse bloom Light slightly spills out from the glass edge
Three-dot bubble emission Only when the model is thinking: three bubbles offset by 1/3 of a cycle from the same birth point—one bursts, one is newly born
Theme transition Glass interpolates slower during light ↔ dark switching (1.7s vs 0.9s)
True frosted glass To create the frosted look, it overrides the background and backdrop-filter of [data-composer-card]; no styles remain after uninstall

Two design decisions are emphasized by the author: no colors inside the glass (colors appear only in edge highlights); and the glass layer is mostly “additive,” without changing the native card DOM. The frosted-glass override is the only exception, and it is centralized in one place in client.js and can be removed to revert to a purely additive mode.

For accessibility, it follows prefers-reduced-motion: when enabled, animations stop, and the static glass and status colors remain.

Installation and Activation

Currently the recommended installation method is from GitHub (the README states this package is not yet published to npm):

dsh plugin --profile <your profile> add github:Siloet-phy/analog-liquid-glass-for-dsh

Two notes:

  1. The package manager for the desktop version of DSH requires you to fully exit DSH before running the command; restart after installation to take effect.
  2. The profile is typically desktop (for the desktop app) or web (for the service started via dsh web).

If a package with the same name appears on npm in the future, you can also use the short name:

dsh plugin --profile <your profile> add analog-liquid-glass-for-dsh

Uninstall command:

dsh plugin --profile <your profile> remove analog-liquid-glass-for-dsh

After uninstall, the input box returns to its original look, and the stylesheet is removed along with the plugin lifecycle.

Typical Usage

This plugin is a purely visual extension. After installation and restarting the Web client, it takes effect without any additional configuration (no user-facing config file or environment variables are listed in the materials).

Usage is simply normal DSH Web interaction: type and send messages. When the session is in the running state (thinking/generating), the glass layer shows an upward bubble animation; once it stops, the bubble logic ends accordingly. You can verify the theme linkage by observing the glass layer’s 1.7-second transition when switching between light and dark themes.

Pure CLI sessions are unaffected; only the Web client (the desktop embedded browser or dsh web) loads the client bundle.

Use Cases and Notes

Who it’s for: developers or everyday users of DSH 0.2.0-rc.2 or newer who use a Web client with a Chromium-based engine (Electron) and want a liquid-glass look in the input area while accepting a limited override of the composer card background.

Compatibility (from the README):

  • DSH: 0.2.0-rc.2+ (depends on the conversation.input.overlay slot and the theme/change event on ctx.theme)
  • Platform: Web client; pure CLI is unaffected
  • Browser: requires a modern Chromium-based engine supporting backdrop-filter and color-mix()

Security and permissions: DSH plugins run with the permissions of the current DSH process. Before installing, you should review the source code and the MIT license in the GitHub repository to confirm they meet your usage and distribution requirements. Community directory sites (such as the plugin page on skillhub.cn) are not officially affiliated with DeepSeek / Hundsun, and this is not an official app store.

If the native composer card cannot be found, the plugin hides itself entirely (fail-closed) to avoid misaligned overlays.

Development and Self-Testing (Optional)

The maintainer provides local assertion scripts in the repository. After changing client.js, you can first run a stubbed-environment test, then run a DOM integration test:

node selftest.mjs
node livetest.mjs [react-umd directory]

selftest.mjs validates the module surface and behaviors such as apply(); livetest.mjs requires you to provide react/react-dom/jsdom yourself (not listed as package dependencies). The Node engine requirement is >=20.

Conclusion

Analog Liquid Glass for DSH turns the input box into liquid glass with analog-gauge semantics: frosting, highlights, and bloom in the static state; bubbles while thinking; smooth transitions when switching themes—and it tries to stay additive while minimizing DOM changes. If you want to try it or inspect the implementation, you can open the community directory page and the GitHub repository:

  • Directory page: https://www.skillhub.cn/plugins/Siloet-phy/analog-liquid-glass-for-dsh
  • GitHub: https://github.com/Siloet-phy/analog-liquid-glass-for-dsh
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye