98.css

中文文档
0.1.21发布于 2025/04/29MIT零依赖近 30 天下载 3万

A design system for building faithful recreations of old UIs

原始使用文档
文档目录6 节
  1. 98.css
  2. Installation / Usage
  3. Developing
  4. Issues, Contributing, etc.
  5. Publishing
  6. License

98.css

npm gzip size

A design system for building faithful recreations of old UIs.

a screenshot of a window with the title 'My First VB4 Program' and two buttons OK and Cancel, styled like a Windows 98 dialog a magnified view showing pixel-perfect borders on a scrollbar and button element

98.css is a CSS file that takes semantic HTML and makes it look pretty. It does not ship with any JavaScript, so it is compatible with your frontend framework of choice.

Be sure to check out XP.css and 7.css as well.

Installation / Usage

The easiest way to use 98.css is to import it from unpkg.

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

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

Alternatively, you can grab 98.css for the releases page or npm.

npm install 98.css

Here is an example of 98.css being used with React, and an example with vanilla JavaScript.

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

Developing

First, run npm install.

style.css is where everything happens.

You can use npm start to start a development environment that will watch for file changes and rebuild 98.css, 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.

Refer to the GitHub issues page to see bugs in my CSS or report new ones. I'd really like to see your pull requests (especially those new to open-source!) and will happily provide code review. 98.css is a fun, silly project and I'd like to make it a fun place to build your open-source muscle.

Thank you for checking my little project out, I hope it brought you some joy today. Consider starring/following along on GitHub and maybe subscribing to more fun things on my twitter. 👋

Publishing

Building the docs site: npm run deploy:docs

Publishing to npm: npm run release

License

MIT

版本与发布记录

98.css 共发布 24 个版本,首次发布于 2020/04/22;过去 12 个月发布了 0 个版本。

版本发布日期距今
0.1.21latest2025/04/291.5 年前
0.1.202023/03/133 年前
0.1.192023/03/133 年前
0.1.182022/05/224 年前
0.1.172021/04/175 年前
0.1.162020/05/196 年前

关于 98.css 的常见问题

98.css 是什么?

A design system for building faithful recreations of old UIs

如何安装 98.css?

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

98.css 支持 TypeScript 吗?

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

98.css 可以商用吗?

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

98.css 的下载量有多少?

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

98.css 还在维护吗?

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