{"id":31619731,"url":"https://github.com/bryanbill/cssify","last_synced_at":"2025-10-06T14:39:29.640Z","repository":{"id":302469914,"uuid":"1012555500","full_name":"bryanbill/cssify","owner":"bryanbill","description":" Generate and manage CSS styles programmatically in Dart. Effortlessly create responsive, maintainable, and dynamic CSS for your web projects—all from Dart.","archived":false,"fork":false,"pushed_at":"2025-07-10T16:09:46.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-10T21:28:12.769Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","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/bryanbill.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-02T14:06:39.000Z","updated_at":"2025-07-10T16:09:49.000Z","dependencies_parsed_at":"2025-07-02T15:33:25.704Z","dependency_job_id":"9c6122cc-5920-4f18-9ab2-b0db9776a51d","html_url":"https://github.com/bryanbill/cssify","commit_stats":null,"previous_names":["bryanbill/cssify"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bryanbill/cssify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryanbill%2Fcssify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryanbill%2Fcssify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryanbill%2Fcssify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryanbill%2Fcssify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bryanbill","download_url":"https://codeload.github.com/bryanbill/cssify/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryanbill%2Fcssify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278627212,"owners_count":26018284,"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-10-06T02:00:05.630Z","response_time":65,"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":[],"created_at":"2025-10-06T14:39:27.904Z","updated_at":"2025-10-06T14:39:29.632Z","avatar_url":"https://github.com/bryanbill.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cssify\n\nGenerate and manage CSS styles programmatically in Dart. Effortlessly create responsive, maintainable, and dynamic CSS for your web projects—all from the comfort of your Dart codebase.\n\n---\n\n## ✨ Features\n\n- **Define CSS in Dart:** Use Dart classes and functions to build CSS rules.\n- **Responsive by Design:** Built-in support for breakpoints and media queries.\n- **Stateful Styling:** Easily add styles for pseudo-classes like `:hover`, `:active`, and more.\n- **Keyframes and Animations:** Define complex animations and transitions.\n- **Extensible:** Compose, extend, and customize your style logic.\n- **Type-Safe:** Enjoy compile-time safety and autocompletion in your editor.\n\n---\n\n## 🚀 Getting Started\n\nAdd cssify to your `pubspec.yaml`:\n\n```yaml\ndependencies:\n  cssify: ^0.1.0\n```\n\nImport it in your Dart code:\n\n```dart\nimport 'package:cssify/cssify.dart';\n```\n\n---\n\n## 🛠️ Usage\n\nDefine your styles using Dart:\n\n```dart\nfinal containerStyle = Cssify(\n  '.container',\n  breakpoints: {\n    'base': StyleConfig(\n      style: {'display': 'flex', 'gap': '16px'},\n      state: {\n        'hover': {'background': 'lightgray'},\n      },\n    ),\n    'md': StyleConfig(\n      style: {'gap': '32px'},\n      state: {},\n    ),\n  },\n);\n\nfinal css = cssify([containerStyle]);\nprint(css);\n```\n\n---\n\n## 📦 API Overview\n\n### Cssify\n\nRepresents a CSS style definition for a selector, supporting responsive breakpoints.\n\n```dart\nclass Cssify {\n  final String selector;\n  final Map\u003cString, StyleConfig\u003e breakpoints;\n\n  Cssify(this.selector, {required this.breakpoints});\n  factory Cssify.create(String selector, Map\u003cString, dynamic\u003e json);\n}\n```\n\n### StyleConfig\n\nHolds base and state-specific CSS properties for a selector.\n\n```dart\nclass StyleConfig {\n  final Map\u003cString, String\u003e style;\n  final Map\u003cString, Map\u003cString, String\u003e\u003e state;\n\n  StyleConfig({required this.style, required this.state});\n  factory StyleConfig.fromJson(Map\u003cString, dynamic\u003e json);\n}\n```\n\n### MediaConfig\n\nDefines screen conditions for media query breakpoints.\n\n```dart\nclass MediaConfig {\n  final Map\u003cString, String\u003e screen;\n\n  MediaConfig({required this.screen});\n  factory MediaConfig.fromJson(Map\u003cString, dynamic\u003e json);\n}\n```\n\n---\n\n## 📖 Example\n\nSee the [`example/`](example/) directory for a complete working example.\n\n---\n\n## 📚 Documentation\n\nFull API docs are available in the source code. Each class and function is documented for easy reference.\n\n---\n\n## 📝 License\n\nMIT License. See [LICENSE](LICENSE).\n\n---\n\n## 💡 Contributing\n\nContributions, issues, and feature requests are welcome! Feel free to open an issue or submit a pull request.\n\n---\n\nMade with ❤️ in Dart.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbryanbill%2Fcssify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbryanbill%2Fcssify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbryanbill%2Fcssify/lists"}