{"id":50643425,"url":"https://github.com/rstackjs/rsbuild-plugin-stylus","last_synced_at":"2026-06-07T10:31:27.856Z","repository":{"id":359281989,"uuid":"1245314874","full_name":"rstackjs/rsbuild-plugin-stylus","owner":"rstackjs","description":"An Rsbuild plugin for using Stylus as the CSS preprocessor","archived":false,"fork":false,"pushed_at":"2026-05-28T13:31:51.000Z","size":50,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-28T15:13:36.260Z","etag":null,"topics":["css","rsbuild","rsbuild-plugin","rspack","stylus"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/rstackjs.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-21T05:38:44.000Z","updated_at":"2026-05-28T13:31:49.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/rstackjs/rsbuild-plugin-stylus","commit_stats":null,"previous_names":["rstackjs/rsbuild-plugin-stylus"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/rstackjs/rsbuild-plugin-stylus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstackjs%2Frsbuild-plugin-stylus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstackjs%2Frsbuild-plugin-stylus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstackjs%2Frsbuild-plugin-stylus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstackjs%2Frsbuild-plugin-stylus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rstackjs","download_url":"https://codeload.github.com/rstackjs/rsbuild-plugin-stylus/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstackjs%2Frsbuild-plugin-stylus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34018404,"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-07T02:00:07.652Z","response_time":124,"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":["css","rsbuild","rsbuild-plugin","rspack","stylus"],"created_at":"2026-06-07T10:31:23.349Z","updated_at":"2026-06-07T10:31:27.847Z","avatar_url":"https://github.com/rstackjs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @rsbuild/plugin-stylus\n\nStylus is an expressive, dynamic, and robust CSS preprocessor. With this plugin, you can use Stylus as the CSS preprocessor in Rsbuild.\n\n\u003cp\u003e\n  \u003ca href=\"https://npmjs.com/package/@rsbuild/plugin-stylus\"\u003e\n   \u003cimg src=\"https://img.shields.io/npm/v/@rsbuild/plugin-stylus?style=flat-square\u0026colorA=564341\u0026colorB=EDED91\" alt=\"npm version\" /\u003e\n  \u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square\u0026colorA=564341\u0026colorB=EDED91\" alt=\"license\" /\u003e\n  \u003ca href=\"https://npmcharts.com/compare/@rsbuild/plugin-stylus?minimal=true\"\u003e\u003cimg src=\"https://img.shields.io/npm/dm/@rsbuild/plugin-stylus.svg?style=flat-square\u0026colorA=564341\u0026colorB=EDED91\" alt=\"downloads\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Usage\n\nInstall:\n\n```bash\nnpm add @rsbuild/plugin-stylus -D\n```\n\nAdd plugin to your `rsbuild.config.ts`:\n\n```ts\n// rsbuild.config.ts\nimport { pluginStylus } from '@rsbuild/plugin-stylus';\n\nexport default {\n  plugins: [pluginStylus()],\n};\n```\n\nAfter registering the plugin, you can import `*.styl`, `*.stylus`, `*.module.styl`, or `*.module.stylus` files without adding other configs.\n\n```styl\n// normalize.styl\nbody\n  color #000\n  font 14px Arial, sans-serif\n```\n\n```styl\n// title.module.styl\n.title\n  font-size 14px\n```\n\n```js\n// index.js\nimport './normalize.styl';\nimport style from './title.module.styl';\n\nconsole.log(style.title);\n```\n\n## Options\n\n### stylusOptions\n\n- Type:\n\n```ts\ntype StylusOptions = {\n  use?: string[];\n  define?: [string, unknown, boolean?][];\n  include?: string[];\n  includeCSS?: boolean;\n  import?: string[];\n  resolveURL?: boolean;\n  lineNumbers?: boolean;\n  hoistAtrules?: boolean;\n};\n```\n\n- Default: `undefined`\n\nThese options are passed to Stylus. For details, see the [Stylus documentation](https://stylus-lang.com/docs/js).\n\n```ts\npluginStylus({\n  stylusOptions: {\n    lineNumbers: false,\n  },\n});\n```\n\n### sourceMap\n\n- Type: `boolean`\n- Default: the same as Rsbuild's `output.sourceMap.css` config\n\nWhether to generate source maps.\n\n```ts\npluginStylus({\n  sourceMap: false,\n});\n```\n\n## License\n\n[MIT](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frstackjs%2Frsbuild-plugin-stylus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frstackjs%2Frsbuild-plugin-stylus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frstackjs%2Frsbuild-plugin-stylus/lists"}