7.css

中文文档
0.21.1发布于 2025/07/27MIT零依赖近 30 天下载 3459

A design system for building faithful recreations of the Windows 7 UI.

原始使用文档
文档目录6 节
  1. 📦 Installation / Usage
  2. 📚 Documentation / Demo
  3. 🛠 Developing
  4. 📝 Issues, Contributing, etc.
  5. ⚙ Integrations
  6. 📜 Changelog

7.css

npm gzip size

7.css is a CSS framework that takes semantic HTML and styles them to the Windows 7 design. It is built on top of XP.css, which is an extension of 98.CSS.

It does not ship with any JavaScript, so it is compatible with your frontend framework of choice.

📦 Installation / Usage

Directly via unpkg:

<!DOCTYPE html>
<html>
  <head>
    <title>7.css example</title>
    <meta charset="UTF-8" />
    <link rel="stylesheet" href="https://unpkg.com/7.css" />
  </head>

  <body>
    <div class="window" style="margin: 32px; width: 250px">
      <div class="title-bar">
        <div class="title-bar-text">My First Program</div>
      </div>
      <div class="window-body">
        <p>Hello, world!</p>
      </div>
    </div>
  </body>
</html>

Via npm:

npm install 7.css

Then import it as below:

import "7.css/dist/7.css";

📚 Documentation / Demo

Refer to the documentation page for specific instructions on this framework's components.

🛠 Developing

Clone the repo and run npm install.

The core styles are managed in gui.

You can use npm start to start a development environment that will watch for file changes and rebuild the files, reloading your browser in the process.

You can run a build manually with npm run build. This will write to the dist/ directory.

📝 Issues, Contributing, etc.

You are so welcome to report issues, help out with contributions or whatever you could think of to improve this lovely UI framework.

⚙ Integrations

7.css has been seen adopted in the following JS framework projects by the community:

📜 Changelog

Refer to Releases.

版本与发布记录

7.css 共发布 26 个版本,首次发布于 2020/12/31;过去 12 个月发布了 0 个版本。

版本发布日期距今
0.21.1latest2025/07/271.3 年前
0.21.02025/07/271.3 年前
0.20.02025/07/261.3 年前
0.19.02025/07/071.3 年前
0.18.02025/03/211.6 年前
0.17.02024/08/032 年前

关于 7.css 的常见问题

7.css 是什么?

A design system for building faithful recreations of the Windows 7 UI.

如何安装 7.css?

在项目目录运行 npm install 7.css,或使用 pnpm add / yarn add / bun add。

7.css 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/7.css 是否存在。

7.css 可以商用吗?

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

7.css 的下载量有多少?

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

7.css 还在维护吗?

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