{"id":23892498,"url":"https://github.com/ihcccjs/css-theme","last_synced_at":"2026-06-17T22:31:42.980Z","repository":{"id":210676143,"uuid":"724537975","full_name":"IhcccJS/css-theme","owner":"IhcccJS","description":"一组前端主题样式变量.","archived":false,"fork":false,"pushed_at":"2025-04-18T10:30:18.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-19T00:20:35.866Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/IhcccJS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2023-11-28T09:33:45.000Z","updated_at":"2025-04-18T10:30:22.000Z","dependencies_parsed_at":"2025-04-18T12:02:59.171Z","dependency_job_id":"6cf16ae3-592a-4f53-94d4-77b1264a620f","html_url":"https://github.com/IhcccJS/css-theme","commit_stats":null,"previous_names":["ihcccjs/css-theme"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/IhcccJS/css-theme","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IhcccJS%2Fcss-theme","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IhcccJS%2Fcss-theme/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IhcccJS%2Fcss-theme/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IhcccJS%2Fcss-theme/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IhcccJS","download_url":"https://codeload.github.com/IhcccJS/css-theme/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IhcccJS%2Fcss-theme/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34468766,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-17T02:00:05.408Z","response_time":127,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-01-04T13:55:43.314Z","updated_at":"2026-06-17T22:31:42.961Z","avatar_url":"https://github.com/IhcccJS.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CSS-Theme\n\n一组前端主题样式变量\n\n## Usage/Examples\n\n引入 `js` 变量\n```javascript\nimport defaultTheme from '@ihccc/css-theme';\n\nconsole.log(defaultTheme.colorPrimary);\n```\n\n引入 `css` 变量\n```css\nimport '@ihccc/css-theme/dist/default.css';\n```\n\n## Run Locally\n\nClone the project\n\n```bash\n  git clone https://ihccc-site\n```\n\nGo to the project directory\n\n```bash\n  cd utils\n```\n\nInstall dependencies\n\n```bash\n  pnpm install\n```\n\nStart the server\n\n```bash\n  pnpm run dev\n```\n\n## 变量表\n\n- `css` 变量命名规则 `--{大类}-{名称}-{状态/类型/尺寸}`：`--color-primary`, `--color-text`, `--color-text-disabled`, `--size-margin-small`；\n- `js` 变量名称就是 `css` 变量的名称，去掉 `--` 前缀，并转换为驼峰命名: `colorPrimary`, `colorText`, `colorTextDisabled`, `sizeMarginSmall`\n\n文本色\n\n| 变量名                 | 描述         |\n| :--------------------- | :----------- |\n| `colorPrimary`         | 主色         |\n| `colorText`            | 默认文本     |\n| `colorTextDesc`        | 描述文本     |\n| `colorTextLight`       | 轻量文本     |\n| `colorTextPlaceholder` | 占位文本     |\n| `colorTextDisabled`    | 禁用文本     |\n| `colorTextError`       | 错误文本     |\n| `colorTextWarning`     | 警告文本     |\n| `colorTextSuccess`     | 成功文本     |\n| `colorTextInfo`        | 信息文本     |\n| `colorTextHover`       | 悬浮高亮文本 |\n| `colorTextActive`      | 点击高亮文本 |\n| `colorTextFocus`       | 聚焦高亮文本 |\n\n背景色\n\n| 变量名               | 描述         |\n| :------------------- | :----------- |\n| `colorBgLayout`      | 布局背景     |\n| `colorBgComponent`   | 组件背景     |\n| `colorBgSecondary`   | 辅助背景     |\n| `colorBgContainer`   | 容器背景     |\n| `colorBgDesc`        | 描述背景     |\n| `colorBgLight`       | 轻量背景     |\n| `colorBgPlaceholder` | 占位背景     |\n| `colorBgDisabled`    | 禁用背景     |\n| `colorBgError`       | 错误背景     |\n| `colorBgWarning`     | 警告背景     |\n| `colorBgSuccess`     | 成功背景     |\n| `colorBgInfo`        | 信息背景     |\n| `colorBgHover`       | 悬浮高亮背景 |\n| `colorBgActive`      | 点击高亮背景 |\n| `colorBgFocus`       | 聚焦高亮背景 |\n\n边框色\n\n| 变量名                | 描述           |\n| :-------------------- | :------------- |\n| `colorBorder`         | 边框色         |\n| `colorBorderDisabled` | 禁用边框色     |\n| `colorBorderError`    | 错误边框色     |\n| `colorBorderWarning`  | 警告边框色     |\n| `colorBorderSuccess`  | 成功边框色     |\n| `colorBorderInfo`     | 信息边框色     |\n| `colorBorderHover`    | 悬浮高亮边框色 |\n| `colorBorderActive`   | 点击高亮边框色 |\n| `colorBorderFocus`    | 聚焦高亮边框色 |\n\n阴影色\n\n\n| 变量名              | 描述         |\n| :------------------ | :----------- |\n| `colorShadow`       | 阴影         |\n| `colorShadowHover`  | 悬浮高亮阴影 |\n| `colorShadowActive` | 点击高亮阴影 |\n| `colorShadowFocus`  | 聚焦高亮阴影 |\n\n尺寸\n\n| 变量名                  | 描述           |\n| :---------------------- | :------------- |\n| `sizeFont`              | 默认字体尺寸   |\n| `sizeFontTitle`         | 标题字体小尺寸 |\n| `sizeFontDesc`          | 描述字体尺寸   |\n| `sizeFontP`             | 字体P尺寸      |\n| `sizeFontH6`            | 字体H6尺寸     |\n| `sizeFontH5`            | 字体H5尺寸     |\n| `sizeFontH4`            | 字体H4尺寸     |\n| `sizeFontH3`            | 字体H3尺寸     |\n| `sizeFontH2`            | 字体H2尺寸     |\n| `sizeFontH1`            | 字体H1尺寸     |\n| `sizeMargin`            | 外边距         |\n| `sizeMarginSmall`       | 外边距         |\n| `sizeMarginLarge`       | 外边距         |\n| `sizePadding`           | 内边距         |\n| `sizePaddingSmall`      | 内边距         |\n| `sizePaddingLarge`      | 内边距         |\n| `sizeBorderWidth`       | 边框宽度       |\n| `sizeBorderWidthSmall`  | 边框宽度       |\n| `sizeBorderWidthLarge`  | 边框宽度       |\n| `sizeBorderRadius`      | 圆角宽度       |\n| `sizeBorderRadiusSmall` | 圆角           |\n| `sizeBorderRadiusLarge` | 圆角           |\n| `sizeFontWeight`        | 字粗           |\n| `sizeFontWeightSmall`   | 字粗           |\n| `sizeFontWeightLarge`   | 字粗           |\n\n样式\n\n| 变量名 | 描述 |\n| :----- | :--- |\n| `font` | 字体 |\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fihcccjs%2Fcss-theme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fihcccjs%2Fcss-theme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fihcccjs%2Fcss-theme/lists"}