{"id":18358788,"url":"https://github.com/uppercod/cssthis-tag","last_synced_at":"2025-04-10T03:00:17.742Z","repository":{"id":57157068,"uuid":"148391666","full_name":"UpperCod/cssthis-tag","owner":"UpperCod","description":"This small library (190B) takes advantage of the return of cssthis-parse, to define the style for the tags created as web-components.","archived":false,"fork":false,"pushed_at":"2018-09-12T01:41:38.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-19T12:18:15.604Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/UpperCod.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":"2018-09-11T23:14:16.000Z","updated_at":"2018-09-12T01:41:40.000Z","dependencies_parsed_at":"2022-09-03T18:51:41.192Z","dependency_job_id":null,"html_url":"https://github.com/UpperCod/cssthis-tag","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/UpperCod%2Fcssthis-tag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UpperCod%2Fcssthis-tag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UpperCod%2Fcssthis-tag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UpperCod%2Fcssthis-tag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UpperCod","download_url":"https://codeload.github.com/UpperCod/cssthis-tag/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248148217,"owners_count":21055547,"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-05T22:19:25.575Z","updated_at":"2025-04-10T03:00:17.680Z","avatar_url":"https://github.com/UpperCod.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cssthis-tag\n\nThis small library (190B) takes advantage of the return of [**cssthis-parse**](https://github.com/UpperCod/cssthis-parse), to define the style for the tags created as web-components.\n\n## css\n\nResemble the syntax already used for the css within the [**shadowDom**](https://developer.mozilla.org/en-US/docs/Web/CSS/:host).\n\n```css\n:host{\n   width : 100px;\n   height : 100px;\n}\n\nbutton{\n   border:1px solid black;\n   background : transparent;\n}\n```\n\n##js\n\nIt allows to import the css directly from a file, note the fact that the file ends in `.this.css`.\n\n```js\nimport css from \"./style.this.css\";\nimport style from \"cssthis-tag\";\n\nstyle(\"my-tag\")(css);\n```\n\n## Output of the css in document.head\n\n`:host` will be replaced by the name of the tag.\n\n```css\nmy-tag{\n   width : 100px;\n   height : 100px;\n}\n\nmy-tag button{\n   border:1px solid black;\n   background : transparent;\n}\n```\n\nConsult the documentation of [**Cssthis**](https://github.com/UpperCod/cssthis), to know the installers of [**cssthis-parse**](https://github.com/UpperCod/cssthis-parse).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuppercod%2Fcssthis-tag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuppercod%2Fcssthis-tag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuppercod%2Fcssthis-tag/lists"}