{"id":16365204,"url":"https://github.com/xiaoluoboding/vuepress-plugin-hero-pattern","last_synced_at":"2026-03-18T19:11:57.481Z","repository":{"id":65519680,"uuid":"250554802","full_name":"xiaoluoboding/vuepress-plugin-hero-pattern","owner":"xiaoluoboding","description":"🌠A Hero Patterns achievement for VuePress","archived":false,"fork":false,"pushed_at":"2020-03-28T06:44:17.000Z","size":908,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-17T09:10:10.986Z","etag":null,"topics":["svg","svg-patterns","vuepress","vuepress-plugin"],"latest_commit_sha":null,"homepage":"https://codesandbox.io/s/vuepress-plugin-hero-pattern-o1ebr?fontsize=14\u0026hidenavigation=1\u0026theme=dark\u0026view=preview","language":"Vue","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/xiaoluoboding.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}},"created_at":"2020-03-27T14:24:15.000Z","updated_at":"2023-01-18T21:51:09.000Z","dependencies_parsed_at":"2023-01-27T02:16:18.882Z","dependency_job_id":null,"html_url":"https://github.com/xiaoluoboding/vuepress-plugin-hero-pattern","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/xiaoluoboding/vuepress-plugin-hero-pattern","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaoluoboding%2Fvuepress-plugin-hero-pattern","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaoluoboding%2Fvuepress-plugin-hero-pattern/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaoluoboding%2Fvuepress-plugin-hero-pattern/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaoluoboding%2Fvuepress-plugin-hero-pattern/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xiaoluoboding","download_url":"https://codeload.github.com/xiaoluoboding/vuepress-plugin-hero-pattern/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaoluoboding%2Fvuepress-plugin-hero-pattern/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28753432,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T10:25:12.305Z","status":"ssl_error","status_checked_at":"2026-01-25T10:25:11.933Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["svg","svg-patterns","vuepress","vuepress-plugin"],"created_at":"2024-10-11T02:42:56.151Z","updated_at":"2026-01-25T13:31:33.818Z","avatar_url":"https://github.com/xiaoluoboding.png","language":"Vue","readme":"# Vuepress Plugin HeroPattern\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/xiaoluoboding/vuepress-plugin-hero-pattern\"\u003e\n    \u003cimg src=\"./assets/images/logo.png\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"left\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/vuepress-plugin-hero-pattern\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/vuepress-plugin-hero-pattern.svg?maxAge=2592000\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/vuepress-plugin-hero-pattern\"\u003e\u003cimg src=\"https://img.shields.io/npm/dt/vuepress-plugin-hero-pattern.svg\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://raw.githubusercontent.com/vueblocks/vuepress-plugin-hero-pattern/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nRegister a global `\u003cHeroPattern /\u003e` component for VuePress.\n\nThis component generate a seemless SVG background pattern as a background image.\n\n\u003e This plugin is a VuePress implementation of [Hero Patterns](http://www.heropatterns.com/), All 87 unstyled svg icons is optimized with svgo.\n\n## See Demo on CodeSandbox\n\n[![Edit vuepress-plugin-hero-pattern](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/vuepress-plugin-hero-pattern-o1ebr?fontsize=14\u0026hidenavigation=1\u0026theme=dark)\n\n## Installation\n\n```bash\nyarn add vuepress-plugin-hero-pattern -S\nor\nnpm i vuepress-plugin-hero-pattern -S\n```\n\n## Register the plugin\n\n```js\n...\nmodule.exports = {\n  ...,\n  plugins: {\n    ['hero-pattern']\n  },\n  ...\n}\n...\n```\n\n## Usage\n\n### Default\n\nI pick `line-to-motion` as the preset pattern.\n\n\u003e Only background image, you must give the height of the element\n\n```vue\n\u003cHeroPattern style=\"height: 160px;\" /\u003e\n```\n\n### Pick a Pattern\n\nHero Pattern provide 87 kinds of pattern you can choose, check [pattern list](https://github.com/xiaoluoboding/vuepress-plugin-hero-pattern/tree/master/assets/icons)\n\n```vue\n\u003cHeroPattern\n  style=\"height: 160px;\"\n  pattern=\"glamorous\"\n  fill-color=\"#FAF5FF\"\n  background-color=\"#553C9A\"\n  fill-opacity=\".66\"\n/\u003e\n```\n\n### With the custom slot\n\n\u003e In the case, you can let the slot element control the pattern's height\n\n```vue\n\u003chero-pattern\u003e\n  \u003cdiv style=\"padding: 64px; font-size: 2rem; font-weight: bold; color: white;\"\u003e\n    All Posts\n  \u003c/div\u003e\n\u003c/hero-pattern\u003e\n```\n\n## API\n\n| Props | Description | Type | Default |\n| :---: | :---------: | :--: | :-----: |\n| pattern | 87 kinds of patterns that Hero Patterns supported, check [pattern list](https://github.com/xiaoluoboding/vuepress-plugin-hero-pattern/tree/master/assets/icons) | String | `line-to-motion` |\n| fillColor | Controls the foreground color of the generated image. | String | `#9c92ac` |\n| fillOpacity | Controls the foreground opacity of the generated image. | String | `0.4` |\n| backgroundColor | Controls the background color of the generated image. | String | `#dfdbe5` |\n| repeat | Controls how the background repeated of the generated image. | String | `repeat` |\n\n## Slot\n\n`\u003cHeroPattern /\u003e` component provide a custom slot, you can write some element on the generated pattern.\n\n## Related VuePress Plugin\n\n* [vuepress-plugin-geopattern](https://github.com/xiaoluoboding/vuepress-plugin-geopattern) - GeoPattern is a geopattern adapter for VuePress.\n\n## License\n\nMIT @ [xiaoluoboding](https://github.com/xiaoluoboding)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiaoluoboding%2Fvuepress-plugin-hero-pattern","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxiaoluoboding%2Fvuepress-plugin-hero-pattern","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiaoluoboding%2Fvuepress-plugin-hero-pattern/lists"}