{"id":21654691,"url":"https://github.com/localvoid/vcss","last_synced_at":"2026-05-07T21:35:02.054Z","repository":{"id":24546889,"uuid":"27953627","full_name":"localvoid/vcss","owner":"localvoid","description":"Virtual CSS Library [Dart]","archived":false,"fork":false,"pushed_at":"2015-01-09T12:12:32.000Z","size":240,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-25T06:25:21.500Z","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":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/localvoid.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}},"created_at":"2014-12-13T07:46:58.000Z","updated_at":"2015-03-15T14:17:24.000Z","dependencies_parsed_at":"2022-08-29T12:50:49.167Z","dependency_job_id":null,"html_url":"https://github.com/localvoid/vcss","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/localvoid%2Fvcss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localvoid%2Fvcss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localvoid%2Fvcss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localvoid%2Fvcss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/localvoid","download_url":"https://codeload.github.com/localvoid/vcss/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244554121,"owners_count":20471173,"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-25T08:28:44.112Z","updated_at":"2026-05-07T21:35:01.993Z","avatar_url":"https://github.com/localvoid.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vcss [EXPERIMENTAL]\n\n## Usage\n\n```dart\nimport 'package:vcss/browser.dart' as css;\n\nconst addIcon = const css.SvgIcon('add', '0 0 24 24',\n    const [const css.SvgPath(d: 'M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z')]);\n\nconst removeIcon = const css.SvgIcon('remove', '0 0 24 24',\n    const [const css.SvgPath(d: 'M19 13H5v-2h14v2z')]);\n\nconst oneColor = const css.HexColor('#333');\nconst twoColor = const css.HexColor('#555');\nconst xSize = const css.Size.px(10);\n\nborderMixin(color) =\u003e [css.border('1px solid $color')];\n\nclass OneCss extends css.StyleSheet {\n  const OneCss();\n\n  static const instance = const OneCss();\n\n  final icons = const [addIcon];\n\n  build(_) =\u003e [\n      css.rule('.one', [\n        css.color(oneColor)\n      ])\n    ];\n}\n\nclass TwoCss extends css.StyleSheet {\n  const TwoCss();\n\n  static const instance = const TwoCss();\n\n  final icons = const [removeIcon];\n\n  build(_) =\u003e [\n      css.rule('.two', [\n        css.color(twoColor)\n      ])\n    ];\n}\n\nclass ExampleCss extends css.StyleSheet {\n  const ExampleCss();\n\n  static const instance = const ExampleCss();\n\n  final require = const [OneCss.instance, TwoCss.instance];\n\n  build(_) =\u003e [\n      css.rule(['#text'], [\n        css.background(twoColor),\n        borderMixin(oneColor),\n\n        css.rule('\u0026.sub', [\n          css.top(xSize * 2)\n        ]),\n\n        css.rule(['.abc', '.def'], [\n          css.bottom('20px'),\n          css.background('#999')\n        ])\n      ]),\n\n      css.keyframes('anim', [\n        css.rule('0%', [\n          css.bottom('20px'),\n        ]),\n        css.rule('100%', [\n          css.bottom('40px'),\n        ])\n      ])\n    ];\n}\n\nmain() {\n  final m = new css.StyleSheetManager();\n  m.include([ExampleCss.instance]);\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flocalvoid%2Fvcss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flocalvoid%2Fvcss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flocalvoid%2Fvcss/lists"}