HTML启动器

boilerplate-userstyle-theme — HTML 启动器模板

作者 simsrw73

用于创建网站主题用户样式的启动模板,提供 Stylus 与 Tampermonkey 两种安装入口及基于 npm 的构建流程。

看看你的网站会是什么样

浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。

1 个预览视图
作者提供的预览
作者提供的预览首屏预览

来自项目 README 的原始预览。

目前有 1 张原始预览,可打开完整图片查看设计细节。

截图用于了解视觉与布局,交互效果请以实际项目为准。

采集于 2026-10-03查看来源

值得关注的模板亮点

从已有项目资料中,快速了解它的特点。

01

同时提供 Stylus 的 .user.css 与 Tampermonkey 的 .user.js 两种安装产物

02

基于 npm 的构建脚本:build、watch、release 三条命令

03

支持 Stylus 的 Live Reload,可在保存文件后自动刷新样式

04

README 自述为 ALPHA 版本,内容多取自作者在做的主题,未承诺完整性

05

采用 MIT 许可,允许使用、修改、商用与分发

模板详细介绍

这是一个用户样式(user style)主题的启动模板,目标是帮助开发者编写覆盖网站外观的 CSS,并打包成可被浏览器扩展安装的 .user.css 或 .user.js 文件。仓库同时提供两种安装方式:Stylus 用户可直接安装 release/theme.user.css,Tampermonkey 用户可安装 release/theme.user.js。

模板包含一套基于 Node.js 的构建流程。克隆仓库后执行 npm install 安装依赖,npm run build 构建主题,npm run watch 持续监听改动并自动重建,npm run release 生成最终发布版本。开发阶段建议使用 Stylus 的 Live Reload 功能,在安装窗口中勾选 Check for updates 与 Live reload;Chrome 下还需在扩展详情页开启 Allow access to file URLs 才能让 Live Reload 生效。

README 明确标注这是 ALPHA 版本,内容大部分直接取自作者正在开发的一个主题,作者表示当前状态可能有用但不作保证。因此它更适合作为起点参考,而非完整成品。资料未说明具体支持哪些网站、包含哪些样式规则或构建产物的体积与兼容范围。

HTML启动器

适合你的项目吗?

适用场景

  • 为某个网站编写自定义外观样式并打包成用户样式文件
  • 以现有主题代码为起点,改造成自己的网站主题
  • 在本地开发时借助 watch 与 Live Reload 反复调试 CSS 覆盖效果
  • 需要同时向 Stylus 与 Tampermonkey 用户分发同一套主题

适合人群

  • 熟悉 CSS 并希望用浏览器扩展覆盖网站样式的开发者
  • 使用 Stylus 或 Tampermonkey 的用户样式作者
  • 需要一份可克隆、可构建的用户样式项目骨架的人

上手与定制指南

结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。

  1. 1

    使用前需先在浏览器中安装 Stylus 或 Tampermonkey 扩展,Stylish 已不再被支持或推荐

  2. 2

    修改主题需本地具备 git 与 Node.js,克隆仓库后执行 npm install 安装依赖

  3. 3

    构建命令为 npm run build,持续监听用 npm run watch,发布版本用 npm run release

  4. 4

    开发时可在 Stylus 安装窗口勾选 Check for updates 与 Live reload;Chrome 需在扩展详情页开启 Allow access to file URLs

  5. 5

    演示图片等第三方素材需按各自许可单独核对,MIT 许可仅覆盖代码

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。

使用时需要遵守

  • 允许免费使用、修改、商用和分发该版本代码。
  • 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
  • 代码按现状提供;担保与责任限制以原许可证及适用法律为准。

额外费用与待核对事项

  • README 明确标注为 ALPHA 版本,作者声明内容大部分直接取自其正在开发的主题,当前状态可能有用但不作任何保证,因此不适合作为完整成品直接用于生产环境。
  • 项目不支持也不推荐 Stylish 扩展,使用该主题需改用 Stylus 或 Tampermonkey 等浏览器扩展。
  • 在 Chrome 中使用 Stylus 的 Live Reload 功能时,需在扩展详情页手动开启 Allow access to file URLs 权限,否则自动刷新无法生效。
  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

This is not fully complete. It's mostly clipped verbatim from a theme I'm working on. It may be useful in its current state, but no promises... yet.

README 原文

Stylish is no longer supported, nor endorsed.

README 原文

For Chrome, permissions need to be enabled for Live Reload to work.

README 原文
https://github.com/simsrw73/boilerplate-userstyle-theme/blob/master/LICENSEhttps://github.com/simsrw73/boilerplate-userstyle-theme/blob/master/README.md

DeepSeek 根据仓库许可证和 README 整理 ·2026-10-03。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。

项目核对记录与介绍依据

模板资料

来源平台
GitHub
资料与维护参考分
资料一般 · 71 / 100
技术栈
HTML
网站类型
启动器
这个分数如何计算

本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。

这个项目需要核对什么

记录的仓库更新时间
2026-09-27
截图检查日期
2026-10-03

目前没有记录演示链接。请依据仓库说明在本地评估;仅凭截图无法确认交互行为。

目录记录的主要技术栈是 HTML。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。

查看具体选型方法 →

介绍的制作与核对状态

介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。

已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。

