{"id":13495004,"url":"https://github.com/Mokshit06/typewind","last_synced_at":"2025-03-28T15:32:38.564Z","repository":{"id":65472376,"uuid":"590069860","full_name":"Mokshit06/typewind","owner":"Mokshit06","description":"The safety of Typescript with the magic of Tailwind.","archived":false,"fork":false,"pushed_at":"2024-09-23T11:15:52.000Z","size":15537,"stargazers_count":2235,"open_issues_count":8,"forks_count":23,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-10-29T15:34:12.847Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://typewind.dev/","language":"TypeScript","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/Mokshit06.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":"2023-01-17T15:38:59.000Z","updated_at":"2024-10-29T14:30:18.000Z","dependencies_parsed_at":"2024-01-09T08:14:11.189Z","dependency_job_id":"9a097734-b5a6-43e3-88b6-0a9d01ef0ab4","html_url":"https://github.com/Mokshit06/typewind","commit_stats":{"total_commits":147,"total_committers":7,"mean_commits":21.0,"dds":0.3605442176870748,"last_synced_commit":"fe226b77890865376d8ae4d2cba677c23d524e43"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mokshit06%2Ftypewind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mokshit06%2Ftypewind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mokshit06%2Ftypewind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mokshit06%2Ftypewind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mokshit06","download_url":"https://codeload.github.com/Mokshit06/typewind/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222389518,"owners_count":16976487,"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-07-31T19:01:30.246Z","updated_at":"2024-10-31T09:31:43.097Z","avatar_url":"https://github.com/Mokshit06.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/mokshit06/typewind/main/.github/typewind-logo.png\" width=\"300px\" /\u003e\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  The \u003cem\u003esafety\u003c/em\u003e of Typescript with the \u003cem\u003emagic\u003c/em\u003e of Tailwind.\n\u003c/p\u003e\n\n---\n\n## Introduction\n\nTypewind brings the safety, productivity and intellisense of Typescript over to Tailwind\n\n```js\nimport { tw } from 'typewind';\n\nconst styles = tw.border.hover(tw.border_black);\n```\n\n## How it works\n\nTypewind's compiler is a babel plugin that runs over your code, statically analyses it and converts all the `tw` styles into their corresponding Tailwind classes.\n\nThis results Typewind compiles away, leaving 0 runtime code.\n\n```js\nimport { tw } from 'typewind';\n\nconst styles = tw.border.hover(tw.border_black);\n\n// ↓ ↓ ↓ ↓ ↓ ↓\n\nconst styles = 'border hover:border-black';\n```\n\n## Features\n\n**Zero bundle size** - Typewind compiles away all the styles used, and converts them to static classes at build\n\n**Apply variants to multiple styles at once** - Since Typewind uses TS, it allows for more intuitive syntax for applying variants\n\n```js\nimport { tw } from 'typewind';\n\nconst mediaStyles = tw.sm(tw.w_4.mt_3).lg(tw.w_8.mt_6);\nconst groupInGroups = tw.text_sm.sm(tw.bg_black.hover(tw.bg_white.w_10));\n```\n\n**Type safety and intellisense** - Using the TS compiler, Typewind is able to provide type safety to tailwind, and provide intellisense \u0026 autocomplete for all the classes from tailwind config.\n\n```js\nimport { tw } from 'typewind';\n\nconst styles = tw.border_blackk; // ❌ Property 'border_blackk' does not exist on type 'Typewind'. Did you mean 'border_black'?\n```\n\nThe above code would also return in a build error on running `tsc`\n\n**Types generated from config** - Type definitions of `tw` are generated directly from your tailwind config, so it is always custom to you, and also creates types for custom theme palette and plugins.\n\n[![Powered by Vercel](https://raw.githubusercontent.com/mokshit06/typewind/main/.github/powered-by-vercel.svg)](https://vercel.com?utm_source=typewind\u0026utm_campaign=oss)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMokshit06%2Ftypewind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMokshit06%2Ftypewind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMokshit06%2Ftypewind/lists"}