{"id":48394266,"url":"https://github.com/nanarino/stylus","last_synced_at":"2026-04-06T01:16:52.867Z","repository":{"id":168564741,"uuid":"644301660","full_name":"nanarino/stylus","owner":"nanarino","description":"my style library","archived":false,"fork":false,"pushed_at":"2026-01-19T10:48:50.000Z","size":24272,"stargazers_count":20,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-19T16:58:07.455Z","etag":null,"topics":["astro-theme","mdx-theme"],"latest_commit_sha":null,"homepage":"https://nanarino.github.io/stylus/","language":"Stylus","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/nanarino.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-05-23T08:36:04.000Z","updated_at":"2026-01-19T10:49:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"94ce5151-60f9-47fb-9c57-b608a02a10f7","html_url":"https://github.com/nanarino/stylus","commit_stats":null,"previous_names":["nanarino/nanarinostyl","nanarino/stylus"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/nanarino/stylus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanarino%2Fstylus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanarino%2Fstylus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanarino%2Fstylus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanarino%2Fstylus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nanarino","download_url":"https://codeload.github.com/nanarino/stylus/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanarino%2Fstylus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31455631,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"ssl_error","status_checked_at":"2026-04-05T21:22:51.943Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["astro-theme","mdx-theme"],"created_at":"2026-04-06T01:16:52.070Z","updated_at":"2026-04-06T01:16:52.860Z","avatar_url":"https://github.com/nanarino.png","language":"Stylus","funding_links":[],"categories":[],"sub_categories":[],"readme":"=========================\n☘ @nanarino/stylus 样式包\n=========================\n\n\n.. image:: ./docs/icons/logo/color/clover.svg\n    :width: 64 px\n    :alt: nanarino Logo\n    :target: https://nanarino.github.io/stylus/\n\n\n使用 ``styl`` 来编写的纯 CSS 库\n\n\n.. image:: https://img.shields.io/badge/stylus-6da13f.svg?style=for-the-badge\u0026logo=stylus\n    :alt: Stylus\n    :target: https://stylus-lang.com/\n\n.. image:: https://img.shields.io/badge/maintained%20with-pnpm%2010.16.0-cc00ff.svg?style=for-the-badge\u0026logo=pnpm\n    :alt: pnpm 10.16.0\n    :target: https://pnpm.io/\n\n.. image:: https://img.shields.io/badge/Node.js-v22.19.0-026e00.svg?style=for-the-badge\u0026logo=nodedotjs\n    :alt: Node.js v22.19.0\n    :target: https://nodejs.org/\n\n\n.. highlight:: bash\n\n\n利用\n======\n::\n\n    # 安装 npm 套件\n    pnpm i @nanarino/stylus\n\n    # 在jsx中 `import '@nanarino/stylus'`\n    # 在css中 `@import url('@nanarino/stylus')`\n\n    # 在stylus中可以引入其部分源码 见 `import '@nanarino/stylus/lib/index.styl'`\n\n\n\n运行\n======\n::\n\n    # 克隆仓库然后安装依赖\n    pnpm i\n    # 运行开发服务器\n    pnpm dev\n\n\n\n构建\n======\n::\n\n    # 修改比如配色默认字体后你可以本地构建文档和样式\n    # 构建文档\n    pnpm build:docs\n    # 构建样式\n    pnpm build:styl\n\n\n借物\n======\n* icon: `arco官方图标库 \u003chttps://arco.design/iconbox/lib/89/0/\u003e`_\n* color: `arco默认配色 \u003chttps://arco.design/palette/list\u003e`_\n* background: `css-doodle \u003chttps://css-doodle.com/\u003e`_\n* inspiration: `affinity-css \u003chttps://github.com/Deep-Codes/affinity-css/\u003e`_\n* fonts:  `HYWenHei-85W \u003chttps://www.hanyi.com.cn/index.php\u003e`_ 和 `JetBrains Mono \u003chttps://www.jetbrains.com/lp/mono/\u003e`_ （并非本样式库的预设）\n\n约束\n======\n* astro:\n    - 不省略分号。\n    - 模板外不能含有tsx表达式。\n    - 模板中 jsx的attr里含有 ``\"`` 时需要转义。\n    - 直接内嵌客户端脚本时 不省略 ``is:inline`` 并使用IIFE\n* mdx:\n    - 不能含有js/ts注释。\n    - 分割线使用 ``***`` 而不 ``---``。\n* styl:\n    - 非跨行组件不设置行高。\n    - 省略冒号分号逗号和花括号。\n    - 用 ``@import`` 先引入css ，再用 ``@require`` 引入stylus。\n    - ``colors = (red #F00)`` 写法应改为Record ``colors = {red: #F00}`` 。\n    - 使通配符引入时要确保引入顺序 以确保譬如含有 ``\u0026\u003e*`` 的选择器被 ``\u0026`` 覆盖。\n    - 变量名不使用 ``-`` 和 ``_`` 以外的分割字元，否则将导致在less里不方便使用 。\n相容\n======\n\n0.x 版本叫 ``nanarinostyl`` 相容性同 1.x 。 特别的部分给出说明\n\n+---------------------+---------+\n| Support             | Version |\n+=====================+=========+\n| Chrome              | 105     |\n+---------------------+---------+\n| Edge                | 105     |\n+---------------------+---------+\n| Firefox             | 121     |\n+---------------------+---------+\n| Opera               | 91      |\n+---------------------+---------+\n| Safari              | 18      |\n+---------------------+---------+\n| Chrome Android      | 105     |\n+---------------------+---------+\n| Firefox for Android | 121     |\n+---------------------+---------+\n| Opera Android       | 72      |\n+---------------------+---------+\n| Safari on iOS       | 18      |\n+---------------------+---------+\n| Samsung Internet    | 20.0    |\n+---------------------+---------+\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanarino%2Fstylus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnanarino%2Fstylus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanarino%2Fstylus/lists"}