查看当时使用的来源资料

SHA-256: 3c0546538e588f897895e461f3afae210a75af8454e53a948e0e053f74071b1c

2026-10-03T00:16:09.778Z

来源文件 / 仓库
> **NOTE: ALPHA Release**
> This is not fully complete. It's mostly clipped verbatim from a theme I'm working on. It may be useful in its current state, but no promises... yet.

# Boilerplate for creating User Styles

[![Install with Stylus](https://img.shields.io/badge/Install%20with-Stylus-00adad.svg)](https://github.com/simsrw73/boilerplate-userstyle-theme/raw/master/release/theme.user.css)
[![Install with Tampermonkey](https://img.shields.io/badge/Install%20with-Tampermonkey-00485b.svg)](https://github.com/simsrw73/boilerplate-userstyle-theme/raw/master/release/theme.user.js)

Boilerplate for creating user styles for website themes

![Theme Preview](screenshots/preview.jpg)

### Table of Contents
**[Using the Theme](#using-the-theme)**<br>
**[Modifying the Theme](#modifying-the-theme)**<br>
**[See Also](#see-also)**<br>
**[Gallery](#gallery)**<br>

## Using the Theme

### Install A Browser Plugin

There are a couple of options for installing the theme in your browser.

[![Stylus](https://github.com/openstyles/stylus/raw/master/images/icon/32.png) Stylus](https://add0n.com/stylus.html) is a browser extension for Chrome, Firefox, and Opera that allows you to override the styling of websites, to change their appearance.

  * [Stylus for Chrome](https://chrome.google.com/webstore/detail/clngdbkpkpeebahjckkjfobafhncgmne)
  * [Stylus for Firefox](https://addons.mozilla.org/firefox/addon/styl-us/)
  * [Stylus for Opera](https://addons.opera.com/extensions/details/stylus/)


[![Tampermonkey](https://github.com/Tampermonkey/tampermonkey/raw/master/images/icon.png) Tampermonkey](http://tampermonkey.net/) is a browser extension for Chrome, Firefox, Edge, Opera, and Safari that allows running scripts to change the behavior of websites and add new functionality.

  * [Tampermonkey for Chrome](https://chrome.google.com/webstore/detail/dhdgffkkebhmkfjojejmpbldmpobfkfo)
  * [Tampermonkey for Firefox](https://addons.mozilla.org/en-US/firefox/addon/tampermonkey/)
  * [Tampermonkey for Edge](https://www.microsoft.com/store/apps/9NBLGGH5162S)
  * [Tampermonkey for Opera](https://addons.opera.com/en/extensions/details/tampermonkey-beta/)
  * [Tampermonkey for Safari](https://safari.tampermonkey.net/tampermonkey.safariextz)

> **Note:**
> Stylish is no longer supported, nor endorsed. What used to be a well known and respected extension was sold and resold and ended up in the hands of an analytics company that captures and transmits your browsing history. Fortunately there are now better options. The Stylish extension and the UserStyles.org website are no longer needed for this theme.


### Install the Theme

Once you've installed one of the extensions above, you are ready to install the theme:

  * From its home page at [OpenUserCSS](https://openusercss.org/)

Or directly from here:

  * For Stylus users:<br>
[![Install with Stylus](https://img.shields.io/badge/Install%20with-Stylus-00adad.svg)](https://github.com/simsrw73/boilerplate-userstyle-theme/raw/master/release/theme.user.css)

  * For Tampermonkey users:<br>
[![Install with Tampermonkey](https://img.shields.io/badge/Install%20with-Tampermonkey-00485b.svg)](https://github.com/simsrw73/boilerplate-userstyle-theme/raw/master/release/theme.user.js)

## Modifying the Theme

### Install Build Tools

  - [git](https://git-scm.com/downloads)
  - [Node.js](https://nodejs.org/en/)

### Clone the Repository

```shell
git clone https://github.com/simsrw73/boilerplate-userstyle-theme.git my-theme
```

### Install Build Dependencies

```shell
cd my-theme
npm install
```

### Build your Theme

```shell
npm run build
```

Or, to continuously monitor changes and automatically rebuild:

```shell
npm run watch
```

### Test your Theme

Load the theme in to your browser with the Stylus extension by either: dragging the file **"theme.user.css"** to your browser or using the Open Dialog in the browser (Ctrl-o). When Stylus opens the install window, check the options ***Check for updates*** and ***Live reload***, and then click the **Install style** button.


### Release your Theme

Build the final relase version of the theme:

```shell
npm run release
```


### Import the Theme to the Browser Plugin

Stylus is the best option for development. It has a feature, Live Reload, that detects changes to the file on disk and reloads the changes.

See [Installation](https://github.com/openstyles/stylus/wiki/Usercss#installation) in Stylus documentation.

> **Note:***
> For Chrome, permissions need to be enabled for Live Reload to work. Go to the Extensions page and Click on "Details" for the Stylus extension. Scroll down and enable "Allow access to file URLs"


## See Also

Related themes, scripts, extensions.

Find more custom themes at [OpenUserCSS](https://openusercss.org/).

## Gallery

![Gallery](screenshots/gallery.jpg)
反馈内容错误

看看同类模板

对比同技术栈与用途的模板,找到更适合的视觉与内容结构。