{"id":20176979,"url":"https://github.com/blueamethyst-studios/css.py","last_synced_at":"2026-05-04T18:33:45.595Z","repository":{"id":177681361,"uuid":"660338678","full_name":"BLUEAMETHYST-Studios/CSS.py","owner":"BLUEAMETHYST-Studios","description":"A library for writing CSS code and then compiling it into default CSS.","archived":false,"fork":false,"pushed_at":"2023-06-30T20:09:14.000Z","size":88,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-27T14:13:46.340Z","etag":null,"topics":["css","library","package","python"],"latest_commit_sha":null,"homepage":"https://blueamethyst.me/CSS.py/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BLUEAMETHYST-Studios.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-29T19:33:48.000Z","updated_at":"2023-06-30T20:15:38.000Z","dependencies_parsed_at":"2023-07-09T06:30:32.234Z","dependency_job_id":null,"html_url":"https://github.com/BLUEAMETHYST-Studios/CSS.py","commit_stats":null,"previous_names":["blueamethyst-studios/css.py"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BLUEAMETHYST-Studios/CSS.py","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BLUEAMETHYST-Studios%2FCSS.py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BLUEAMETHYST-Studios%2FCSS.py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BLUEAMETHYST-Studios%2FCSS.py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BLUEAMETHYST-Studios%2FCSS.py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BLUEAMETHYST-Studios","download_url":"https://codeload.github.com/BLUEAMETHYST-Studios/CSS.py/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BLUEAMETHYST-Studios%2FCSS.py/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27282333,"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","status":"online","status_checked_at":"2025-11-26T02:00:06.075Z","response_time":193,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","library","package","python"],"created_at":"2024-11-14T02:13:16.838Z","updated_at":"2025-11-27T18:04:58.210Z","avatar_url":"https://github.com/BLUEAMETHYST-Studios.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CSS.py\n\nA simple way of making CSS code in Python.\n\n## Your CSS.py installation\n\n### Installing CSS.py\n\n```\npip install cssdotpy\n```\n### Updating CSS.py\n\n```\npip install --upgrade cssdotpy\n```\n\n## Links\n\n- [CODE OF CONDUCT](https://github.com/BLUEAMETHYST-Studios/CSS.py/blob/main/CODE_OF_CONDUCT.md)\n- [CONTRIBUTORS](https://github.com/BLUEAMETHYST-Studios/CSS.py/blob/main/CONTRIBUTORS.md)\n- [CONTRIBUTING POLICY](https://github.com/BLUEAMETHYST-Studios/CSS.py/blob/main/CONTRIBUTING.md)\n- [SECURITY POLICY](https://github.com/BLUEAMETHYST-Studios/CSS.py/blob/main/SECURITY.md)\n\n## Using it\n\n### NOTICE: CSS.PY IS IN ALPHA DEVELOPMENT STAGES AND DOES NOT HAVE MANY FEATURES YET\n\n### Creating a CSS instance\n\n```py\nimport cssdotpy\n\nMyCSS = cssdotpy.CSS()\n```\n\n### Adding HTML elements to the CSS and styling them\n\n```py\nimport cssdotpy\n\nMyCSS = cssdotpy.CSS()\n\nMyCSS.addElement(element=\"p\", style=[\"color:red\", \"font-family:roboto\"])\n```\n\n### Adding HTML classes to the CSS and styling them\n\n```py\nimport cssdotpy\n\nMyCSS = cssdotpy.CSS()\n\nMyCSS.addClass(name=\"MyClassName\", style=[\"color:red\", \"font-family:roboto\"])\n```\n\n### Adding Events to elements and/or classes and styling those\n\n```py\nimport cssdotpy\n\nMyCSS = cssdotpy.CSS()\n\nMyCSS.addElement(element=\"p\", style=[\"color:red\", \"font-family:roboto\"])\nMyCSS.addClass(name=\"MyClassName\", style=[\"color:red\", \"font-family:roboto\"])\n\nMyCSS.addEventToElement(element=\"p\", event=\"hover\", style=[\"color:blue\", \"transform: scale(1.1)\"])\nMyCSS.addEventToClass(name=\"MyClassName\", event=\"hover\", style=[\"color:blue\", \"transform: scale(1.1)\"])\n```\n\n### Getting your CSS\n\n```py\nimport cssdotpy\n\nMyCSS = cssdotpy.CSS()\n\nMyCSS.addElement(element=\"p\", style=[\"color:red\", \"font-family:roboto\"])\nMyCSS.addClass(name=\"MyClassName\", style=[\"color:red\", \"font-family:roboto\"])\n\nMyCSS.addEventToElement(element=\"p\", event=\"hover\", style=[\"color:blue\", \"transform: scale(1.1)\"])\nMyCSS.addEventToClass(name=\"MyClassName\", event=\"hover\", style=[\"color:blue\", \"transform: scale(1.1)\"])\n\n# Print CSS\nprint(MyCSS.returnCSS())\n\n# Output to file\nopen(\"output.css\", \"w\").write(MyCSS.returnCSS())\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblueamethyst-studios%2Fcss.py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblueamethyst-studios%2Fcss.py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblueamethyst-studios%2Fcss.py/lists"}