@conductor-by-89soone/css

中文文档
0.20.0发布于 2026/10/29MITTypeScript构建来源已验证近 30 天下载 3932

Framework-agnostic layered styles for Conductor.

原始使用文档
文档目录5 节
  1. Install
  2. Use
  3. Keep your reset below Conductor
  4. Requirements
  5. License

@conductor-by-89soone/css

Framework-agnostic, token-driven Conductor styles organized into explicit CSS cascade layers.

Install

pnpm add @conductor-by-89soone/css

Use

Import the stylesheet once near the application entry point:

import "@conductor-by-89soone/css";

Select a theme on the document root. Dark is the default and canonical palette.

<html data-cdt-theme="light"></html>

Layout follows the document direction: with dir="rtl" the stylesheet mirrors placement and motion, while code, key caps and monospaced values keep reading left to right.

Applications that already own a global reset can use the reset-free entry point:

import "@conductor-by-89soone/css/component.css";

The stylesheet declares this fixed order:

@layer cdt.reset, cdt.base, cdt.layout, cdt.component, cdt.utility;

Keep your reset below Conductor

Unlayered rules outrank every layer. That is what makes your own class overrides easy, and it is also why an unlayered element reset such as button { font: inherit; } silently replaces the weight, size and line height of every Conductor button, tab and input. Put element-wide rules in a layer that you declare before cdt, in a file imported before the Conductor stylesheet:

/* layers.css — import this before @conductor-by-89soone/css/component.css */
@layer app.reset, cdt;
/* your global stylesheet */
@layer app.reset {
  button, input, textarea, select { font: inherit; }
}

Layer order is fixed by the first declaration the browser sees, so app.reset now sits under every cdt.* layer: your own elements still inherit the font, and Conductor elements keep theirs. Keep unlayered rules for your own class names.

No JavaScript runtime is included.

Requirements

Node.js 20 or newer.

License

MIT

版本与发布记录

@conductor-by-89soone/css 共发布 34 个版本,首次发布于 2026/07/17;过去 12 个月发布了 34 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.20.0latest2026/10/2912 天前
0.19.02026/10/2516 天前
0.18.02026/10/2516 天前
0.17.02026/10/2516 天前
0.16.02026/10/2417 天前
0.15.22026/10/2318 天前

其他发布通道:bootstrap → 0.0.0。

关于 @conductor-by-89soone/css 的常见问题

@conductor-by-89soone/css 是什么?

Framework-agnostic layered styles for Conductor.

如何安装 @conductor-by-89soone/css?

在项目目录运行 npm install @conductor-by-89soone/css,或使用 pnpm add / yarn add / bun add。

@conductor-by-89soone/css 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@conductor-by-89soone/css 可以商用吗?

@conductor-by-89soone/css 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@conductor-by-89soone/css 的下载量有多少?

根据 npm 官方下载统计,@conductor-by-89soone/css 在 2026/10/11 – 2026/11/09 这 30 天内被下载 3,932 次,日均约 131 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@conductor-by-89soone/css 还在维护吗?

最新版本 0.20.0 发布于 2026/10/29(12 天前);至今共发布 34 个版本,其中过去 12 个月发布了 34 个;首次发布于 2026/07/17。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。