{"id":21070655,"url":"https://github.com/wisembly/tapestry","last_synced_at":"2025-05-16T05:30:58.728Z","repository":{"id":24428920,"uuid":"27830346","full_name":"Wisembly/tapestry","owner":"Wisembly","description":"Wisembly - UI Elements","archived":false,"fork":false,"pushed_at":"2024-12-30T16:26:12.000Z","size":31711,"stargazers_count":23,"open_issues_count":0,"forks_count":6,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-05-14T07:11:48.660Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://tapestry.wisembly.com","language":"CSS","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/Wisembly.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}},"created_at":"2014-12-10T17:09:48.000Z","updated_at":"2025-02-03T01:09:31.000Z","dependencies_parsed_at":"2022-08-22T08:10:09.872Z","dependency_job_id":null,"html_url":"https://github.com/Wisembly/tapestry","commit_stats":null,"previous_names":[],"tags_count":153,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wisembly%2Ftapestry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wisembly%2Ftapestry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wisembly%2Ftapestry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wisembly%2Ftapestry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Wisembly","download_url":"https://codeload.github.com/Wisembly/tapestry/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254473834,"owners_count":22077183,"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","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-19T18:47:44.848Z","updated_at":"2025-05-16T05:30:53.710Z","avatar_url":"https://github.com/Wisembly.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tapestry [![Build Status](https://travis-ci.org/Wisembly/tapestry.svg?branch=master)](https://travis-ci.org/Wisembly/tapestry) [![npm version](https://badge.fury.io/js/tapestry-css.svg)](https://badge.fury.io/js/tapestry-css) [![Bower version](https://badge.fury.io/bo/tapestry.svg)](https://badge.fury.io/bo/tapestry)\n\n## CSS guidelines\n\n### Goals\n* Maintainable OOCSS components\n* Scalable code\n\n### Naming\n\n* BEM - Block-element--modifier\n* PascaleCase for component name\n* camelCase for component childs\n* Lowercase for modifiers\n * Use `is-*` and `has-*` modifiers when needed\n\n```html\n\u003cdiv class=\"Component Component--modifier is-state\"\u003e\n  \u003cdiv class=\"Component-child\"\u003e\u003c/div\u003e\n  \u003cdiv class=\"Component-otherChild\"\u003e\u003c/div\u003e\n\u003c/div\u003e\n```\n\n### Spacing and indentation\n\n* Two spaces indent\n* Space after `:` property declaration\n* Space before `{` rule declaration\n* Closing braces on a new line\n\n```css\n.Component {\n  display: inline-block;\n}\n```\n\n### Else\n\n * Never use IDs\n * No magic number\n * Only use `!important` on utility classes\n * Max nesting level: 3\n\n\n\n## Development\n\n### Installation\n\n```\nnpm install\nnpm install -g gulp pug-cli backstopjs\n```\n\n### Run\n\n```js\ngulp // starts server and watch files, available on localhost:3000\ngulp icons // builds icons\n```\n\n### Pre-commit and pre-push\n\n#### Installation\n\nPre-commit hook ensures code has been linted.\n\n```bash\nnpm run pre-commit\n```\n\n#### Bypass\n\nTo bypass the pre-commit, just add `-n` option.\n\n```\ngit ci -n\ngit ci -nm \"My commit message\"\n```\n\n### Release\n\n```js\nnpm run release // builds, commits, push, tags, publishes to Bower and NPM and deploys to GitHub Pages\n```\n\n### Deploying\n\nIt can be run manually:\n\n```js\nnpm run deploy\n```\n\n\n### Tests\n\nTests are run with Travis and have to be updated before branch merges. They can be run locally with these following commands.\n\n```js\nnpm run lint // linter\nbackstop reference // visual tests: builds references\nbackstop test // visual tests: compares references with actual HEAD\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwisembly%2Ftapestry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwisembly%2Ftapestry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwisembly%2Ftapestry/lists"}