{"id":22998260,"url":"https://github.com/uswitch/trustyle","last_synced_at":"2025-08-14T00:31:56.205Z","repository":{"id":35402624,"uuid":"199447357","full_name":"uswitch/trustyle","owner":"uswitch","description":"React components with style","archived":false,"fork":false,"pushed_at":"2023-10-11T13:43:49.000Z","size":45853,"stargazers_count":1,"open_issues_count":37,"forks_count":1,"subscribers_count":29,"default_branch":"master","last_synced_at":"2024-12-09T03:37:54.871Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uswitch.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}},"created_at":"2019-07-29T12:20:31.000Z","updated_at":"2022-10-04T05:27:31.000Z","dependencies_parsed_at":"2024-06-21T15:22:53.670Z","dependency_job_id":"f1e05efa-5b62-4905-969d-e979bd8e3fec","html_url":"https://github.com/uswitch/trustyle","commit_stats":null,"previous_names":[],"tags_count":5012,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uswitch%2Ftrustyle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uswitch%2Ftrustyle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uswitch%2Ftrustyle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uswitch%2Ftrustyle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uswitch","download_url":"https://codeload.github.com/uswitch/trustyle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229786999,"owners_count":18124014,"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-12-15T06:12:28.408Z","updated_at":"2024-12-15T06:12:28.923Z","avatar_url":"https://github.com/uswitch.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Development\n\nAll commands can be run from individual packages, but it is not necessary to do so.\n\n- Run `npm install` at the project root to install the dev dependencies.\n- Run `npx lerna bootstrap` to link package dependencies to each other.\n\nOn some systems, `npx lerna bootstrap` may fail with an error `Unexpected end of JSON input while parsing near '...-imports\":\"^7.7.0\",\"@'` - in this case, try running `npm cache clean --force`\n\nTo run storybook locally `npm start`.\n\nThe packages are all built using the same build step. Run `npm run build` to build all the packages using `tsc`. All files matching `src/**/*.{ts,tsx}` are included and output is written to the `lib` directory within each package.\n\nTo add a new element, copy the template to the src/elements directory, update the package.json with the name and add your source code.\n \n## Publishing\n\n**Do not do this until you are ready to merge and your PR has been approved!** Justification below.\n\nTo preview which packages have changed, you can run `npx lerna changed` without publishing.\n\nOnce happy with the code changes, run `npx lerna version` and bump the versions accordingly.\n\nLerna will generate a publish commit. Push that commit to your remote branch and once it gets merged to master, CI will publish the new versions to `npm`.\n\nWhy you shouldn't publish until ready to merge:\n\n- You will block anyone else who wants to change that package or any dependents or dependencies until your PR is merged.\n- If changes are requested, you will have to update the version again after making the changes.\n- If you have to merge in master, you will have to update the version again.\n\n## Accessibility checks\n\nWe run automated accessibility tests as part of our pre-merge CI checks. You can run these tests locally as follows:\n\n1. Run storybook: `npm run storybook`\n2. Run the tests: `npm run a11y`\n\n## Palette \u0026 Margin Collapse\n\nIn order to prevent margin collapse on palette components, you should\nadd the following snippet as high up in your document as possible\n\n```html\n\u003cstyle\u003e.palette{padding-top:0.05px;padding-bottom:0.05px;}\u003c/style\u003e\n```\n\nThis will be the least specific settings for `padding` properties, and\nwill therefore prevent margin collapse for elements that don't have\npadding, but will also respect the padding of an element if it is\nalready set\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuswitch%2Ftrustyle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuswitch%2Ftrustyle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuswitch%2Ftrustyle/lists"}