{"id":13457010,"url":"https://github.com/sivan/heti","last_synced_at":"2025-05-06T02:01:01.742Z","repository":{"id":37409952,"uuid":"239760033","full_name":"sivan/heti","owner":"sivan","description":"赫蹏（hètí）是专为中文内容展示设计的排版样式增强。它基于通行的中文排版规范而来，可以为网站的读者带来更好的文章阅读体验。","archived":false,"fork":false,"pushed_at":"2025-03-17T01:58:17.000Z","size":1224,"stargazers_count":6391,"open_issues_count":24,"forks_count":274,"subscribers_count":51,"default_branch":"master","last_synced_at":"2025-05-05T11:21:24.443Z","etag":null,"topics":["clreq","css","scss","typography"],"latest_commit_sha":null,"homepage":"https://sivan.github.io/heti/","language":"SCSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sivan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"open_collective":"heti"}},"created_at":"2020-02-11T12:46:51.000Z","updated_at":"2025-05-05T07:40:59.000Z","dependencies_parsed_at":"2025-04-22T06:33:18.533Z","dependency_job_id":null,"html_url":"https://github.com/sivan/heti","commit_stats":{"total_commits":89,"total_committers":13,"mean_commits":6.846153846153846,"dds":0.4606741573033708,"last_synced_commit":"c5e6605c4e1290267092470d155d387f1d76e250"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sivan%2Fheti","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sivan%2Fheti/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sivan%2Fheti/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sivan%2Fheti/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sivan","download_url":"https://codeload.github.com/sivan/heti/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252606936,"owners_count":21775415,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clreq","css","scss","typography"],"created_at":"2024-07-31T08:01:31.764Z","updated_at":"2025-05-06T02:01:01.435Z","avatar_url":"https://github.com/sivan.png","language":"SCSS","readme":"# 赫蹏\n\n赫蹏（hètí）是专为中文内容展示设计的排版样式增强。它基于通行的中文排版规范而来，可以为网站的读者带来更好的文章阅读体验。\n\n预览：[https://sivan.github.io/heti/](https://sivan.github.io/heti/)\n\n![Preview](https://raw.githubusercontent.com/sivan/heti/master/_site/assets/screenshot-grid.png)\n\n主要特性：\n- 贴合网格的排版；\n- 全标签样式美化；\n- 预置古文、诗词样式；\n- 预置多种排版样式（行间注、多栏、竖排等）；\n- 多种预设字体族（仅限桌面端）；\n- 简/繁体中文支持；\n- 自适应黑暗模式；\n- 中西文混排美化，不再手敲空格👏（基于 JavaScript 脚本）；\n- 全角标点挤压（基于 JavaScript 脚本）；\n- 兼容 *normalize.css*、*CSS Reset* 等常见样式重置；\n- 移动端支持；\n- ……\n\n总之，用上就会变好看。\n\n## 使用方法\n\n1. 在页面的 `\u003chead\u003e` 标签中引入 `heti.css` 文件：\n    ```\n    \u003clink rel=\"stylesheet\" href=\"//unpkg.com/heti/umd/heti.min.css\"\u003e\n    ```\n1. 在要作用的容器元素上增加 `class=\"heti\"` 的类名即可：\n    ```\n    \u003carticle class=\"entry heti\"\u003e\n      \u003ch1\u003e我的世界观\u003c/h1\u003e\n      \u003cp\u003e有钱人的生活就是这么朴实无华，且枯燥\u003c/p\u003e\n      ……\n    \u003c/article\u003e\n    ```\n1. 使用增强脚本（可选）：\n    ```\n    \u003cscript src=\"//unpkg.com/heti/umd/heti-addon.min.js\"\u003e\u003c/script\u003e\n    \u003cscript\u003e\n      const heti = new Heti('.heti');\n      heti.autoSpacing(); // 自动进行中西文混排美化和标点挤压\n    \u003c/script\u003e\n    ```\n\n\n## WIP\n\n暂时没什么想做的了。\n\n- [x] 自适应黑暗模式\n- [x] 标点挤压\n- [x] 中、西文混排\n- [x] 繁体中文支持\n- [x] 诗词版式\n- [x] 行间注版式\n\n## Star History\n\n谢谢每一位加星的朋友，让这个疫情期间憋在家里无聊做的小项目有了更大的价值。\n\n[![Star History Chart](https://api.star-history.com/svg?repos=sivan/heti\u0026type=Date)](https://www.star-history.com/#sivan/heti\u0026Date)\n\n-- EOF --\n","funding_links":["https://opencollective.com/heti"],"categories":["SCSS","开源工具","Web Development"],"sub_categories":["好用工具","C++/C Toolkit"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsivan%2Fheti","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsivan%2Fheti","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsivan%2Fheti/lists"}