{"id":15837012,"url":"https://github.com/afeiship/wsui-generators","last_synced_at":"2026-04-30T00:04:54.320Z","repository":{"id":41154088,"uuid":"70785494","full_name":"afeiship/wsui-generators","owner":"afeiship","description":"A lot of tailwind like css module generators.","archived":false,"fork":false,"pushed_at":"2023-06-28T05:50:22.000Z","size":105,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-31T14:18:58.604Z","etag":null,"topics":["atom","css","generator","mb","ml","mr","mt","pb","pl","pr","pt","tailwind","utils","webkit","wsui"],"latest_commit_sha":null,"homepage":"","language":"SCSS","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/afeiship.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-10-13T08:29:29.000Z","updated_at":"2022-05-29T09:50:29.000Z","dependencies_parsed_at":"2023-07-17T08:41:09.672Z","dependency_job_id":null,"html_url":"https://github.com/afeiship/wsui-generators","commit_stats":{"total_commits":70,"total_committers":1,"mean_commits":70.0,"dds":0.0,"last_synced_commit":"105766de4064ece84469cd5d0e7cc23ba132b16b"},"previous_names":["afeiship/webkit-sass-generators"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/afeiship/wsui-generators","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fwsui-generators","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fwsui-generators/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fwsui-generators/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fwsui-generators/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeiship","download_url":"https://codeload.github.com/afeiship/wsui-generators/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fwsui-generators/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32448883,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"ssl_error","status_checked_at":"2026-04-29T22:10:49.234Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["atom","css","generator","mb","ml","mr","mt","pb","pl","pr","pt","tailwind","utils","webkit","wsui"],"created_at":"2024-10-05T15:20:28.059Z","updated_at":"2026-04-30T00:04:54.305Z","avatar_url":"https://github.com/afeiship.png","language":"SCSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wsui-generators\n\u003e Webkit sass generator mixins.\n\n[![version][version-image]][version-url]\n[![license][license-image]][license-url]\n[![size][size-image]][size-url]\n[![download][download-image]][download-url]\n\n## installation\n```shell\nnpm i -S @jswork/wsui-generators\n```\n\n## usage\n```scss\n@import \"@jswork/wsui-generators\";\n\n$color-map: (\n  0: #000,\n  3: #333,\n  6: #666,\n  9: #999,\n  f: #fff\n);\n\n$width-list: range(1, 10);\n$box-list: (1, 2, 3, 4, 5, 6, 7, 8, 9);\n\n//Generate a list:\n$w1-list: range(1, 20);\n$border-radius-list: range(1, 5);\n$font-list: (10, 20, 30);\n$font-weight-list: (100, 200, 300, 400, 500, 600, 700, 800);\n$line-clamp: (1, 2, 3, 4, 5);\n\n@include generator-color($color-map);\n@include generator-background-color($color-map);\n@include generator-border-color($color-map);\n\n// Generate width/blank/font-size/border-radius:\n@include generator-width-w1($w1-list);\n@include generator-width-wp($width-list);\n@include generator-space($width-list);\n@include generator-font-size($font-list);\n@include generator-font-weight($font-weight-list);\n@include generator-border-radius($border-radius-list);\n\n//Generate margin:\n@include generator-box($box-list, \"m\");\n@include generator-box($box-list, \"mt\");\n@include generator-box($box-list, \"mr\");\n@include generator-box($box-list, \"ml\");\n@include generator-box($box-list, \"mb\");\n@include generator-box($box-list, \"mx\");\n@include generator-box($box-list, \"my\");\n\n\n// OR you want Generate `rem` value\n@include generator-box($box-list, \"p\", 50);\n@include generator-box($box-list, \"pt\", 50);\n@include generator-box($box-list, \"pr\", 50);\n@include generator-box($box-list, \"pl\", 50);\n@include generator-box($box-list, \"pb\", 50);\n@include generator-box($box-list, \"px\", 50);\n@include generator-box($box-list, \"py\", 50);\n\n//Generate your own grid:\n@include generator-line($width-list, #f3f3f3);\n@include generator-line-clamp($line-clamp);\n```\n\n## customize\n```scss\n$wsui-generators-options: (\n  global: \"\",\n  background-color: \"bg-\",\n  border-color: \"bcd-\",\n  border-radius: \"bdr-\",\n  box: \"-\",\n  color: \"c-\",\n  font-size: \"f-\",\n  font-weight: \"fw-\",\n  line-clamp: \"lc-\",\n  line-height: \"lh-\",\n  height-line-height: \"hlh-\",\n  line: \"line-\",\n  space: \"sp-\",\n  width-w1: \"w1-\",\n  width-wp: \"wp-\",\n) !default;\n```\n\n## resources\n- http://hugogiraudel.com/2013/08/08/advanced-sass-list-functions/\n- http://sass-lang.com/documentation/Sass/Script/Functions.html\n- https://github.com/HugoGiraudel/SassyStrings\n\n## license\nCode released under [the MIT license](https://github.com/afeiship/wsui-generators/blob/master/LICENSE.txt).\n\n[version-image]: https://img.shields.io/npm/v/@jswork/wsui-generators\n[version-url]: https://npmjs.org/package/@jswork/wsui-generators\n\n[license-image]: https://img.shields.io/npm/l/@jswork/wsui-generators\n[license-url]: https://github.com/afeiship/wsui-generators/blob/master/LICENSE.txt\n\n[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/wsui-generators\n[size-url]: https://github.com/afeiship/wsui-generators/blob/master/dist/wsui-generators.min.js\n\n[download-image]: https://img.shields.io/npm/dm/@jswork/wsui-generators\n[download-url]: https://www.npmjs.com/package/@jswork/wsui-generators\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fwsui-generators","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeiship%2Fwsui-generators","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fwsui-generators/lists"}