{"id":41419274,"url":"https://github.com/ayush013/fig-gen","last_synced_at":"2026-02-02T01:01:17.000Z","repository":{"id":43733530,"uuid":"449315427","full_name":"ayush013/fig-gen","owner":"ayush013","description":"Best Figma design to HTML/CSS converter on the internet 👀","archived":false,"fork":false,"pushed_at":"2022-08-04T10:14:45.000Z","size":5316,"stargazers_count":30,"open_issues_count":0,"forks_count":3,"subscribers_count":8,"default_branch":"main","last_synced_at":"2023-04-19T16:28:54.691Z","etag":null,"topics":["code-converter","figma","html","tailwindcss"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ayush013.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-18T14:24:17.000Z","updated_at":"2023-04-19T14:56:59.000Z","dependencies_parsed_at":"2022-08-19T17:50:15.065Z","dependency_job_id":null,"html_url":"https://github.com/ayush013/fig-gen","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/ayush013/fig-gen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayush013%2Ffig-gen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayush013%2Ffig-gen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayush013%2Ffig-gen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayush013%2Ffig-gen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ayush013","download_url":"https://codeload.github.com/ayush013/fig-gen/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayush013%2Ffig-gen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28998208,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T23:10:54.274Z","status":"ssl_error","status_checked_at":"2026-02-01T23:10:47.298Z","response_time":56,"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":["code-converter","figma","html","tailwindcss"],"created_at":"2026-01-23T14:00:33.875Z","updated_at":"2026-02-02T01:01:16.994Z","avatar_url":"https://github.com/ayush013.png","language":"TypeScript","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"![Cover art](src/assets/Cover-Art.jpg)\n\n# FigGen\n\nAn initiative to generate pixel perfect markup for Figma designs.\n\n[![CodeFactor](https://www.codefactor.io/repository/github/ayush013/fig-gen/badge)](https://www.codefactor.io/repository/github/ayush013/fig-gen)\n\n## Demo Preview\n\n![Conversion process](src/assets/preview.gif)\n\n## Download\n\n[Download FigGen from Figma Community](https://www.figma.com/community/plugin/1065278044402066626)\n\n## Features\n\n* Utility first approach to generate pixel perfect markup for Figma designs.\n* Built for future, uses flex and respects item spacing\n* No clumsy/frugal code with absolutely positioned elements\n* Uses tailwind 3.0\n* Export assets to zip with a click\n* Handles auto layout and its constraints (better design scalability for both designers and developers)\n* Option to mark exportable assets in your preferred format from Figma itself\n* Handles most common usecases like borders, shadows, background colors, text styles, etc.\n\n## Usage\n\nFigma to code conversion is no rocket science, but for pixel perfect UI, we have to do some pre-processing to unfold the magic. Let’s look at some ways to achieve accurate results:\n\n* Download FigGen from Figma Plugin Marketplace and run it on the desired UI.\n* Ensure that the frames have auto layout. It helps us to parse your Design better and also good for scaling designs in long term.\n* Mark the image/icon layers for export in the desirable format. We will import the asset in the selected format for you.\n* Avoid the use of Fixed Height/Width constraints as much as possible. Nearly same results can be achieved using ‘Fill container’/’Hug contents’ constraint.\n\n## Installation (Development)\n\n* Make sure you've installed Figma app.\n* Import FigGen project in Figma by pointing to the repository directory.\n* Run npn/yarn install in the project\n* Run yarn dev for development mode.\n\n\n# FigGen MVP project roadmap\n\n * [x] Module bundler setup\n * [x] UI setup with vanilla implementation\n * [x] Plugin UI for generating markup\n * [x] Analyze technical feasibility of Figma APIs\n * [x] Special handling for images\n * [x] Zipped exports\n * [x] Ability to parse Figma frame data.\n * [x] Receive plugin input from users for export/format keywords\n * [x] Generate equivalent markup for auto-layout components\n\n## Future improvements\n\n * [ ] Better Responsiveness overall\n * [ ] Better Documentation and add comments to the code\n * [ ] Handle semantics - Input fields, containers, buttons, links, etc.\n * [ ] Support for Masks/Clipping/Stroke Properties\n * [ ] Variant processing via special keywords/naming convention\n * [ ] and much more that I forgot \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayush013%2Ffig-gen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fayush013%2Ffig-gen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayush013%2Ffig-gen/lists"}