{"id":16320217,"url":"https://github.com/embeddedt/lv_css","last_synced_at":"2025-03-22T21:32:05.564Z","repository":{"id":124975054,"uuid":"268848698","full_name":"embeddedt/lv_css","owner":"embeddedt","description":"Experimental CSS-like syntax for LVGL styles","archived":false,"fork":false,"pushed_at":"2020-08-11T17:39:53.000Z","size":22,"stargazers_count":18,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-01T19:02:55.262Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/embeddedt.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-02T16:12:03.000Z","updated_at":"2025-02-14T10:24:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"625be521-9201-490e-b5d9-3ba2d96fc3c7","html_url":"https://github.com/embeddedt/lv_css","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/embeddedt%2Flv_css","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/embeddedt%2Flv_css/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/embeddedt%2Flv_css/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/embeddedt%2Flv_css/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/embeddedt","download_url":"https://codeload.github.com/embeddedt/lv_css/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244246528,"owners_count":20422458,"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-10-10T22:43:29.162Z","updated_at":"2025-03-22T21:32:05.522Z","avatar_url":"https://github.com/embeddedt.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lv_css\n\nThis is an experimental compiler that translates a CSS-like file into LVGL style function calls.\n\n```css\n/* test.css */\n.testClass {\n    background-color: blue;\n    border-radius: 4px;\n}\n.testClass:focused, .testClass2 {\n    background-color: rgba(255, 0, 0, 0.1);\n    opacity: 0.2;\n    background-blend-mode: normal;\n    border-color: red;\n}\n```\n\n```\n./main.js test.css\n```\n```c\n/*\n * Autogenerated file; do not edit.\n */\n\nlv_style_t lv_style_testClass;\nlv_style_t lv_style_testClass2;\n\nvoid lv_style_css_init(void) {\n    lv_style_init(\u0026lv_style_testClass);\n    lv_style_set_bg_color(\u0026lv_style_testClass, LV_STATE_FOCUSED, LV_COLOR_MAKE(255, 0, 0)); lv_style_set_bg_opa(\u0026lv_style_testClass, LV_STATE_FOCUSED, 26);\n    lv_style_set_radius(\u0026lv_style_testClass, LV_STATE_NORMAL, 4);\n    lv_style_set_opa_scale(\u0026lv_style_testClass, LV_STATE_FOCUSED, 51);\n    lv_style_set_bg_blend_mode(\u0026lv_style_testClass, LV_STATE_FOCUSED, LV_BLEND_MODE_NORMAL);\n    lv_style_set_border_color(\u0026lv_style_testClass, LV_STATE_FOCUSED, LV_COLOR_MAKE(255, 0, 0)); lv_style_set_border_opa(\u0026lv_style_testClass, LV_STATE_FOCUSED, 255);\n    lv_style_init(\u0026lv_style_testClass2);\n    lv_style_set_bg_color(\u0026lv_style_testClass2, LV_STATE_NORMAL, LV_COLOR_MAKE(255, 0, 0)); lv_style_set_bg_opa(\u0026lv_style_testClass2, LV_STATE_NORMAL, 26);\n    lv_style_set_opa_scale(\u0026lv_style_testClass2, LV_STATE_NORMAL, 51);\n    lv_style_set_bg_blend_mode(\u0026lv_style_testClass2, LV_STATE_NORMAL, LV_BLEND_MODE_NORMAL);\n    lv_style_set_border_color(\u0026lv_style_testClass2, LV_STATE_NORMAL, LV_COLOR_MAKE(255, 0, 0)); lv_style_set_border_opa(\u0026lv_style_testClass2, LV_STATE_NORMAL, 255);\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fembeddedt%2Flv_css","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fembeddedt%2Flv_css","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fembeddedt%2Flv_css/lists"}