{"id":13450052,"url":"https://github.com/MatteuSan/sentro","last_synced_at":"2025-03-23T16:30:57.290Z","repository":{"id":143759853,"uuid":"421888006","full_name":"MatteuSan/sentro","owner":"MatteuSan","description":"A low-level SCSS library for building robust token-driven design systems at scale.","archived":false,"fork":false,"pushed_at":"2024-05-01T09:36:04.000Z","size":1208,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-16T09:32:46.323Z","etag":null,"topics":["css","design","design-system","design-token","design-tokens","frontend","scss","scss-framework","theme","token","tokens"],"latest_commit_sha":null,"homepage":"https://sentro.matteusan.com","language":"SCSS","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/MatteuSan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"patreon":"Matteu","ko_fi":"matteu"}},"created_at":"2021-10-27T16:12:09.000Z","updated_at":"2024-07-05T11:40:45.000Z","dependencies_parsed_at":"2024-10-08T13:26:59.236Z","dependency_job_id":"4cadf11d-c50c-47da-b951-6b1b5f5e18d5","html_url":"https://github.com/MatteuSan/sentro","commit_stats":null,"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatteuSan%2Fsentro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatteuSan%2Fsentro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatteuSan%2Fsentro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatteuSan%2Fsentro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MatteuSan","download_url":"https://codeload.github.com/MatteuSan/sentro/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245130700,"owners_count":20565696,"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":["css","design","design-system","design-token","design-tokens","frontend","scss","scss-framework","theme","token","tokens"],"created_at":"2024-07-31T07:00:28.805Z","updated_at":"2025-03-23T16:30:56.835Z","avatar_url":"https://github.com/MatteuSan.png","language":"SCSS","funding_links":["https://patreon.com/Matteu","https://ko-fi.com/matteu"],"categories":["Sentro"],"sub_categories":[],"readme":"# Sentro\nA low-level SCSS library for building robust token-driven design systems at scale.\n\n## Installation\n```sh\n# NPM\nnpm install @matteusan/sentro --save\n```\n\n## Documentation\n- The documentation for this project is located [here](https://docs.matteusan.me/docs/sentro).\n\n## Showcase\n#### SCSS Input\n```scss\n@use 'pkg:@matteusan/sentro' with (\n  $prefix: 'sdc',\n  $context: 'theme'\n);\n\n:root {\n  @include sentro.token-config(\n    $primary: (\n      'default': #122c53,\n      'light': #536b99,\n      'dark': #061021,\n      'ink': #fff\n    ),\n    $secondary: (\n      'default': #ffac00,\n      'light': #ffd77e,\n      'dark': #533800,\n      'ink': #000\n    ),\n    $radius: (\n      'small': 0.3rem,\n      'medium': 0.5rem,\n      'large': 0.7rem\n    ),\n  );\n}\n\n.my-button-theme {\n  background: sentro.key-create('button-fill', 'secondary');\n  color: sentro.key-create('button-ink', 'secondary-ink');\n  border-color: sentro.key-create('button-border', 'secondary');\n  border-radius: sentro.key-create('button-radius', 'radius-small');\n}\n```\n\n#### CSS Output\n```css\n:root {\n  --sdc-theme-primary: #122c53;\n  --sdc-theme-primary-light: #536b99;\n  --sdc-theme-primary-dark: #061021;\n  --sdc-theme-primary-ink: #fff;\n  --sdc-theme-secondary: #ffac00;\n  --sdc-theme-secondary-light: #ffd77e;\n  --sdc-theme-secondary-dark: #533800;\n  --sdc-theme-secondary-ink: #000;\n  --sdc-theme-radius-small: 0.3rem;\n  --sdc-theme-radius-medium: 0.5rem;\n  --sdc-theme-radius-large: 0.7rem;\n}\n\n.my-button-theme {\n    background: var(--sdc-button-fill, var(--sdc-theme-secondary));\n    color: var(--sdc-button-ink, var(--sdc-theme-secondary-ink));\n    border-color: var(--sdc-button-border, var(--sdc-theme-secondary));\n    border-radius: var(--sdc-button-radius, var(--sdc-theme-radius-small));\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMatteuSan%2Fsentro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMatteuSan%2Fsentro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMatteuSan%2Fsentro/lists"}