{"id":20766805,"url":"https://github.com/chapter-three/c3-patternlab","last_synced_at":"2026-04-24T14:33:53.277Z","repository":{"id":41768073,"uuid":"199902302","full_name":"chapter-three/c3-patternlab","owner":"chapter-three","description":"Mirror of https://dashboard.pantheon.io/sites/84d05b36-19ed-4b9c-8986-9c0f2569b40f","archived":false,"fork":false,"pushed_at":"2023-01-04T11:22:50.000Z","size":56783,"stargazers_count":0,"open_issues_count":18,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-20T00:15:29.289Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/chapter-three.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":"2019-07-31T17:39:49.000Z","updated_at":"2020-06-07T15:28:25.000Z","dependencies_parsed_at":"2023-02-02T10:16:18.401Z","dependency_job_id":null,"html_url":"https://github.com/chapter-three/c3-patternlab","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chapter-three/c3-patternlab","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chapter-three%2Fc3-patternlab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chapter-three%2Fc3-patternlab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chapter-three%2Fc3-patternlab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chapter-three%2Fc3-patternlab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chapter-three","download_url":"https://codeload.github.com/chapter-three/c3-patternlab/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chapter-three%2Fc3-patternlab/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32227575,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: 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":[],"created_at":"2024-11-17T11:26:16.268Z","updated_at":"2026-04-24T14:33:53.250Z","avatar_url":"https://github.com/chapter-three.png","language":"PHP","readme":"# C3 Pattern Lab\n\n[Pattern Lab](https://patternlab.io) is a design system tool, like Pattern Lab. This site exists to demonstrate a [Pattern Lab](https://patternlab.io) pattern library, used within Drupal, using the [UI Patterns](https://drupal.org/project/ui_patterns) suite of modules.\n\n## Information\n\n\n_* The Github repo is a mirror (meant for easily browsing the codebase). It's only updated if the user pushing code has configured additional push URLs [according to these instructions](https://github.com/chapter-three/wiki/blob/master/Chapter%20Three/Developers/GIT.md#push-to-multiple-remotes-by-default)._\n\n| Name | URL  |\n| :--- | :--- |\n| Dashboard | https://dashboard.pantheon.io/sites/84d05b36-19ed-4b9c-8986-9c0f2569b40f |\n| Site | https://dev-c3-patternlab.pantheonsite.io |\n| Codebase | `ssh://codeserver.dev.84d05b36-19ed-4b9c-8986-9c0f2569b40f@codeserver.dev.84d05b36-19ed-4b9c-8986-9c0f2569b40f.drush.in:2222/~/repository.git` |\n| Github* | https://github.com/chapter-three/c3-patternlab |\n| \u003cnobr\u003ePattern Lab Demo\u003cnobr\u003e | https://dev-c3-patternlab.pantheonsite.io/libraries/pattern-lab/public/index.html |\n| UI Patterns Listing | https://dev-c3-patternlab.pantheonsite.io/patterns\n\n### Notes\n\n- The Pattern Lab library is located in `web/libraries/pattern-lab`. There are currently 3 patterns:\n  - Blockquote\n  - Button\n  - Card\n- There is a very basic Drupal theme at `web/themes/custom/patternlab`. It has minimal CSS, and no build scripts. It currently defines only one Pattern \u0026 template (which passes through to the Pattern Lab template): Blockquote.\n- The rest of the components are parsed directly from the Pattern Lab instance by `ui_patterns_pattern_lab`.\n- Patterns are configured in Drupal, in a few places:\n  1. https://dev-c3-patternlab.pantheonsite.io/hello - This is a landing node, that has a few Paragraphs configured:\n      - Blockquote paragraph (default display)\n      - Card paragraph (default display)\n      - Button link paragraph (default display)\n  2. https://dev-c3-patternlab.pantheonsite.io/faq - This is a View, configured to use the UI Patterns row display, along with Views fields that are mapped to the Card pattern.\n  3. https://dev-c3-patternlab.pantheonsite.io/blog - This is a View, configured to render \"teaser\" entity display for article content type. The \"Teaser\" view mode is configured to use the \"Card\" pattern.\n- There is a custom module `fieldz_formatterz` that currently adds some extra fields to handle the 1:1 mapping that UI Patterns needs on entity displays.\n\n## Local Setup\n\n1. Install dependencies:\n\n```sh\ncd web/libraries/pattern-lab\nnpm install\n```\n\n2. Start server:\n\n    _Note:  If you get an error when running `npm start`, try installing the cli tool globally: `npm install -g npx`_\n\n```sh\nnpm start\n```\n\n3. Rebuild static style guide instance:\n\n  ```sh\nnpm run build\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchapter-three%2Fc3-patternlab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchapter-three%2Fc3-patternlab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchapter-three%2Fc3-patternlab/lists"}