{"id":19882938,"url":"https://github.com/svengau/tailwindcss-hero-patterns","last_synced_at":"2025-08-19T00:08:19.632Z","repository":{"id":54384669,"uuid":"267532473","full_name":"svengau/tailwindcss-hero-patterns","owner":"svengau","description":"A simple tailwind plugin to display Hero Patterns by @steveschoger.","archived":false,"fork":false,"pushed_at":"2023-03-10T12:22:40.000Z","size":1762,"stargazers_count":102,"open_issues_count":2,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T17:13:05.255Z","etag":null,"topics":["tailwindcss"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/svengau.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2020-05-28T08:15:14.000Z","updated_at":"2025-05-11T03:14:46.000Z","dependencies_parsed_at":"2024-06-18T18:22:54.134Z","dependency_job_id":"5c3ea506-df33-4923-9882-fbc6504177d4","html_url":"https://github.com/svengau/tailwindcss-hero-patterns","commit_stats":{"total_commits":16,"total_committers":5,"mean_commits":3.2,"dds":0.375,"last_synced_commit":"07d1e477f327af88dc3c6d99dba6842a92b2656f"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/svengau/tailwindcss-hero-patterns","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svengau%2Ftailwindcss-hero-patterns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svengau%2Ftailwindcss-hero-patterns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svengau%2Ftailwindcss-hero-patterns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svengau%2Ftailwindcss-hero-patterns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/svengau","download_url":"https://codeload.github.com/svengau/tailwindcss-hero-patterns/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svengau%2Ftailwindcss-hero-patterns/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271053707,"owners_count":24691187,"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","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"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":["tailwindcss"],"created_at":"2024-11-12T17:18:59.193Z","updated_at":"2025-08-19T00:08:19.604Z","avatar_url":"https://github.com/svengau.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tailwind CSS Hero Patterns\n\n[![npm](https://img.shields.io/npm/v/tailwindcss-hero-patterns)](https://www.npmjs.com/package/tailwindcss-hero-patterns)\n\n\nA simple tailwind plugin to display [Hero Patterns](http://www.heropatterns.com/) by [@steveschoger](https://twitter.com/steveschoger).\n\n[DEMO AVAILABLE HERE](https://svengau.github.io/tailwindcss-hero-patterns/)\n\n[TAILWIND PLAYGROUND](https://play.tailwindcss.com/fnFV9iHnq4)\n## Installation\n\n`yarn add tailwindcss-hero-patterns`\n\nor\n\n`npm i tailwindcss-hero-patterns`\n\n## Usage\n\n### Simple\n\nJust include the plugin:\n\n```\n  plugins: [\n    require('tailwindcss-hero-patterns'),\n  ],\n```\n\nAnd start using it:\n\n```html\n\u003cdiv class=\"flex m-2 relative w-40 h-40 sm:pb-0 sm:w-48 sm:h-48 bg-red-500\"\u003e\n  \u003cdiv\n    class=\"bg-repeat w-full h-full text-primary-100 heropattern-jigsaw-red-100\"\n  \u003e\n    \u003cdiv class=\"text-sm inline\"\u003eheropattern-jigsaw-red-500\u003c/div\u003e\n  \u003c/div\u003e\n\u003c/div\u003e\n```\n\nHere is the list of the available templates:\n\n`jigsaw`, `overcast`, `formalinvitation`, `topography`, `texture`, `jupiter`, `architect`, `cutout`, `hideout`, `graphpaper`, `yyy`, `squares`, `fallingtriangles`, `pianoman`, `piefactory`, `dominos`, `hexagons`, `charliebrown`, `autumn`, `temple`, `stampcollection`, `deathstar`, `churchonsunday`, `ilikefood`, `overlappinghexagons`, `fourpointstars`, `bamboo`, `bathroomfloor`, `corkscrew`, `happyintersection`, `kiwi`, `lips`, `lisbon`, `randomshapes`, `steelbeams`, `tinycheckers`, `xequals`, `anchorsaway`, `bevelcircle`, `brickwall`, `fancyrectangles`, `heavyrain`, `overlappingcircles`, `plus`, `roundedplusconnected`, `volcanolamp`, `wiggle`, `bubbles`, `cage`, `connections`, `current`, `diagonalstripes`, `flippeddiamonds`, `floatingcogs`, `glamorous`, `houndstooth`, `leaf`, `linesinmotion`, `moroccan`, `morphingdiamonds`, `rails`, `rain`, `skulls`, `squaresinsquares`, `stripes`, `tictactoe`, `zigzag`, `aztec`, `banknote`, `boxes`, `circlessquares`, `circuitboard`, `curtain`, `diagonallines`, `endlessclouds`, `eyes`, `floortile`, `groovy`, `intersectingcircles`, `melt`, `overlappingdiamonds`, `parkayfloor`, `pixeldots`, `polkadots`, `signal`, `slantedstars`, `wallpaper`\n\n### Advanced Usage\n\n#### Select only some templates\n\n[Hero Patterns](http://www.heropatterns.com/) contains more than 80 patterns, so the generated CSS could be really heavy (at least 24Mo).\n\n3 solutions to reduce the CSS size during development:\n\n1. only import the desired patterns:\n\n```\nconst heropatterns = require(\"tailwindcss-hero-patterns/src/patterns\");\n\nmodule.exports = {\n  theme: {\n    heroPatterns: {\n      architect: heropatterns.architect,\n    },\n    extend: {\n        ...\n    },\n  },\n};\n```\n\n1. only import the desired colors and/or shades:\n\n```\n\nmodule.exports = {\n  theme: {\n    heroPatternsShades: [\"100\", \"500\"],\n    heroPatternsColors: [\"blue\", \"red\"],\n    heroPatternsOpacities: ['0, '50', '90', '100'],\n  },\n};\n```\n\nAnd of course, don't forget to purce your CSS before going to PROD.\n\n#### Add your own template\n\nPrefined patterns comes from [Hero Patterns](http://www.heropatterns.com/), but you can add your own:\n\n```\nmodule.exports = {\n  theme: {\n    extend: {\n      heroPatterns: {\n        circles: `url(\"data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cpattern id='pattern-circles' x='0' y='0' width='40' height='40' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='20' cy='20' r='20'%3E%3C/circle%3E%3C/pattern%3E%3Crect x='0' y='0' width='100%25' height='100%25' fill='url(%23pattern-circles)'%3E%3C/rect%3E%3C/svg%3E\");`,\n      },\n    },\n  },\n};\n```\n\n## Contributions \u0026 debug\n\nIf you want to contribute to this project, or just play with this plugin, here is a [tailwind playground demo](https://play.tailwindcss.com/45NQTo9Uey?file=config) which may interest you.\n\n## Credits\n\nThanks [@steveschoger](https://twitter.com/steveschoger) for all those nice patterns :-)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvengau%2Ftailwindcss-hero-patterns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsvengau%2Ftailwindcss-hero-patterns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvengau%2Ftailwindcss-hero-patterns/lists"}