{"id":14973499,"url":"https://github.com/salamaashoush/ngx-styled","last_synced_at":"2025-08-23T01:45:36.704Z","repository":{"id":35062606,"uuid":"202246647","full_name":"salamaashoush/ngx-styled","owner":"salamaashoush","description":"Simple Decorator to integrate emotion with angular components","archived":false,"fork":false,"pushed_at":"2022-06-02T23:20:45.000Z","size":486,"stargazers_count":5,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T01:25:16.570Z","etag":null,"topics":["angular","angular-components","cssinjs","decorator","emotion","jss","style","styled-components"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/salamaashoush.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":"2019-08-14T01:04:04.000Z","updated_at":"2023-07-11T12:04:59.000Z","dependencies_parsed_at":"2022-09-08T18:31:35.023Z","dependency_job_id":null,"html_url":"https://github.com/salamaashoush/ngx-styled","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salamaashoush%2Fngx-styled","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salamaashoush%2Fngx-styled/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salamaashoush%2Fngx-styled/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salamaashoush%2Fngx-styled/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/salamaashoush","download_url":"https://codeload.github.com/salamaashoush/ngx-styled/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238418225,"owners_count":19468868,"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":["angular","angular-components","cssinjs","decorator","emotion","jss","style","styled-components"],"created_at":"2024-09-24T13:48:52.153Z","updated_at":"2025-02-12T05:31:21.745Z","avatar_url":"https://github.com/salamaashoush.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NgxStyled\n\n[![npm version](https://badge.fury.io/js/ngx-styled.svg)](https://badge.fury.io/js/ngx-styled)\n\nThis is a simple  decorator to integrate [emotion](https://emotion.sh/docs/emotion) with angular components\n\n```typescript\nimport { Styled } from 'ngx-styled';\nimport { Component } from '@angular/core'\n\n@Component({\n  template: '\u003cdiv [ngClass]=\"classes\"\u003e\u003cbutton (click)=\"changeColor()\"\u003eChange Color\u003c/button\u003e\u003c/div\u003e',\n})\n@Styled\u003cSimpleComponent\u003e(({ component, css, injectGlobal }) =\u003e {\n  // tslint:disable-next-line: no-unused-expression\n  injectGlobal`\n      body {\n        background: ${component.color};\n        width: 100vw;\n        height: 100vh;\n        display: flex;\n        align-items: center;\n        justify-content: center;\n      }\n  `;\n  return css({\n    '\u0026 button': {\n      padding: 10,\n      border: 'none',\n      color: 'white',\n      background: '#2c3e50'\n    }\n  });\n})\nclass SimpleComponent {\n  classes: string; // managed by ngx-styled\n  color = 'green';\n\n  changeColor(){\n    // styles will be updated with component changes\n    this.color = 'red';\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalamaashoush%2Fngx-styled","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsalamaashoush%2Fngx-styled","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalamaashoush%2Fngx-styled/lists"}