{"id":22814154,"url":"https://github.com/t1amat9409/trojan","last_synced_at":"2026-01-11T02:53:23.944Z","repository":{"id":194549710,"uuid":"92482712","full_name":"t1amat9409/Trojan","owner":"t1amat9409","description":"JSON-CSS Loader","archived":false,"fork":false,"pushed_at":"2018-01-18T06:52:17.000Z","size":38,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-06T02:48:31.577Z","etag":null,"topics":["css-in-js","cssnext","json-css"],"latest_commit_sha":null,"homepage":"","language":null,"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/t1amat9409.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}},"created_at":"2017-05-26T07:09:17.000Z","updated_at":"2017-06-09T16:54:36.000Z","dependencies_parsed_at":"2023-09-14T03:13:34.323Z","dependency_job_id":null,"html_url":"https://github.com/t1amat9409/Trojan","commit_stats":null,"previous_names":["t1amat9409/trojan"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t1amat9409%2FTrojan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t1amat9409%2FTrojan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t1amat9409%2FTrojan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t1amat9409%2FTrojan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/t1amat9409","download_url":"https://codeload.github.com/t1amat9409/Trojan/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246385414,"owners_count":20768672,"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-in-js","cssnext","json-css"],"created_at":"2024-12-12T13:07:23.265Z","updated_at":"2026-01-11T02:53:23.911Z","avatar_url":"https://github.com/t1amat9409.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Trojan\nJSON-CSS Loader\n\u003eNothing new here, just an experimental mini lib I created and turned to be doing the job. No tests have been made yet, but be free to go through the source code and improve it\n```Javascript\n//Create a new Trojan object\nvar style = new Trojan.style(\"styleID\") //or\n//create a style obj\nvar styleObj = {\n  \"*\":{...props}\n}\n\n//Declare with local object or remote json data\n//Local object, which is our styleObj\nstyle.declare(styleObj).run()\n\n//OR via URL (json)\n//url can point to any path that returns an application/json content\nstyle.load(\"test.json\")\n\n//Then you are done!!\n\n```\n# TEST.JSON\n\n```json\n\n{\n\t\t\"*\" : {},\n\t\t\"html\" : {\n\t\t\t\"background\":\"teal\"\n\t\t},\n\t\t\"ul, div[view]\" : {\n\t\t\t\"background\":\"white\",\n\t\t\t\"list-style\":\"none\",\n\t\t\t\"padding\":\"0.3em\",\n\t\t\t\"border-radius\":\"5px\"\n\t\t},\n\t\t\"a\":{\n\t\t\t\"color\":\"brown\",\n\t\t\t\"text-decoration\":\"none\",\n\t\t\t\"outline\":\"none\"\n\t\t},\n\t\t\".link\":{\n\t\t\t\"display\":\"flex\",\n\t\t\t\"display\":\"-webkit-flex\",\n\t\t\t\"line-height\":\"24pt\",\n\t\t\t\"align-items\":\"center\",\n\t\t\t\"-webkit-align-items\":\"center\",\n\t\t\t\"justify-content\":\"center\",\n\t\t\t\"-webkit-justify-content\":\"center\",\n\t\t},\n\t\t\".link li\":{\n\t\t\t\"display\":\"block\",\n\t\t\t\"flex\":\"1\",\n\t\t\t\"-webkit-flex\":\"1\",\n\t\t\t\"text-align\":\"center\",\n\t\t\t\"background\":\"#e3e6eb\"\n\t\t},\n\t\t\"h1\":{\n\t\t\t\"border-bottom\":\"1px solid #e4e6eb\",\n\t\t\t\"margin\":0,\n\t\t\t\"padding\":\"0.2em\",\n\t\t\t\"font-size\":\"18pt\"\n\t\t}\n\t}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft1amat9409%2Ftrojan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ft1amat9409%2Ftrojan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft1amat9409%2Ftrojan/lists"}